diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-26 09:34:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-26 09:34:59 +0000 |
commit | f1980f67d3b005090a31b7465d219e8ca19c5736 (patch) | |
tree | 746646c47f2c42f4b94ced5cb89774406d3e8a24 /networking/udhcp/dhcpd.h | |
parent | cdb0b652ddd6bfbc4d83e21453b3b4137b887e18 (diff) | |
download | busybox-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.h | 34 |
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 | ||
85 | struct dhcpOfferedAddr *add_lease(const uint8_t *chaddr, uint32_t yiaddr, unsigned long lease); | 85 | struct dhcpOfferedAddr *add_lease(const uint8_t *chaddr, uint32_t yiaddr, unsigned long lease) FAST_FUNC; |
86 | int lease_expired(struct dhcpOfferedAddr *lease); | 86 | int lease_expired(struct dhcpOfferedAddr *lease) FAST_FUNC; |
87 | struct dhcpOfferedAddr *find_lease_by_chaddr(const uint8_t *chaddr); | 87 | struct dhcpOfferedAddr *find_lease_by_chaddr(const uint8_t *chaddr) FAST_FUNC; |
88 | struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr); | 88 | struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr) FAST_FUNC; |
89 | uint32_t find_address(int check_expired); | 89 | uint32_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 */ |
96 | int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip); | 96 | int 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 */ |
98 | uint32_t getIpByMac(struct static_lease *lease_struct, void *arg); | 98 | uint32_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 */ |
100 | uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip); | 100 | uint32_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) */ |
102 | void printStaticLeases(struct static_lease **lease_struct); | 102 | void printStaticLeases(struct static_lease **lease_struct) FAST_FUNC; |
103 | 103 | ||
104 | 104 | ||
105 | /*** serverpacket.h ***/ | 105 | /*** serverpacket.h ***/ |
106 | 106 | ||
107 | int send_offer(struct dhcpMessage *oldpacket); | 107 | int send_offer(struct dhcpMessage *oldpacket) FAST_FUNC; |
108 | int send_NAK(struct dhcpMessage *oldpacket); | 108 | int send_NAK(struct dhcpMessage *oldpacket) FAST_FUNC; |
109 | int send_ACK(struct dhcpMessage *oldpacket, uint32_t yiaddr); | 109 | int send_ACK(struct dhcpMessage *oldpacket, uint32_t yiaddr) FAST_FUNC; |
110 | int send_inform(struct dhcpMessage *oldpacket); | 110 | int send_inform(struct dhcpMessage *oldpacket) FAST_FUNC; |
111 | 111 | ||
112 | 112 | ||
113 | /*** files.h ***/ | 113 | /*** files.h ***/ |
114 | 114 | ||
115 | void read_config(const char *file); | 115 | void read_config(const char *file) FAST_FUNC; |
116 | void write_leases(void); | 116 | void write_leases(void) FAST_FUNC; |
117 | void read_leases(const char *file); | 117 | void read_leases(const char *file) FAST_FUNC; |
118 | struct option_set *find_option(struct option_set *opt_list, uint8_t code); | 118 | struct 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) |