X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=networking%2Fudhcp%2Fdhcpd.h;h=65c8348bf641e48c88c0901152c2b4260f316e47;hb=01f67987e0aa4a4890a02d1a7445d878d3436d26;hp=39658a8ffcccbf96fa3bd7a6847920dfcda38e70;hpb=c7bda1ce659294d6e22c06e087f6f265983c7578;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 39658a8ff..65c8348bf 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h @@ -63,6 +63,7 @@ #define DHCP_T2 0x3b #define DHCP_VENDOR 0x3c #define DHCP_CLIENT_ID 0x3d +#define DHCP_FQDN 0x51 #define DHCP_END 0xFF @@ -99,6 +100,12 @@ struct option_set { struct option_set *next; }; +struct static_lease { + uint8_t *mac; + uint32_t *ip; + struct static_lease *next; +}; + struct server_config_t { uint32_t server; /* Our IP, in network order */ uint32_t start; /* Start address of leases, network order */ @@ -124,6 +131,7 @@ struct server_config_t { uint32_t siaddr; /* next server bootp option */ char *sname; /* bootp server name */ char *boot_file; /* bootp boot file option */ + struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */ }; extern struct server_config_t server_config;