projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: fix invalid retranstime in RA message
[project/odhcpd.git]
/
src
/
dhcpv4.h
diff --git
a/src/dhcpv4.h
b/src/dhcpv4.h
index
57d52dc
..
4d14f09
100644
(file)
--- a/
src/dhcpv4.h
+++ b/
src/dhcpv4.h
@@
-1,5
+1,6
@@
/**
* Copyright (C) 2012 Steven Barth <steven@midlink.org>
/**
* Copyright (C) 2012 Steven Barth <steven@midlink.org>
+ * Copyright (C) 2016 Hans Dedecker <dedeckeh@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@
-48,7
+49,7
@@
enum dhcpv4_opt {
DHCPV4_OPT_RENEW = 58,
DHCPV4_OPT_REBIND = 59,
DHCPV4_OPT_IPADDRESS = 50,
DHCPV4_OPT_RENEW = 58,
DHCPV4_OPT_REBIND = 59,
DHCPV4_OPT_IPADDRESS = 50,
- DHCPV4_OPT_HOSTNAME = 1
0
,
+ DHCPV4_OPT_HOSTNAME = 1
2
,
DHCPV4_OPT_REQUEST = 17,
DHCPV4_OPT_USER_CLASS = 77,
DHCPV4_OPT_SEARCH_DOMAIN = 119,
DHCPV4_OPT_REQUEST = 17,
DHCPV4_OPT_USER_CLASS = 77,
DHCPV4_OPT_SEARCH_DOMAIN = 119,
@@
-78,7
+79,9
@@
struct dhcpv4_assignment {
uint32_t addr;
time_t valid_until;
uint8_t hwaddr[6];
uint32_t addr;
time_t valid_until;
uint8_t hwaddr[6];
- char hostname[];
+ uint32_t leasetime;
+ unsigned int flags;
+ char *hostname;
};
struct dhcpv4_option {
};
struct dhcpv4_option {