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 changed files with 1 additions and 0 deletions
1
dhcp.c
1
dhcp.c
|
@ -48,6 +48,7 @@ struct opt {
|
||||||
static struct opt opts[255] = {
|
static struct opt opts[255] = {
|
||||||
[1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Mask */
|
[1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Mask */
|
||||||
[3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */
|
[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 */
|
[51] = { 0, 4, { 0xff, 0xff, 0xff, 0xff }, 0, { 0 }, }, /* Lease time */
|
||||||
[53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Type */
|
[53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Type */
|
||||||
#define DHCPDISCOVER 1
|
#define DHCPDISCOVER 1
|
||||||
|
|
Loading…
Reference in a new issue