summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-05 13:55:47 +0000
committerRoy Marples <roy@marples.name>2020-02-05 13:55:47 +0000
commit354d22cc67eabcb755f3ce60ab22f429bcf84b7a (patch)
tree2f92f3c2cc0c287b9a9251a0c69fbbd39d983f55
parent984b9c34d4c1dab2271fa1cfe3c261fb5ff5caa3 (diff)
downloaddhcpcd-354d22cc67eabcb755f3ce60ab22f429bcf84b7a.tar.xz
DHCP: Support jumbo frames
Also important as we now need to store the frame header in the initial buffer.
-rw-r--r--src/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 1be4addd..2b1e44f1 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -3432,7 +3432,7 @@ static void
dhcp_readbpf(void *arg)
{
struct interface *ifp = arg;
- uint8_t buf[MTU_MAX];
+ uint8_t buf[10240]; /* Max jumbo frame and some extra */
ssize_t bytes;
struct dhcp_state *state = D_STATE(ifp);
ssize_t fl = (ssize_t)bpf_frame_header_len(ifp);