app/testpmd: fix flow command build on FreeBSD
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 23 Dec 2016 15:52:56 +0000 (16:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Dec 2016 15:55:36 +0000 (16:55 +0100)
A missing include causes the following compilation errors:

 error: use of undeclared identifier 'AF_INET'
 error: use of undeclared identifier 'AF_INET6'

Fixes: ef6e38550f07 ("app/testpmd: add items ipv4/ipv6 to flow command")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
app/test-pmd/cmdline_flow.c

index 7760c2d..ff98690 100644 (file)
@@ -39,6 +39,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <arpa/inet.h>
+#include <sys/socket.h>
 
 #include <rte_common.h>
 #include <rte_ethdev.h>