Here's an example: https://github.com/Laksen/fp-ethernet/blob/master/linuxraw.pas

You need to change ifindex obviously, and I can't remember how that was found. But it should be relatively easy.

On 11/18/2015 02:47 PM, Xiangrong Fang wrote:
Hi,

I am looking for some examples of writing linux raw socket programs in free pascal, anyone had experience on that?

Thanks a lot!
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to