diff options
author | Denis Vlasenko | 2008-09-26 09:34:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-09-26 09:34:59 +0000 |
commit | f1980f67d3b005090a31b7465d219e8ca19c5736 (patch) | |
tree | 746646c47f2c42f4b94ced5cb89774406d3e8a24 /networking/udhcp/packet.c | |
parent | cdb0b652ddd6bfbc4d83e21453b3b4137b887e18 (diff) | |
download | busybox-f1980f67d3b005090a31b7465d219e8ca19c5736.zip busybox-f1980f67d3b005090a31b7465d219e8ca19c5736.tar.gz |
dhcp: add FAST_FUNC as appropriate. -160 bytes.
Diffstat (limited to 'networking/udhcp/packet.c')
-rw-r--r-- | networking/udhcp/packet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 923add6..58f45e5 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c @@ -15,7 +15,7 @@ #include "options.h" -void udhcp_init_header(struct dhcpMessage *packet, char type) +void FAST_FUNC udhcp_init_header(struct dhcpMessage *packet, char type) { memset(packet, 0, sizeof(struct dhcpMessage)); packet->op = BOOTREQUEST; @@ -34,7 +34,7 @@ void udhcp_init_header(struct dhcpMessage *packet, char type) /* read a packet from socket fd, return -1 on read error, -2 on packet error */ -int udhcp_recv_kernel_packet(struct dhcpMessage *packet, int fd) +int FAST_FUNC udhcp_recv_kernel_packet(struct dhcpMessage *packet, int fd) { int bytes; unsigned char *vendor; @@ -85,7 +85,7 @@ int udhcp_recv_kernel_packet(struct dhcpMessage *packet, int fd) } -uint16_t udhcp_checksum(void *addr, int count) +uint16_t FAST_FUNC udhcp_checksum(void *addr, int count) { /* Compute Internet Checksum for "count" bytes * beginning at location "addr". @@ -116,7 +116,7 @@ uint16_t udhcp_checksum(void *addr, int count) /* Construct a ip/udp header for a packet, send packet */ -int udhcp_send_raw_packet(struct dhcpMessage *payload, +int FAST_FUNC udhcp_send_raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, uint32_t dest_ip, int dest_port, const uint8_t *dest_arp, int ifindex) { @@ -186,7 +186,7 @@ int udhcp_send_raw_packet(struct dhcpMessage *payload, /* Let the kernel do all the work for packet generation */ -int udhcp_send_kernel_packet(struct dhcpMessage *payload, +int FAST_FUNC udhcp_send_kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, uint32_t dest_ip, int dest_port) { |