X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=system-linux.c;h=d788a01a5d4b0b0e777130d68d31e60f865b370d;hb=e0f63be5d2dd6d52d9886231d64040f5ef8142bf;hp=ebab09c5e36ab849854d5709bafc64433cb2ffaf;hpb=a47c3353cdf46b730f43198052c8f807e2bd313f;p=project%2Fnetifd.git diff --git a/system-linux.c b/system-linux.c index ebab09c..d788a01 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2,6 +2,7 @@ * netifd - network interface daemon * Copyright (C) 2012 Felix Fietkau * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013 Steven Barth * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 @@ -1148,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);