diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-05 23:42:12 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-05 23:42:12 +0000 |
commit | bf9c208d6942f318ebed4071cd9c20d537acd403 (patch) | |
tree | d644a433da535b8468eeecafe3b0b6c2d5c261a4 /pfinet/ethernet.c | |
parent | b7979ec285fcc630e481228e05aa44644f0cd717 (diff) |
(setup_ethernet_device): Linux's device `mtu' member does not include
the hardware header size; subtract that off the value the kernel
specifies as maximum packet size in setting ETHER_DEV.mtu.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r-- | pfinet/ethernet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c index 1048fabf..bb5632de 100644 --- a/pfinet/ethernet.c +++ b/pfinet/ethernet.c @@ -219,7 +219,7 @@ setup_ethernet_device (char *name) /* Fetch hardware information */ count = NET_STATUS_COUNT; device_get_status (ether_port, NET_STATUS, (dev_status_t) &netstat, &count); - ether_dev.mtu = netstat.max_packet_size; + ether_dev.mtu = netstat.max_packet_size - ether_dev.hard_header_len; assert (netstat.header_format == HDR_ETHERNET); assert (netstat.header_size == ETH_HLEN); assert (netstat.address_size == ETH_ALEN); |