I'm using a PF_PACKET, SOCK_RAW socket to send ethernet packets.
I write the dst MAC address, src MAC address, and proto into a buffer, then append
my payload. I send the whole thing to the socket, using a length that includes the
ethernet header and my payload.
But, I think I've been using MTU wrong the whole time.
Assuming a 'normal' MTU of 1500 on an ethernet NIC. Does that mean
I have 14 bytes of ethernet payload, 1500 bytes of payload, and 4 bytes of
ethernet CRC (I don't specify the CRC, I assume the driver appends that?), or
does it mean I have 14 bytes of header, 1486 bytes of payload and a CRC?
Am I correct in assuming that the CRC is taken care of for me?
Can I see the CRC in user-space?
Thanks,
Ben
--
Ben Greear ([EMAIL PROTECTED]) http://www.candelatech.com
Author of ScryMUD: scry.wanfear.com 4444 (Released under GPL)
http://scry.wanfear.com http://scry.wanfear.com/~greear
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]