]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Support jumbo frames
authorRoy Marples <roy@marples.name>
Wed, 5 Feb 2020 13:55:47 +0000 (13:55 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Feb 2020 13:55:47 +0000 (13:55 +0000)
Also important as we now need to store the frame header in the
initial buffer.

src/dhcp.c

index 1be4adddd6a01416e51529193524d18e9c795c51..2b1e44f1995bc9753f02142b1ec8d00bd4b1502f 100644 (file)
@@ -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);