diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-07-21 09:59:26 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-07-21 09:59:26 +0200 |
commit | 38a4fae186a007caf240e6bfb31947ffc2a7738b (patch) | |
tree | d82df6a7b707bba59badf838b476de483a576438 /dhcp.c | |
parent | a9c8d4d92492313d62a995fd948db623ae85076f (diff) | |
download | passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar.gz passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar.bz2 passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar.lz passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar.xz passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.tar.zst passt-38a4fae186a007caf240e6bfb31947ffc2a7738b.zip |
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 <sbrivio@redhat.com>
Diffstat (limited to 'dhcp.c')
-rw-r--r-- | dhcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |