From: Roy Marples Date: Wed, 5 Feb 2020 13:55:47 +0000 (+0000) Subject: DHCP: Support jumbo frames X-Git-Tag: v8.1.7~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=354d22cc67eabcb755f3ce60ab22f429bcf84b7a;p=thirdparty%2Fdhcpcd.git DHCP: Support jumbo frames Also important as we now need to store the frame header in the initial buffer. --- 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);