DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix flow command compilation errors
@ 2016-12-23 15:52 Adrien Mazarguil
  2016-12-23 15:58 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Adrien Mazarguil @ 2016-12-23 15:52 UTC (permalink / raw)
  To: dev

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(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 7760c2d..ff98690 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -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>
-- 
2.1.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: fix flow command compilation errors
  2016-12-23 15:52 [dpdk-dev] [PATCH] app/testpmd: fix flow command compilation errors Adrien Mazarguil
@ 2016-12-23 15:58 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2016-12-23 15:58 UTC (permalink / raw)
  To: Adrien Mazarguil; +Cc: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-23 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-23 15:52 [dpdk-dev] [PATCH] app/testpmd: fix flow command compilation errors Adrien Mazarguil
2016-12-23 15:58 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).