aboutgitcodebugslistschat
path: root/dhcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-05-21 11:14:46 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-05-21 11:14:46 +0200
commit0231ac1c86578a8dac2ae6531d30c71ba89688e1 (patch)
treec3e8ea1ae506ec61fd1c92a487d4aea4e0b3bf96 /dhcp.c
parent8754878fbf68be4557e1fde67ceb59f07457787a (diff)
downloadpasst-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar.gz
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar.bz2
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar.lz
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar.xz
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.tar.zst
passt-0231ac1c86578a8dac2ae6531d30c71ba89688e1.zip
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>
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcp.c b/dhcp.c
index 2e391b1..cff9403 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -43,11 +43,11 @@ struct opt {
};
static struct opt opts[255] = {
- [1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Subnet mask */
- [3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */
- [6] = { 0, 4, { 0 }, 0, { 0 }, }, /* DNS */
- [51] = { 0, 4, { 60 }, 0, { 0 }, }, /* Lease time */
- [53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Message type */
+ [1] = { 0, 4, { 0 }, 0, { 0 }, }, /* Mask */
+ [3] = { 0, 4, { 0 }, 0, { 0 }, }, /* Router */
+ [6] = { 0, 4, { 0 }, 0, { 0 }, }, /* DNS */
+ [51] = { 0, 4, { 0xff, 0xff, 0xff, 0xff }, 0, { 0 }, }, /* Lease time */
+ [53] = { 0, 1, { 0 }, 0, { 0 }, }, /* Type */
#define DHCPDISCOVER 1
#define DHCPOFFER 2
#define DHCPREQUEST 3