Hey! I am really excited about nim, and I'm hoping I can use it for for my project.
I need the ability to create raw packets, such as ARP responses. I could not find anything in the docs, so I am asking here if anyone has any experience with this or knows how I could do this with nim.
Thanks for reading
You must create a raw socket and forge the network package you want to send. It depends on the socket flags for which network layers you must create the pkg yourself, eg.: if IP_HDRINCL is disabled, you also must create the ip layer plug.
This is afaik not possible on windows at least without third party drivers (eg winpcap or npcap).
https://man7.org/linux/man-pages/man7/raw.7.html
https://squidarth.com/networking/systems/rc/2018/05/28/using-raw-sockets.html