X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;h=d788a01a5d4b0b0e777130d68d31e60f865b370d;hp=87a4efa2412ffdf9b0d3d765ec48adbf257d927f;hb=800e5e5f50b62af1b7054f41331a4cc0d7802f65;hpb=8dacaf753b57c703f215b0c844b412b64183ac81 diff --git a/system-linux.c b/system-linux.c index 87a4efa..d788a01 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1149,6 +1149,8 @@ static int system_iprule(struct iprule *rule, int cmd) if (rule->flags & IPRULE_PRIORITY) nla_put_u32(msg, FRA_PRIORITY, rule->priority); + else if (cmd == RTM_NEWRULE) + nla_put_u32(msg, FRA_PRIORITY, rule->order); if (rule->flags & IPRULE_FWMARK) nla_put_u32(msg, FRA_FWMARK, rule->fwmark);