Layer 2 Raw client-socket program issue

Hello Everyone,

I want a Layer 2 Raw client-server program in FreeBSD. If I will to send raw Ethernet frames should I use BPF and not the socket? If I try to use socket with option AF_LINK it is telling that Protocol not supported by Address family? If it is possible what is the protocol I should use?
 
Hello Everyone,

Whenever I define a socket with definition socket(AF_LINK, SOCK_RAW, 0) it fails saying Address family not supported by Protocol Family. I need a Layer 2 Raw socket program..

Reply Pls...
 
Back
Top