From 522de743e896691cfa1313c99a788fe1b2276516 Mon Sep 17 00:00:00 2001 From: okuji Date: Wed, 8 May 2002 05:49:33 +0000 Subject: [PATCH] 2002-05-08 Yoshinori K. Okuji * 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. --- ChangeLog | 6 ++++++ docs/grub-install.8 | 2 +- docs/grub-md5-crypt.8 | 2 +- docs/grub.8 | 2 +- docs/mbchk.1 | 2 +- netboot/etherboot.h | 7 ++++++- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f4716b4d8..0573d7251 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-05-08 Yoshinori K. Okuji + + * 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. + 2002-04-30 Yoshinori K. Okuji From Jean-Jacques Michel : diff --git a/docs/grub-install.8 b/docs/grub-install.8 index d8c8b26df..7b59d5e39 100644 --- a/docs/grub-install.8 +++ b/docs/grub-install.8 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. -.TH GRUB-INSTALL "8" "April 2002" "grub-install (GNU GRUB 0.92)" FSF +.TH GRUB-INSTALL "8" "May 2002" "grub-install (GNU GRUB 0.92)" FSF .SH NAME grub-install \- install GRUB on your drive .SH SYNOPSIS diff --git a/docs/grub-md5-crypt.8 b/docs/grub-md5-crypt.8 index 13699211a..fc03ca03a 100644 --- a/docs/grub-md5-crypt.8 +++ b/docs/grub-md5-crypt.8 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. -.TH GRUB-MD5-CRYPT "8" "April 2002" "grub-md5-crypt (GNU GRUB )" FSF +.TH GRUB-MD5-CRYPT "8" "May 2002" "grub-md5-crypt (GNU GRUB )" FSF .SH NAME grub-md5-crypt \- Encrypt a password in MD5 format .SH SYNOPSIS diff --git a/docs/grub.8 b/docs/grub.8 index 3c4c53dcc..eab30efc2 100644 --- a/docs/grub.8 +++ b/docs/grub.8 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. -.TH GRUB "8" "April 2002" "grub (GNU GRUB 0.92)" FSF +.TH GRUB "8" "May 2002" "grub (GNU GRUB 0.92)" FSF .SH NAME grub \- the grub shell .SH SYNOPSIS diff --git a/docs/mbchk.1 b/docs/mbchk.1 index 21d367d93..d0c1e0fb2 100644 --- a/docs/mbchk.1 +++ b/docs/mbchk.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. -.TH MBCHK "1" "April 2002" "mbchk (GNU GRUB 0.92)" FSF +.TH MBCHK "1" "May 2002" "mbchk (GNU GRUB 0.92)" FSF .SH NAME mbchk \- check the format of a Multiboot kernel .SH SYNOPSIS diff --git a/netboot/etherboot.h b/netboot/etherboot.h index af27673c3..f0c35f1d0 100644 --- a/netboot/etherboot.h +++ b/netboot/etherboot.h @@ -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