Mercurial > hg > dhcpcd
changeset 5027:da6a13a37ca0 draft
DHCP: Support jumbo frames
Also important as we now need to store the frame header in the
initial buffer.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 05 Feb 2020 13:55:47 +0000 |
| parents | 38495dc55a10 |
| children | 28bb50e31931 |
| files | src/dhcp.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Wed Feb 05 13:29:45 2020 +0000 +++ b/src/dhcp.c Wed Feb 05 13:55:47 2020 +0000 @@ -3432,7 +3432,7 @@ 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);
