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 trying to reuse existing buffer, but one of these should fit it. Regards, Klement Quoting Alessio Silvestro (2017-06-14 17:22:14) > 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 that seems fit my scope is > the following (in ~/vpp/src/vnet/udp/udp.h) > > ip_udp_encap_one (vlib_main_t * vm, vlib_buffer_t * b0, u8 * ec0, word > ec_len, > > u8 is_ip4) > > Is that correct or there is another function for this purpose? > > Thanks in advance for any help. > > Best regards, > > Alessio _______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev