kernel-wfp: Print filter weight in "ipsecdump filters"
authorMartin Willi <martin@revosec.ch>
Thu, 19 Dec 2013 13:23:08 +0000 (14:23 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 14:32:10 +0000 (16:32 +0200)
src/libcharon/plugins/kernel_wfp/ipsecdump.c

index d2aa261..ec3c78e 100644 (file)
@@ -627,6 +627,10 @@ static bool list_filters(HANDLE engine)
                        print_display_data(&entries[0]->displayData);
                        printf("'\n");
                        printf("  %s, ", layer);
+                       if (entries[0]->effectiveWeight.type == FWP_UINT64)
+                       {
+                               printf("weight %016llx, ", *entries[0]->effectiveWeight.uint64);
+                       }
 
                        switch (entries[0]->action.type)
                        {