I hava captured some packages by libpcap and built ip header. The package is a const u_char type and named payload, so how to pass the payload to libnet , then I can forward the payload to another ip ? which libnet api can work for this ?
I hava captured some packages by libpcap and built ip header. The package is a const u_char type and named payload, so how to pass the payload to libnet , then I can forward the payload to another ip ? which libnet api can work for this ?