diff options
| author | hpa <hpa> | 2003-08-23 00:04:21 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2003-08-23 00:04:21 +0000 |
| commit | 871f5d659aa6d7bd1c7301743c72b34a68af2a8a (patch) | |
| tree | 4976e6909de3e7befef0e5aa8d234a6881c9396f /pxelinux.asm | |
| parent | 48946baf218641fa32e83a8e8ea6493f81d3b1c4 (diff) | |
| download | syslinux-2.06.tar.gz | |
Lower the default MTUsyslinux-2.06
Diffstat (limited to 'pxelinux.asm')
| -rw-r--r-- | pxelinux.asm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pxelinux.asm b/pxelinux.asm index 337dcc6d..3becef28 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -42,7 +42,11 @@ TFTP_PORT equ htons(69) ; Default TFTP port PKT_RETRY equ 6 ; Packet transmit retry count PKT_TIMEOUT equ 12 ; Initial timeout, timer ticks @ 55 ms ; Desired TFTP block size -TFTP_LARGEBLK equ (1500-20-8-4) ; MTU 1500 - IP hdr - UDP hdr - TFTP hdr +; For Ethernet MTU is normally 1500. Unfortunately there seems to +; be a fair number of networks with "substandard" MTUs which break. +; The code assumes TFTP_LARGEBLK <= 2K. +TFTP_MTU equ 1472 +TFTP_LARGEBLK equ (TFTP_MTU-20-8-4) ; MTU - IP hdr - UDP hdr - TFTP hdr ; Standard TFTP block size TFTP_BLOCKSIZE_LG2 equ 9 ; log2(bytes/block) TFTP_BLOCKSIZE equ (1 << TFTP_BLOCKSIZE_LG2) |
