aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 09:34:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 09:34:59 +0000
commitf1980f67d3b005090a31b7465d219e8ca19c5736 (patch)
tree746646c47f2c42f4b94ced5cb89774406d3e8a24 /networking/udhcp/dhcpd.h
parentcdb0b652ddd6bfbc4d83e21453b3b4137b887e18 (diff)
downloadbusybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.tar.gz
busybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.tar.bz2
busybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.zip
dhcp: add FAST_FUNC as appropriate. -160 bytes.
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r--networking/udhcp/dhcpd.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index 87e1afc1f..2d9752845 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -82,40 +82,40 @@ struct dhcpOfferedAddr {
82 uint32_t expires; /* host order */ 82 uint32_t expires; /* host order */
83}; 83};
84 84
85struct dhcpOfferedAddr *add_lease(const uint8_t *chaddr, uint32_t yiaddr, unsigned long lease); 85struct dhcpOfferedAddr *add_lease(const uint8_t *chaddr, uint32_t yiaddr, unsigned long lease) FAST_FUNC;
86int lease_expired(struct dhcpOfferedAddr *lease); 86int lease_expired(struct dhcpOfferedAddr *lease) FAST_FUNC;
87struct dhcpOfferedAddr *find_lease_by_chaddr(const uint8_t *chaddr); 87struct dhcpOfferedAddr *find_lease_by_chaddr(const uint8_t *chaddr) FAST_FUNC;
88struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr); 88struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr) FAST_FUNC;
89uint32_t find_address(int check_expired); 89uint32_t find_address(int check_expired) FAST_FUNC;
90 90
91 91
92/*** static_leases.h ***/ 92/*** static_leases.h ***/
93 93
94/* Config file will pass static lease info to this function which will add it 94/* Config file will pass static lease info to this function which will add it
95 * to a data structure that can be searched later */ 95 * to a data structure that can be searched later */
96int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip); 96int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip) FAST_FUNC;
97/* Check to see if a mac has an associated static lease */ 97/* Check to see if a mac has an associated static lease */
98uint32_t getIpByMac(struct static_lease *lease_struct, void *arg); 98uint32_t getIpByMac(struct static_lease *lease_struct, void *arg) FAST_FUNC;
99/* Check to see if an ip is reserved as a static ip */ 99/* Check to see if an ip is reserved as a static ip */
100uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip); 100uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip) FAST_FUNC;
101/* Print out static leases just to check what's going on (debug code) */ 101/* Print out static leases just to check what's going on (debug code) */
102void printStaticLeases(struct static_lease **lease_struct); 102void printStaticLeases(struct static_lease **lease_struct) FAST_FUNC;
103 103
104 104
105/*** serverpacket.h ***/ 105/*** serverpacket.h ***/
106 106
107int send_offer(struct dhcpMessage *oldpacket); 107int send_offer(struct dhcpMessage *oldpacket) FAST_FUNC;
108int send_NAK(struct dhcpMessage *oldpacket); 108int send_NAK(struct dhcpMessage *oldpacket) FAST_FUNC;
109int send_ACK(struct dhcpMessage *oldpacket, uint32_t yiaddr); 109int send_ACK(struct dhcpMessage *oldpacket, uint32_t yiaddr) FAST_FUNC;
110int send_inform(struct dhcpMessage *oldpacket); 110int send_inform(struct dhcpMessage *oldpacket) FAST_FUNC;
111 111
112 112
113/*** files.h ***/ 113/*** files.h ***/
114 114
115void read_config(const char *file); 115void read_config(const char *file) FAST_FUNC;
116void write_leases(void); 116void write_leases(void) FAST_FUNC;
117void read_leases(const char *file); 117void read_leases(const char *file) FAST_FUNC;
118struct option_set *find_option(struct option_set *opt_list, uint8_t code); 118struct option_set *find_option(struct option_set *opt_list, uint8_t code) FAST_FUNC;
119 119
120 120
121#if __GNUC_PREREQ(4,1) 121#if __GNUC_PREREQ(4,1)