aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
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/options.c
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/options.c')
-rw-r--r--networking/udhcp/options.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 12e566210..b6e77e3e5 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -118,7 +118,7 @@ const uint8_t dhcp_option_lengths[] ALIGN1 = {
118 118
119 119
120/* get an option with bounds checking (warning, not aligned). */ 120/* get an option with bounds checking (warning, not aligned). */
121uint8_t *get_option(struct dhcpMessage *packet, int code) 121uint8_t* FAST_FUNC get_option(struct dhcpMessage *packet, int code)
122{ 122{
123 int i, length; 123 int i, length;
124 uint8_t *optionptr; 124 uint8_t *optionptr;
@@ -175,7 +175,7 @@ uint8_t *get_option(struct dhcpMessage *packet, int code)
175 175
176 176
177/* return the position of the 'end' option (no bounds checking) */ 177/* return the position of the 'end' option (no bounds checking) */
178int end_option(uint8_t *optionptr) 178int FAST_FUNC end_option(uint8_t *optionptr)
179{ 179{
180 int i = 0; 180 int i = 0;
181 181
@@ -191,7 +191,7 @@ int end_option(uint8_t *optionptr)
191 191
192/* add an option string to the options (an option string contains an option code, 192/* add an option string to the options (an option string contains an option code,
193 * length, then data) */ 193 * length, then data) */
194int add_option_string(uint8_t *optionptr, uint8_t *string) 194int FAST_FUNC add_option_string(uint8_t *optionptr, uint8_t *string)
195{ 195{
196 int end = end_option(optionptr); 196 int end = end_option(optionptr);
197 197
@@ -209,7 +209,7 @@ int add_option_string(uint8_t *optionptr, uint8_t *string)
209 209
210 210
211/* add a one to four byte option to a packet */ 211/* add a one to four byte option to a packet */
212int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) 212int FAST_FUNC add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data)
213{ 213{
214 const struct dhcp_option *dh; 214 const struct dhcp_option *dh;
215 215