summaryrefslogtreecommitdiff
path: root/sbin/dhclient/kroute.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-06-29 13:55:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-06-29 13:55:54 +0000
commit51fc996614d0cfe36914d8a9625ace0b34ca7e61 (patch)
tree17c938a674543b7270cbf27e0a19a33344cae629 /sbin/dhclient/kroute.c
parent2fd0244d8eda384667cbb4a05437223806cc4b92 (diff)
delete_addresses(), interface_status(), addressinuse(),
lease_as_string() and rewrite_option_db() only use the interface name, so supply just the name. Tweak interface_link_forceup() to use the same param name as other functions taking the interface name.
Diffstat (limited to 'sbin/dhclient/kroute.c')
-rw-r--r--sbin/dhclient/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 37a7de4fa3a..38c65399de4 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.99 2017/06/28 16:31:52 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.100 2017/06/29 13:55:53 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -548,7 +548,7 @@ priv_add_route(int rdomain, struct imsg_add_route *imsg)
* interface.
*/
void
-delete_addresses(struct interface_info *ifi)
+delete_addresses(char *name)
{
struct in_addr addr;
struct ifaddrs *ifap, *ifa;
@@ -561,7 +561,7 @@ delete_addresses(struct interface_info *ifi)
(ifa->ifa_flags & IFF_POINTOPOINT) ||
(!(ifa->ifa_flags & IFF_UP)) ||
(ifa->ifa_addr->sa_family != AF_INET) ||
- (strcmp(ifi->name, ifa->ifa_name) != 0))
+ (strcmp(name, ifa->ifa_name) != 0))
continue;
memcpy(&addr, &((struct sockaddr_in *)ifa->ifa_addr)->sin_addr,