DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] socket programming with DPDK?
@ 2014-11-15  7:08 Choonho Son
  2014-11-15 13:28 ` Neil Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Choonho Son @ 2014-11-15  7:08 UTC (permalink / raw)
  To: dev

Hi,

I am making netflow collector with DPDK.
I need to export result to another server with socket programming.
But I can not include <netinet/in.h> which defines struct sockaddr_in.

How can I make application with traditional socket programming and DPDK?

Thanks.

Choonho Son

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

* Re: [dpdk-dev] socket programming with DPDK?
  2014-11-15  7:08 [dpdk-dev] socket programming with DPDK? Choonho Son
@ 2014-11-15 13:28 ` Neil Horman
  2014-11-15 14:22   ` Thomas Monjalon
  2014-11-15 15:36   ` Ariel Rodriguez
  0 siblings, 2 replies; 4+ messages in thread
From: Neil Horman @ 2014-11-15 13:28 UTC (permalink / raw)
  To: Choonho Son; +Cc: dev

On Sat, Nov 15, 2014 at 04:08:47PM +0900, Choonho Son wrote:
> Hi,
> 
> I am making netflow collector with DPDK.
> I need to export result to another server with socket programming.
> But I can not include <netinet/in.h> which defines struct sockaddr_in.
> 
> How can I make application with traditional socket programming and DPDK?
> 
> Thanks.
> 
> Choonho Son
> 
Why can't you add netinet/in.h?  Are you getting an error when doing so?  I
vaguely recall someone posting a fix for an include error for that file, but I
don't recall its disposition
Neil

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

* Re: [dpdk-dev] socket programming with DPDK?
  2014-11-15 13:28 ` Neil Horman
@ 2014-11-15 14:22   ` Thomas Monjalon
  2014-11-15 15:36   ` Ariel Rodriguez
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2014-11-15 14:22 UTC (permalink / raw)
  To: Neil Horman; +Cc: dev

2014-11-15 08:28, Neil Horman:
> On Sat, Nov 15, 2014 at 04:08:47PM +0900, Choonho Son wrote:
> > I am making netflow collector with DPDK.
> > I need to export result to another server with socket programming.
> > But I can not include <netinet/in.h> which defines struct sockaddr_in.
> > 
> > How can I make application with traditional socket programming and DPDK?
> > 
> Why can't you add netinet/in.h?  Are you getting an error when doing so?  I
> vaguely recall someone posting a fix for an include error for that file, but I
> don't recall its disposition

Yes, we shouldn't try to redefine libc like in rte_ip.h.
Previous discussion:
	http://dpdk.org/ml/archives/dev/2014-November/007482.html

-- 
Thomas

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

* Re: [dpdk-dev] socket programming with DPDK?
  2014-11-15 13:28 ` Neil Horman
  2014-11-15 14:22   ` Thomas Monjalon
@ 2014-11-15 15:36   ` Ariel Rodriguez
  1 sibling, 0 replies; 4+ messages in thread
From: Ariel Rodriguez @ 2014-11-15 15:36 UTC (permalink / raw)
  To: Neil Horman, dev

Hi , im succesfully integrate boost asio c++ code with dpdk libraries. I do
packet processing with dpdk collecting statistics of protocol usage and
then use a extern function to send the statistics (custom struct) through a
boost socket in c++ code. Boost libraries use netinet/in.h internally .
Maybe the workaround is separete the compiling units and not mix the header
files.

Maybe this can help you.

Regards.
On Nov 15, 2014 10:28 AM, "Neil Horman" <nhorman@tuxdriver.com> wrote:

> On Sat, Nov 15, 2014 at 04:08:47PM +0900, Choonho Son wrote:
> > Hi,
> >
> > I am making netflow collector with DPDK.
> > I need to export result to another server with socket programming.
> > But I can not include <netinet/in.h> which defines struct sockaddr_in.
> >
> > How can I make application with traditional socket programming and DPDK?
> >
> > Thanks.
> >
> > Choonho Son
> >
> Why can't you add netinet/in.h?  Are you getting an error when doing so?  I
> vaguely recall someone posting a fix for an include error for that file,
> but I
> don't recall its disposition
> Neil
>
>

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

end of thread, other threads:[~2014-11-15 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15  7:08 [dpdk-dev] socket programming with DPDK? Choonho Son
2014-11-15 13:28 ` Neil Horman
2014-11-15 14:22   ` Thomas Monjalon
2014-11-15 15:36   ` Ariel Rodriguez

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).