mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
* netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP servers don't treat the maximum length the same as Etherboot, subtract the size of an IP header and that of an UDP header.
This commit is contained in:
1 parent
20ac296c28
commit
522de743e8
6 files changed
+16
-5
No files matched your search
+6
-1
@@ -98,7 +98,12 @@ Author: Martin Renters
|
||||
/*#define ETH_MIN_PACKET 64*/
|
||||
#define ETH_FRAME_LEN 1514 /* Maximum packet */
|
||||
/*#define ETH_MAX_PACKET 1518*/
|
||||
#define ETH_MAX_MTU (ETH_FRAME_LEN - ETH_HLEN)
|
||||
/* Because some DHCP/BOOTP servers don't treat the maximum length the same
|
||||
as Etherboot, subtract the size of an IP header and that of an UDP
|
||||
header. */
|
||||
#define ETH_MAX_MTU (ETH_FRAME_LEN - ETH_HLEN \
|
||||
- sizeof (struct iphdr) \
|
||||
- sizeof (struct udphdr))
|
||||
|
||||
#define ARP_CLIENT 0
|
||||
#define ARP_SERVER 1
|
||||
|
||||
Reference in new issue
Block a user