]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
update xfrm monitoring to use nl_mgrp
authorjamal <hadi@cyberus.ca>
Fri, 8 Dec 2006 01:58:23 +0000 (20:58 -0500)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 14 Dec 2006 01:04:27 +0000 (17:04 -0800)
Stephen,
I will wait until you sync all these patches ive sent; then send a
couple more then i will be done.

cheers,
jamal

[XFRM] update xfrm monitoring to use nl_mgrp

Signed-off-by: J Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
ip/xfrm_monitor.c

index b2014b4af6858d341834f947061b2cf8bcbe3e53..925e229c21e36642293116de8c3dee51c9bebca2 100644 (file)
@@ -292,17 +292,17 @@ int do_xfrm_monitor(int argc, char **argv)
        }
 
        if (lacquire)
-               groups |= XFRMGRP_ACQUIRE;
+               groups |= nl_mgrp(XFRMNLGRP_ACQUIRE);
        if (lexpire)
-               groups |= XFRMGRP_EXPIRE;
+               groups |= nl_mgrp(XFRMNLGRP_EXPIRE);
        if (lsa)
-               groups |= XFRMGRP_SA;
+               groups |= nl_mgrp(XFRMNLGRP_SA);
        if (lpolicy)
-               groups |= XFRMGRP_POLICY;
+               groups |= nl_mgrp(XFRMNLGRP_POLICY);
        if (laevent)
-               groups |= (1 <<  (XFRMNLGRP_AEVENTS - 1));
+               groups |= nl_mgrp(XFRMNLGRP_AEVENTS);
        if (lreport)
-               groups |= XFRMGRP_REPORT;
+               groups |= nl_mgrp(XFRMNLGRP_REPORT);
 
        if (file) {
                FILE *fp;