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/common.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/common.h')
-rw-r--r-- | networking/udhcp/common.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index 0f3b79647..bf099d8d2 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -57,25 +57,25 @@ struct BUG_bad_sizeof_struct_udp_dhcp_packet { | |||
57 | [(sizeof(struct udp_dhcp_packet) != 576 + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS) ? -1 : 1]; | 57 | [(sizeof(struct udp_dhcp_packet) != 576 + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS) ? -1 : 1]; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | uint16_t udhcp_checksum(void *addr, int count); | 60 | uint16_t udhcp_checksum(void *addr, int count) FAST_FUNC; |
61 | 61 | ||
62 | void udhcp_init_header(struct dhcpMessage *packet, char type); | 62 | void udhcp_init_header(struct dhcpMessage *packet, char type) FAST_FUNC; |
63 | 63 | ||
64 | /*int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd); - in dhcpc.h */ | 64 | /*int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd); - in dhcpc.h */ |
65 | int udhcp_recv_kernel_packet(struct dhcpMessage *packet, int fd); | 65 | int udhcp_recv_kernel_packet(struct dhcpMessage *packet, int fd) FAST_FUNC; |
66 | 66 | ||
67 | int udhcp_send_raw_packet(struct dhcpMessage *payload, | 67 | int udhcp_send_raw_packet(struct dhcpMessage *payload, |
68 | uint32_t source_ip, int source_port, | 68 | uint32_t source_ip, int source_port, |
69 | uint32_t dest_ip, int dest_port, | 69 | uint32_t dest_ip, int dest_port, |
70 | const uint8_t *dest_arp, int ifindex); | 70 | const uint8_t *dest_arp, int ifindex) FAST_FUNC; |
71 | int udhcp_send_kernel_packet(struct dhcpMessage *payload, | 71 | int udhcp_send_kernel_packet(struct dhcpMessage *payload, |
72 | uint32_t source_ip, int source_port, | 72 | uint32_t source_ip, int source_port, |
73 | uint32_t dest_ip, int dest_port); | 73 | uint32_t dest_ip, int dest_port) FAST_FUNC; |
74 | 74 | ||
75 | 75 | ||
76 | /**/ | 76 | /**/ |
77 | 77 | ||
78 | void udhcp_run_script(struct dhcpMessage *packet, const char *name); | 78 | void udhcp_run_script(struct dhcpMessage *packet, const char *name) FAST_FUNC; |
79 | 79 | ||
80 | // Still need to clean these up... | 80 | // Still need to clean these up... |
81 | 81 | ||
@@ -84,18 +84,15 @@ void udhcp_run_script(struct dhcpMessage *packet, const char *name); | |||
84 | #define end_option udhcp_end_option | 84 | #define end_option udhcp_end_option |
85 | #define add_option_string udhcp_add_option_string | 85 | #define add_option_string udhcp_add_option_string |
86 | #define add_simple_option udhcp_add_simple_option | 86 | #define add_simple_option udhcp_add_simple_option |
87 | /* from socket.h */ | 87 | |
88 | #define listen_socket udhcp_listen_socket | 88 | void udhcp_sp_setup(void) FAST_FUNC; |
89 | #define read_interface udhcp_read_interface | 89 | int udhcp_sp_fd_set(fd_set *rfds, int extra_fd) FAST_FUNC; |
90 | 90 | int udhcp_sp_read(const fd_set *rfds) FAST_FUNC; | |
91 | void udhcp_sp_setup(void); | 91 | int udhcp_raw_socket(int ifindex) FAST_FUNC; |
92 | int udhcp_sp_fd_set(fd_set *rfds, int extra_fd); | 92 | int udhcp_read_interface(const char *interface, int *ifindex, uint32_t *addr, uint8_t *arp) FAST_FUNC; |
93 | int udhcp_sp_read(const fd_set *rfds); | 93 | int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC; |
94 | int raw_socket(int ifindex); | ||
95 | int read_interface(const char *interface, int *ifindex, uint32_t *addr, uint8_t *arp); | ||
96 | int listen_socket(/*uint32_t ip,*/ int port, const char *inf); | ||
97 | /* Returns 1 if no reply received */ | 94 | /* Returns 1 if no reply received */ |
98 | int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface); | 95 | int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *interface) FAST_FUNC; |
99 | 96 | ||
100 | #if ENABLE_FEATURE_UDHCP_DEBUG | 97 | #if ENABLE_FEATURE_UDHCP_DEBUG |
101 | # define DEBUG(str, args...) bb_info_msg("### " str, ## args) | 98 | # define DEBUG(str, args...) bb_info_msg("### " str, ## args) |