summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-06-27 13:24:50 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-06-27 13:24:50 +0000
commitfdf5f8356b96ec41b8c113e5656448d8a757b123 (patch)
treecc89a0dd7b2336831b2c6459715261d8da6863cc /sbin/dhclient/dhclient.c
parentfc3f88d1377c7bffa72b592c383a452c6267a2d1 (diff)
Nuke get_rdomain() and just snag the interface rdomain from the same
ifa we use to get the interface hw address. One less socket() and ioctl()! MIssed cleanup from shift to just watching RTM_IFINFO messages for rdomain switch.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 223fc7f1786..4803574ecb9 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.448 2017/06/25 00:38:38 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.449 2017/06/27 13:24:49 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -535,7 +535,6 @@ main(int argc, char *argv[])
}
/* Put us into the correct rdomain */
- ifi->rdomain = get_rdomain(ifi->name);
if (setrtable(ifi->rdomain) == -1)
fatal("setting routing table to %u", ifi->rdomain);