[dpdk-dev] app/testpmd: fix flow command compilation errors
Checks
Commit Message
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 | 1 +
1 file changed, 1 insertion(+)
Comments
2016-12-23 16:52, Adrien Mazarguil:
> 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>
As this error happens only on BSD, I've reworded the title:
app/testpmd: fix flow command build on FreeBSD
Applied, thanks
@@ -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>