Hello All,
Is it possible to get access to link layer (AF_LINK) via raw socket?
kind of Linux SOCK_PACKET. It seems to me that it is not. (hope I wrong :)
I can access raw IP via socket(AF_INET, SOCK_RAW, IPPROTO_RAW)
and event get access to IP header with setsockopt. But not AF_LINK :(
On the other hand is bpf. but here is the small problem. i have interface
with
bpf attached to it. when i write to /dev/bpf i got the same packet back.
kind of loop. the only solution is to filter these packets. but there is no
way to find out which packet i wrote, and which is received from outside.
i was thinking about netgraph. would't it be nice to have netgraph interface
in each network driver?
Any ideas?
Thanks,
emax
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message