gerry
2004-12-01 15:30:16 UTC
Hi,
I have a question concerning libnet 1.1.x and the link-layer interface.
Mike writes in his excellent book:
"The link-layer enables a finer-grained control of packet header values because the OS kernel will not touch the packet before it is written out (the exception being that some interface code on some UNIX variants will try to stamp a source MAC address on the packets of the outgoing interface; libnet handles this situation on several variants)".
I'm interested in the Linux variants trying to stamp a source MAC address. How can I make sure that the kernel does not touch the packets (kernel options)? Has it something to do with the HAVE_PACKET_SOCKET flag?
Thanks in advance.
- gerry
I have a question concerning libnet 1.1.x and the link-layer interface.
Mike writes in his excellent book:
"The link-layer enables a finer-grained control of packet header values because the OS kernel will not touch the packet before it is written out (the exception being that some interface code on some UNIX variants will try to stamp a source MAC address on the packets of the outgoing interface; libnet handles this situation on several variants)".
I'm interested in the Linux variants trying to stamp a source MAC address. How can I make sure that the kernel does not touch the packets (kernel options)? Has it something to do with the HAVE_PACKET_SOCKET flag?
Thanks in advance.
- gerry