-/* $OpenBSD: dhclient.c,v 1.425 2017/06/14 20:27:08 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.426 2017/06/15 16:56:11 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
char *lease_as_string(struct interface_info *, char *, struct client_lease *);
void append_statement(char *, size_t, char *, char *);
-struct client_lease *packet_to_lease(struct interface_info *, struct in_addr,
+struct client_lease *packet_to_lease(struct interface_info *,
struct option_data *);
void go_daemon(void);
int rdaemon(int);
log_info("%s", info);
- lease = packet_to_lease(ifi, client_addr, options);
+ lease = packet_to_lease(ifi, options);
if (lease->is_invalid) {
log_info("Unsatisfactory %s", info);
make_decline(ifi, lease);
}
}
- lease = packet_to_lease(ifi, client_addr, options);
+ lease = packet_to_lease(ifi, options);
/*
* If this lease was acquired through a BOOTREPLY, record that
* parameters in the specified packet.
*/
struct client_lease *
-packet_to_lease(struct interface_info *ifi, struct in_addr client_addr,
- struct option_data *options)
+packet_to_lease(struct interface_info *ifi, struct option_data *options)
{
struct dhcp_packet *packet = &ifi->recv_packet;
char ifname[IF_NAMESIZE];