dhcp: Increase lease time to maximum allowed value
...to make things simpler at least for the moment being. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
8754878fbf
commit
0231ac1c86
1 changed files with 5 additions and 5 deletions
6
dhcp.c
6
dhcp.c
|
@ -43,11 +43,11 @@ struct opt {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct opt opts[255] = {
|
static struct opt opts[255] = {
|
||||||
[1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Subnet mask */
|
[1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Mask */
|
||||||
[3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */
|
[3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */
|
||||||
[6] = { 0, 4, { 0 }, 0, { 0 }, }, /* DNS */
|
[6] = { 0, 4, { 0 }, 0, { 0 }, }, /* DNS */
|
||||||
[51] = { 0, 4, { 60 }, 0, { 0 }, }, /* Lease time */
|
[51] = { 0, 4, { 0xff, 0xff, 0xff, 0xff }, 0, { 0 }, }, /* Lease time */
|
||||||
[53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Message type */
|
[53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Type */
|
||||||
#define DHCPDISCOVER 1
|
#define DHCPDISCOVER 1
|
||||||
#define DHCPOFFER 2
|
#define DHCPOFFER 2
|
||||||
#define DHCPREQUEST 3
|
#define DHCPREQUEST 3
|
||||||
|
|
Loading…
Reference in a new issue