From 38a4fae186a007caf240e6bfb31947ffc2a7738b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 21 Jul 2021 09:59:26 +0200 Subject: dhcp: Set MTU option (26) to 65520 bytes This value should work for all tap-like interfaces and is rather convenient for performance testing. It will be configurable later on. Signed-off-by: Stefano Brivio --- dhcp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dhcp.c') diff --git a/dhcp.c b/dhcp.c index 337463a..4a83627 100644 --- a/dhcp.c +++ b/dhcp.c @@ -48,6 +48,7 @@ struct opt { static struct opt opts[255] = { [1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Mask */ [3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */ + [26] = { 0, 2, { 0xff, 0xf0 }, 0, { 0 }, }, /* MTU */ [51] = { 0, 4, { 0xff, 0xff, 0xff, 0xff }, 0, { 0 }, }, /* Lease time */ [53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Type */ #define DHCPDISCOVER 1 -- cgit v1.2.3