Fix stale declaration of arp_check().

This commit is contained in:
Nicholas J. Kain 2010-12-24 10:40:46 -05:00
parent 87b28de015
commit d96cb14711

View File

@ -12,6 +12,7 @@
#include "packet.h" #include "packet.h"
#include "dhcpmsg.h" #include "dhcpmsg.h"
#include "socket.h" #include "socket.h"
#include "arp.h"
#include "ifchange.h" #include "ifchange.h"
#include "sys.h" #include "sys.h"
#include "log.h" #include "log.h"
@ -225,9 +226,6 @@ static void init_selecting_packet(struct client_state_t *cs,
} }
} }
// from ndhc.c
void arp_check(struct dhcpMessage *packet);
static void dhcp_ack_or_nak_packet(struct client_state_t *cs, static void dhcp_ack_or_nak_packet(struct client_state_t *cs,
struct dhcpMessage *packet, struct dhcpMessage *packet,
unsigned char *message) unsigned char *message)
@ -247,7 +245,7 @@ static void dhcp_ack_or_nak_packet(struct client_state_t *cs,
cs->lease = RETRY_DELAY; cs->lease = RETRY_DELAY;
} }
arp_check(packet); arp_check(cs, packet);
// Can transition from DS_ARP_CHECK to DS_BOUND or DS_INIT_SELECTING. // Can transition from DS_ARP_CHECK to DS_BOUND or DS_INIT_SELECTING.
} else if (*message == DHCPNAK) { } else if (*message == DHCPNAK) {