diff options
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r-- | networking/udhcp/clientpacket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index 3e4561946..77331d98d 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | 26 | ||
27 | /* Create a random xid */ | 27 | /* Create a random xid */ |
28 | uint32_t random_xid(void) | 28 | uint32_t FAST_FUNC random_xid(void) |
29 | { | 29 | { |
30 | static smallint initialized; | 30 | static smallint initialized; |
31 | 31 | ||
@@ -81,7 +81,7 @@ static void add_param_req_option(struct dhcpMessage *packet) | |||
81 | 81 | ||
82 | #if ENABLE_FEATURE_UDHCPC_ARPING | 82 | #if ENABLE_FEATURE_UDHCPC_ARPING |
83 | /* Unicast a DHCP decline message */ | 83 | /* Unicast a DHCP decline message */ |
84 | int send_decline(uint32_t xid, uint32_t server, uint32_t requested) | 84 | int FAST_FUNC send_decline(uint32_t xid, uint32_t server, uint32_t requested) |
85 | { | 85 | { |
86 | struct dhcpMessage packet; | 86 | struct dhcpMessage packet; |
87 | 87 | ||
@@ -98,7 +98,7 @@ int send_decline(uint32_t xid, uint32_t server, uint32_t requested) | |||
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | /* Broadcast a DHCP discover packet to the network, with an optionally requested IP */ | 100 | /* Broadcast a DHCP discover packet to the network, with an optionally requested IP */ |
101 | int send_discover(uint32_t xid, uint32_t requested) | 101 | int FAST_FUNC send_discover(uint32_t xid, uint32_t requested) |
102 | { | 102 | { |
103 | struct dhcpMessage packet; | 103 | struct dhcpMessage packet; |
104 | 104 | ||
@@ -120,7 +120,7 @@ int send_discover(uint32_t xid, uint32_t requested) | |||
120 | 120 | ||
121 | 121 | ||
122 | /* Broadcasts a DHCP request message */ | 122 | /* Broadcasts a DHCP request message */ |
123 | int send_selecting(uint32_t xid, uint32_t server, uint32_t requested) | 123 | int FAST_FUNC send_selecting(uint32_t xid, uint32_t server, uint32_t requested) |
124 | { | 124 | { |
125 | struct dhcpMessage packet; | 125 | struct dhcpMessage packet; |
126 | struct in_addr addr; | 126 | struct in_addr addr; |
@@ -140,7 +140,7 @@ int send_selecting(uint32_t xid, uint32_t server, uint32_t requested) | |||
140 | 140 | ||
141 | 141 | ||
142 | /* Unicasts or broadcasts a DHCP renew message */ | 142 | /* Unicasts or broadcasts a DHCP renew message */ |
143 | int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) | 143 | int FAST_FUNC send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) |
144 | { | 144 | { |
145 | struct dhcpMessage packet; | 145 | struct dhcpMessage packet; |
146 | 146 | ||
@@ -159,7 +159,7 @@ int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) | |||
159 | 159 | ||
160 | 160 | ||
161 | /* Unicasts a DHCP release message */ | 161 | /* Unicasts a DHCP release message */ |
162 | int send_release(uint32_t server, uint32_t ciaddr) | 162 | int FAST_FUNC send_release(uint32_t server, uint32_t ciaddr) |
163 | { | 163 | { |
164 | struct dhcpMessage packet; | 164 | struct dhcpMessage packet; |
165 | 165 | ||
@@ -175,7 +175,7 @@ int send_release(uint32_t server, uint32_t ciaddr) | |||
175 | 175 | ||
176 | 176 | ||
177 | /* Returns -1 on errors that are fatal for the socket, -2 for those that aren't */ | 177 | /* Returns -1 on errors that are fatal for the socket, -2 for those that aren't */ |
178 | int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) | 178 | int FAST_FUNC udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) |
179 | { | 179 | { |
180 | int bytes; | 180 | int bytes; |
181 | struct udp_dhcp_packet packet; | 181 | struct udp_dhcp_packet packet; |