From 31af3d5a1dbc750d8646f948ce642e6ae57ce880 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 17 Jun 2009 11:57:09 +0200 Subject: udhcp: shorten mac len from 16 to 6 in lease file Signed-off-by: Denys Vlasenko --- networking/udhcp/dhcprelay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/udhcp/dhcprelay.c') 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) * p - pointer to the dhcp packet * returns the message type on success, -1 otherwise */ -static int get_dhcp_packet_type(struct dhcpMessage *p) +static int get_dhcp_packet_type(struct dhcp_packet *p) { uint8_t *op; @@ -175,7 +175,7 @@ static int init_sockets(char **client_ifaces, int num_clients, * p - packet to send * client - number of the client */ -static void pass_to_server(struct dhcpMessage *p, int packet_len, int client, int *fds, +static void pass_to_server(struct dhcp_packet *p, int packet_len, int client, int *fds, struct sockaddr_in *client_addr, struct sockaddr_in *server_addr) { int res, type; @@ -206,7 +206,7 @@ static void pass_to_server(struct dhcpMessage *p, int packet_len, int client, in * pass_to_client() - forwards dhcp packets from server to client * p - packet to send */ -static void pass_to_client(struct dhcpMessage *p, int packet_len, int *fds) +static void pass_to_client(struct dhcp_packet *p, int packet_len, int *fds) { int res, type; struct xid_item *item; @@ -240,7 +240,7 @@ static void pass_to_client(struct dhcpMessage *p, int packet_len, int *fds) int dhcprelay_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int dhcprelay_main(int argc, char **argv) { - struct dhcpMessage dhcp_msg; + struct dhcp_packet dhcp_msg; struct sockaddr_in server_addr; struct sockaddr_in client_addr; fd_set rfds; -- cgit v1.2.3