* socket programming with DPDK? @ 2014-11-15 7:08 Choonho Son [not found] ` <CAJBXtn=n_M+7QV4+oe3aaPgOWGtQ+qnjht6tfhAS26i3_cQ2kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Choonho Son @ 2014-11-15 7:08 UTC (permalink / raw) To: dev-VfR2kkLFssw 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
[parent not found: <CAJBXtn=n_M+7QV4+oe3aaPgOWGtQ+qnjht6tfhAS26i3_cQ2kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: socket programming with DPDK? [not found] ` <CAJBXtn=n_M+7QV4+oe3aaPgOWGtQ+qnjht6tfhAS26i3_cQ2kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-11-15 13:28 ` Neil Horman [not found] ` <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Neil Horman @ 2014-11-15 13:28 UTC (permalink / raw) To: Choonho Son; +Cc: dev-VfR2kkLFssw 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
[parent not found: <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: socket programming with DPDK? [not found] ` <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 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-VfR2kkLFssw 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: socket programming with DPDK? [not found] ` <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 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-VfR2kkLFssw 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-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> 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:36 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 socket programming with DPDK? Choonho Son [not found] ` <CAJBXtn=n_M+7QV4+oe3aaPgOWGtQ+qnjht6tfhAS26i3_cQ2kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-11-15 13:28 ` Neil Horman [not found] ` <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 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).