Re: [vpp-dev] VPP: Answer UDP Packets

2017-07-14 Thread Neale Ranns (nranns)
ranns)" Cc: Dharmaray Kundargi , "Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)" , "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] VPP: Answer UDP Packets [SOLVED] the variable must be declared as ==> extern adj_index_t adj_index; In my case, I have 3

Re: [vpp-dev] VPP: Answer UDP Packets

2017-07-14 Thread Alessio Silvestro
gt;> * through this adj. On an ethernet interface this is the MAC header's >> >> * ether-type >> >> * >> >> * @param nh_addr >> >> * The address of the next-hop/peer to send the packet to >> >> * >> >> * @param sw_if_index &g

Re: [vpp-dev] VPP: Answer UDP Packets

2017-07-13 Thread Alessio Silvestro
t; > extern adj_index_t adj_nbr_add_or_lock(fib_protocol_t nh_proto, > > > vnet_link_t link_type, > > > const ip46_address_t *nh_addr, > > > u32 sw_if_index); > > > > /neale > > > > *From: *Alessio Silvestro > *Date: *Wednesday, 12 July 2017

Re: [vpp-dev] VPP: Answer UDP Packets

2017-07-12 Thread Neale Ranns (nranns)
estro Date: Wednesday, 12 July 2017 at 15:30 To: "Neale Ranns (nranns)" Cc: Dharmaray Kundargi , "Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)" , "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] VPP: Answer UDP Packets Hi Neale, can you please point

Re: [vpp-dev] VPP: Answer UDP Packets

2017-07-12 Thread Alessio Silvestro
i < > dharmaray.kunda...@mavenir.com> > Date: Wednesday, 21 June 2017 at 10:48 > To: "Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)" < > ksek...@cisco.com>, Alessio Silvestro > Cc: "vpp-dev@lists.fd.io" > Subject: Re: [vpp-dev] VPP: Answe

Re: [vpp-dev] VPP: Answer UDP Packets

2017-06-21 Thread Neale Ranns (nranns)
ekera - PANTHEON TECHNOLOGIES at Cisco)" , Alessio Silvestro Cc: "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] VPP: Answer UDP Packets BFD UDP code is interesting example. I was looking at bfd_udp_input rather and one question in relation to this. Though both &#x

Re: [vpp-dev] VPP: Answer UDP Packets

2017-06-21 Thread Dharmaray Kundargi
ssage- From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco) Sent: Monday, June 19, 2017 12:09 PM To: Alessio Silvestro Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] VPP: Answer UDP Packets Couple of pote

Re: [vpp-dev] VPP: Answer UDP Packets

2017-06-18 Thread Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
Couple of potential issues which I see: 1.) if this buffer is generated by vpp, it should be flagged as such (b->flags |= VNET_BUFFER_LOCALLY_ORIGINATED;) 2.) I don't see it passed to another node - you need to create a frame and associate the buffer with it, then pass the frame to the next node,

Re: [vpp-dev] VPP: Answer UDP Packets

2017-06-16 Thread Alessio Silvestro
Dear Klement, thanks for the hint. I had a look at the code bfd_main.c and in particular at the function bfd_send_periodic(). I wrote the function send_udp_packet() -- see below -- in order to send out UDP packets. The function is executed (I can see from the VPP terminal) and no exception is r

Re: [vpp-dev] VPP: Answer UDP Packets

2017-06-14 Thread Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
Hi Alessio, you can take a look at BFD code which a.) creates and sends its own UDP packets - bfd_main.c - bfd_send_periodic() creates, encapsulates (UDP) and sends a packet out b.) loops back packets received - bfd_udp.c - bfd_udp_echo_input() I'm not sure what's your use case, whether you are

[vpp-dev] VPP: Answer UDP Packets

2017-06-14 Thread Alessio Silvestro
Dear all, I implemented a new VPP node that receives UDP traffic using the following function: udp_register_dst_port (vm, PORT, my_node.index , 1 /* is_ip4 */); I am able to parse the packet and I would like to be able to send back an UDP packet. Looking at the source code, the only function