hi i want to sniff packets via python, ipv6 on FREEBSD.
i hard to trying googlings to get information but there is nothing for freebsd example.
below code is not working because someone says that bsd system does not supporting
socket.PF_PACKET.
Does anyone have any links to Help me?
s = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(3))
s.setsockopt(socket.SOL_SOCKET, IN.SO_BINDTODEVICE, struct.pack("%ds"%(len("em1")+1,),"em1"))
while condition:
pkt = s.recvfrom(1500)
addToQueue(filter(pkt))