diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 11:57:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 11:57:09 +0200 |
commit | 31af3d5a1dbc750d8646f948ce642e6ae57ce880 (patch) | |
tree | 37d72b13f986b1da25def340771b49be4dd3028b /networking/udhcp/dhcprelay.c | |
parent | ac906fa85e61b4e34161709de777616f858bc945 (diff) | |
download | busybox-w32-31af3d5a1dbc750d8646f948ce642e6ae57ce880.tar.gz busybox-w32-31af3d5a1dbc750d8646f948ce642e6ae57ce880.tar.bz2 busybox-w32-31af3d5a1dbc750d8646f948ce642e6ae57ce880.zip |
udhcp: shorten mac len from 16 to 6 in lease file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcprelay.c')
-rw-r--r-- | networking/udhcp/dhcprelay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index 2fee49a41..a7e715ff9 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c | |||
@@ -97,7 +97,7 @@ static void xid_del(uint32_t xid) | |||
97 | * p - pointer to the dhcp packet | 97 | * p - pointer to the dhcp packet |
98 | * returns the message type on success, -1 otherwise | 98 | * returns the message type on success, -1 otherwise |
99 | */ | 99 | */ |
100 | static int get_dhcp_packet_type(struct dhcpMessage *p) | 100 | static int get_dhcp_packet_type(struct dhcp_packet *p) |
101 | { | 101 | { |
102 | uint8_t *op; | 102 | uint8_t *op; |
103 | 103 | ||
@@ -175,7 +175,7 @@ static int init_sockets(char **client_ifaces, int num_clients, | |||
175 | * p - packet to send | 175 | * p - packet to send |
176 | * client - number of the client | 176 | * client - number of the client |
177 | */ | 177 | */ |
178 | static void pass_to_server(struct dhcpMessage *p, int packet_len, int client, int *fds, | 178 | static void pass_to_server(struct dhcp_packet *p, int packet_len, int client, int *fds, |
179 | struct sockaddr_in *client_addr, struct sockaddr_in *server_addr) | 179 | struct sockaddr_in *client_addr, struct sockaddr_in *server_addr) |
180 | { | 180 | { |
181 | int res, type; | 181 | int res, type; |
@@ -206,7 +206,7 @@ static void pass_to_server(struct dhcpMessage *p, int packet_len, int client, in | |||
206 | * pass_to_client() - forwards dhcp packets from server to client | 206 | * pass_to_client() - forwards dhcp packets from server to client |
207 | * p - packet to send | 207 | * p - packet to send |
208 | */ | 208 | */ |
209 | static void pass_to_client(struct dhcpMessage *p, int packet_len, int *fds) | 209 | static void pass_to_client(struct dhcp_packet *p, int packet_len, int *fds) |
210 | { | 210 | { |
211 | int res, type; | 211 | int res, type; |
212 | struct xid_item *item; | 212 | struct xid_item *item; |
@@ -240,7 +240,7 @@ static void pass_to_client(struct dhcpMessage *p, int packet_len, int *fds) | |||
240 | int dhcprelay_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 240 | int dhcprelay_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
241 | int dhcprelay_main(int argc, char **argv) | 241 | int dhcprelay_main(int argc, char **argv) |
242 | { | 242 | { |
243 | struct dhcpMessage dhcp_msg; | 243 | struct dhcp_packet dhcp_msg; |
244 | struct sockaddr_in server_addr; | 244 | struct sockaddr_in server_addr; |
245 | struct sockaddr_in client_addr; | 245 | struct sockaddr_in client_addr; |
246 | fd_set rfds; | 246 | fd_set rfds; |