mirror of
https://passt.top/passt
synced 2024-12-22 13:45:32 +00:00
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>
This commit is contained in:
parent
a9c8d4d924
commit
38a4fae186
1
dhcp.c
1
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
|
||||
|
Loading…
Reference in New Issue
Block a user