vlan0 on em0 has mtu 1496

David Gilbert dgilbert at velocet.ca
Thu Apr 17 19:43:46 PDT 2003


>>>>> "Brooks" == Brooks Davis <brooks at one-eyed-alien.net> writes:

Brooks> On Thu, Apr 17, 2003 at 08:13:55PM -0400, David Gilbert wrote:
>> Why does a vlan created against em0 have a mtu of 1496.

Brooks> Because the vlan header takes up 4 bytes.  With em(4) devices
Brooks> it looks like fixing that should be a simple matter of raising
Brooks> the real interface's MTU to 1504.

On many cards, like the fxp, the ability to send 1526 byte packets
(which include vlan) is encoded in the header size abilities of the
card, not the mtu.  It would seem that em is missing this.

Dave.

-- 
============================================================================
|David Gilbert, Velocet Communications.       | Two things can only be     |
|Mail:       dgilbert at velocet.net             |  equal if and only if they |
|http://daveg.ca                              |   are precisely opposite.  |
=========================================================GLO================


More information about the freebsd-net mailing list