summaryrefslogtreecommitdiff
path: root/tests/test-u32-filter-with-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-u32-filter-with-actions.c')
-rw-r--r--tests/test-u32-filter-with-actions.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/test-u32-filter-with-actions.c b/tests/test-u32-filter-with-actions.c
index 17e7bdc1..d6760136 100644
--- a/tests/test-u32-filter-with-actions.c
+++ b/tests/test-u32-filter-with-actions.c
@@ -5,6 +5,14 @@
* Stolen from tests/test-complex-HTB-with-hash-filters.c
*/
+#include "nl-default.h"
+
+#include <stdio.h>
+
+#include <linux/if_ether.h>
+#include <linux/tc_act/tc_mirred.h>
+#include <linux/netlink.h>
+
#include <netlink/route/link.h>
#include <netlink/route/tc.h>
#include <netlink/route/qdisc.h>
@@ -16,13 +24,6 @@
#include <netlink/route/class.h>
#include <netlink/attr.h>
-#include <stdio.h>
-#include <string.h>
-
-#include <linux/if_ether.h>
-#include <linux/tc_act/tc_mirred.h>
-#include <linux/netlink.h>
-
#define TC_HANDLE(maj, min) (TC_H_MAJ((maj) << 16) | TC_H_MIN(min))
/* some functions are copied from iproute-tc tool */