Bryan, a good starting point could be https://github.com/ntop/PF_RING/blob/dev/userland/examples/pfsend.c that forges UDP packets
Regards Luca On 10/09/2015 08:51 AM, Bryan Fok wrote: > How to construct a udp multicast packet including our own data? > Does the packet in this format: char* buffer = [ether_header] + > [ip_header] + [udp_header] + [my_application_data]? > Is the pf_ring lib will fill the ether_header, because the pfsend > didnt fill any thing but only allocated the size of it to the buffer? > > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
