X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv4.h;h=4d14f094cc5848d0e7feb26e8573f4df9cd5daca;hp=7ee9fa98c8be7d9e915b49478f8d7e0c015d40eb;hb=5683dd25da56c66e0a5c86e770b8ee2188ad569c;hpb=eb7edc757c4bf258794c8ec7c721c2007c47877e diff --git a/src/dhcpv4.h b/src/dhcpv4.h index 7ee9fa9..4d14f09 100644 --- a/src/dhcpv4.h +++ b/src/dhcpv4.h @@ -1,5 +1,6 @@ /** * Copyright (C) 2012 Steven Barth + * Copyright (C) 2016 Hans Dedecker * * 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,9 +49,10 @@ enum dhcpv4_opt { DHCPV4_OPT_RENEW = 58, DHCPV4_OPT_REBIND = 59, DHCPV4_OPT_IPADDRESS = 50, - DHCPV4_OPT_HOSTNAME = 10, + DHCPV4_OPT_HOSTNAME = 12, DHCPV4_OPT_REQUEST = 17, - DHCPV4_OPT_VENDOR_SPECIFIC_INFORMATION = 125, + DHCPV4_OPT_USER_CLASS = 77, + DHCPV4_OPT_SEARCH_DOMAIN = 119, DHCPV4_OPT_END = 255, }; @@ -77,7 +79,9 @@ struct dhcpv4_assignment { uint32_t addr; time_t valid_until; uint8_t hwaddr[6]; - char hostname[]; + uint32_t leasetime; + unsigned int flags; + char *hostname; }; struct dhcpv4_option {