aboutgitcodebugslistschat
path: root/dhcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-07-21 09:59:26 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-07-21 09:59:26 +0200
commit38a4fae186a007caf240e6bfb31947ffc2a7738b (patch)
treed82df6a7b707bba59badf838b476de483a576438 /dhcp.c
parenta9c8d4d92492313d62a995fd948db623ae85076f (diff)
downloadpasst-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.c1
1 files changed, 1 insertions, 0 deletions
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