diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-28 12:53:47 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-28 12:53:47 +0000 |
commit | 42d0b01824e3fff3edad7801ca97fb687c3ef1ed (patch) | |
tree | 140a129482c0e7b998c00752a062a2f112a5c82d /sbin/dhclient/dhclient.c | |
parent | c97b1a811696e840356ac24d8fce584eb6b132d7 (diff) |
Consistently use socket(..., AF_INET) for routing
sockets to cut down on unwanted IPv6 messages.
suggested by & ok claudio@
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 4803574ecb9..6acc6c5f266 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.449 2017/06/27 13:24:49 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.450 2017/06/28 12:53:46 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -612,7 +612,7 @@ main(int argc, char *argv[]) if (ifi->linkstat == 0) interface_link_forceup(ifi->name); - if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) == -1) + if ((routefd = socket(PF_ROUTE, SOCK_RAW, AF_INET)) == -1) fatal("socket(PF_ROUTE, SOCK_RAW)"); rtfilter = ROUTE_FILTER(RTM_PROPOSAL) | ROUTE_FILTER(RTM_NEWADDR) | |