aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:04:23 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:04:23 +0200
commit26918dd28ef6f2c6380ed23b384ddc8e98a8ad81 (patch)
tree77c5bd48717b9dbfd683937e3f70fc902b7c7119 /networking/udhcp/dhcpd.h
parentcab3a0127c3e6b7fc4f794ba6abcb8e01492118e (diff)
downloadbusybox-w32-26918dd28ef6f2c6380ed23b384ddc8e98a8ad81.tar.gz
busybox-w32-26918dd28ef6f2c6380ed23b384ddc8e98a8ad81.tar.bz2
busybox-w32-26918dd28ef6f2c6380ed23b384ddc8e98a8ad81.zip
udhcp: rename server/client_config.arp to server_mac and client_mac
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r--networking/udhcp/dhcpd.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index 4774fd12c..b233962b0 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -28,17 +28,23 @@ struct static_lease {
28}; 28};
29 29
30struct server_config_t { 30struct server_config_t {
31 uint32_t server_nip; /* Our IP, in network order */ 31 char *interface; /* interface to use */
32//TODO: ifindex, server_nip, server_mac
33// are obtained from interface name.
34// Instead of querying them *once*, create update_server_network_data_cache()
35// and call it before any usage of these fields.
36// update_server_network_data_cache() must re-query data
37// if more than N seconds have passed after last use.
38 int ifindex;
39 uint32_t server_nip;
32#if ENABLE_FEATURE_UDHCP_PORT 40#if ENABLE_FEATURE_UDHCP_PORT
33 uint16_t port; 41 uint16_t port;
34#endif 42#endif
43 uint8_t server_mac[6]; /* our MAC address (used only for ARP probing) */
44 struct option_set *options; /* list of DHCP options loaded from the config file */
35 /* start,end are in host order: we need to compare start <= ip <= end */ 45 /* start,end are in host order: we need to compare start <= ip <= end */
36 uint32_t start_ip; /* Start address of leases, in host order */ 46 uint32_t start_ip; /* start address of leases, in host order */
37 uint32_t end_ip; /* End of leases, in host order */ 47 uint32_t end_ip; /* end of leases, in host order */
38 struct option_set *options; /* List of DHCP options loaded from the config file */
39 char *interface; /* The name of the interface to use */
40 int ifindex; /* Index number of the interface to use */
41 uint8_t arp[6]; /* Our arp address */
42 uint32_t lease; /* lease time in seconds (host order) */ 48 uint32_t lease; /* lease time in seconds (host order) */
43 uint32_t max_leases; /* maximum number of leases (including reserved address) */ 49 uint32_t max_leases; /* maximum number of leases (including reserved address) */
44 uint32_t auto_time; /* how long should udhcpd wait before writing a config file. 50 uint32_t auto_time; /* how long should udhcpd wait before writing a config file.
@@ -48,10 +54,10 @@ struct server_config_t {
48 uint32_t conflict_time; /* how long an arp conflict offender is leased for */ 54 uint32_t conflict_time; /* how long an arp conflict offender is leased for */
49 uint32_t offer_time; /* how long an offered address is reserved */ 55 uint32_t offer_time; /* how long an offered address is reserved */
50 uint32_t min_lease; /* minimum lease time a client can request */ 56 uint32_t min_lease; /* minimum lease time a client can request */
51 uint32_t siaddr_nip; /* next server bootp option */ 57 uint32_t siaddr_nip; /* "next server" bootp option */
52 char *lease_file; 58 char *lease_file;
53 char *pidfile; 59 char *pidfile;
54 char *notify_file; /* What to run whenever leases are written */ 60 char *notify_file; /* what to run whenever leases are written */
55 char *sname; /* bootp server name */ 61 char *sname; /* bootp server name */
56 char *boot_file; /* bootp boot file option */ 62 char *boot_file; /* bootp boot file option */
57 struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */ 63 struct static_lease *static_leases; /* List of ip/mac pairs to assign static leases */