summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-05 14:38:04 +0000
committerRoy Marples <roy@marples.name>2020-02-05 14:38:04 +0000
commit5e137dd18774e9f9c07739a5d717578b03775207 (patch)
tree3ac379c52f9ed025806de7305c04940de9f2a063 /src/if.h
parent23c5496e3c4322e4017279c1b7cc306955069f84 (diff)
downloaddhcpcd-5e137dd18774e9f9c07739a5d717578b03775207.tar.xz
ARP: Recalculate ARP buffer taking into account max frame length
Diffstat (limited to 'src/if.h')
-rw-r--r--src/if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if.h b/src/if.h
index e24a77a3..0656affe 100644
--- a/src/if.h
+++ b/src/if.h
@@ -92,7 +92,8 @@ typedef unsigned long ioctl_request_t;
/* Maximum frame length.
* Support jumbo frames and some extra. */
-#define FRAMELEN_MAX 10240
+#define FRAMEHDRLEN_MAX 14 /* only ethernet support */
+#define FRAMELEN_MAX (FRAMEHDRLEN_MAX + 9216)
/* Work out if we have a private address or not
* 10/8