dhcpoffer(), dhcpack(), dhcpnak().
-/* $OpenBSD: dhclient.c,v 1.426 2017/06/15 16:56:11 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.427 2017/06/15 17:06:17 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
}
void
-dhcpack(struct interface_info *ifi, struct in_addr client_addr,
- struct option_data *options, char *info)
+dhcpack(struct interface_info *ifi, struct option_data *options, char *info)
{
struct client_lease *lease;
}
void
-dhcpoffer(struct interface_info *ifi, struct in_addr client_addr,
- struct option_data *options, char *info)
+dhcpoffer(struct interface_info *ifi, struct option_data *options, char *info)
{
struct dhcp_packet *packet = &ifi->recv_packet;
struct client_lease *lease, *lp;
}
void
-dhcpnak(struct interface_info *ifi, struct in_addr client_addr,
- struct option_data *options, char *info)
+dhcpnak(struct interface_info *ifi, struct option_data *options, char *info)
{
if (ifi->state != S_REBOOTING &&
ifi->state != S_REQUESTING &&
-/* $OpenBSD: dhcpd.h,v 1.181 2017/06/14 20:27:08 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.182 2017/06/15 17:06:17 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
extern int log_perror;
extern int routefd;
-void dhcpoffer(struct interface_info *, struct in_addr, struct option_data *,
- char *);
-void dhcpack(struct interface_info *, struct in_addr, struct option_data *,
- char *);
-void dhcpnak(struct interface_info *, struct in_addr, struct option_data *,
- char *);
+void dhcpoffer(struct interface_info *, struct option_data *, char *);
+void dhcpack(struct interface_info *, struct option_data *,char *);
+void dhcpnak(struct interface_info *, struct option_data *,char *);
void free_client_lease(struct client_lease *);
-/* $OpenBSD: options.c,v 1.91 2017/06/14 16:09:42 krw Exp $ */
+/* $OpenBSD: options.c,v 1.92 2017/06/15 17:06:17 krw Exp $ */
/* DHCP options parsing and reassembly. */
struct dhcp_packet *packet = &ifi->recv_packet;
struct option_data options[256];
struct reject_elem *ap;
- void (*handler)(struct interface_info *, struct in_addr,
- struct option_data *, char *);
+ void (*handler)(struct interface_info *, struct option_data *, char *);
char *type, *info;
int i, rslt, options_valid = 1;
fatalx("no memory for info string");
if (handler)
- (*handler)(ifi, from, options, info);
+ (*handler)(ifi, options, info);
free(info);