summaryrefslogtreecommitdiffstats
path: root/ip/rtmon.c
diff options
context:
space:
mode:
authorjamal <hadi@cyberus.ca>2007-02-25 11:55:19 -0500
committerStephen Hemminger <shemminger@linux-foundation.org>2007-03-13 14:39:05 -0700
commitb64f58b01354a1cfdc56f9617aabc9997f9fb01e (patch)
treefc973a60042f7118dbb035318b752f9f9ddceede /ip/rtmon.c
parente309c5fa6adf7c48074a08126721838ad4ea2749 (diff)
update rest to use nl_mgrp
cheers, jamal [ALL] update rest to use nl_mgrp Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Diffstat (limited to 'ip/rtmon.c')
-rw-r--r--ip/rtmon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ip/rtmon.c b/ip/rtmon.c
index 8c464cbd..b538a52e 100644
--- a/ip/rtmon.c
+++ b/ip/rtmon.c
@@ -134,18 +134,18 @@ main(int argc, char **argv)
exit(-1);
}
if (llink)
- groups |= RTMGRP_LINK;
+ groups |= nl_mgrp(RTNLGRP_LINK);
if (laddr) {
if (!family || family == AF_INET)
- groups |= RTMGRP_IPV4_IFADDR;
+ groups |= nl_mgrp(RTNLGRP_IPV4_IFADDR);
if (!family || family == AF_INET6)
- groups |= RTMGRP_IPV6_IFADDR;
+ groups |= nl_mgrp(RTNLGRP_IPV6_IFADDR);
}
if (lroute) {
if (!family || family == AF_INET)
- groups |= RTMGRP_IPV4_ROUTE;
+ groups |= nl_mgrp(RTNLGRP_IPV4_ROUTE);
if (!family || family == AF_INET6)
- groups |= RTMGRP_IPV6_ROUTE;
+ groups |= nl_mgrp(RTNLGRP_IPV6_ROUTE);
}
fp = fopen(file, "w");