commit | 98bde989db679153ee7a5f6425037b5a002eb95d | [log] [tgz] |
---|---|---|
author | Thomas Graf <tgraf@suug.ch> | Fri Nov 10 12:27:10 2006 +0100 |
committer | Stephen Hemminger <shemminger@osdl.org> | Fri Nov 10 09:40:30 2006 -0800 |
tree | 2b08e0737ea8a0c5ecd6c94da9e4b2f589f0ac2b | |
parent | 3123a0ccdd6b2f0b30c9e7d87c4a698577b3e5a5 [diff] [blame] |
Add rule notification support to ip monitor Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c index 50b6327..704ada7 100644 --- a/ip/ipmonitor.c +++ b/ip/ipmonitor.c
@@ -62,6 +62,10 @@ print_prefix(who, n, arg); return 0; } + if (n->nlmsg_type == RTM_NEWRULE || n->nlmsg_type == RTM_DELRULE) { + print_rule(who, n, arg); + return 0; + } if (n->nlmsg_type == 15) { char *tstr; time_t secs = ((__u32*)NLMSG_DATA(n))[0];