Ethernet MTU and CRC questions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 (greearb@candelatech.com)  http://www.candelatech.com
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com               http://scry.wanfear.com/~greear
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux