summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2013-10-13 12:18:19 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2013-10-13 12:18:19 +0000
commit136a1a992bb7c7c3a91c65f4840c4fc0c0d2b384 (patch)
tree4af39c18b2a3450fa031a13b267ff0a0ab2c3f49 /sbin
parent399c5007d024afdc86064ad9ed624913ce0d52e3 (diff)
Pass NI_DGRAM to getnameinfo() to use UDP tunnel service names.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/brconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/brconfig.c b/sbin/ifconfig/brconfig.c
index 5c38d457c3e..994a0dfb224 100644
--- a/sbin/ifconfig/brconfig.c
+++ b/sbin/ifconfig/brconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: brconfig.c,v 1.7 2013/10/13 10:10:00 reyk Exp $ */
+/* $OpenBSD: brconfig.c,v 1.8 2013/10/13 12:18:18 reyk Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -612,7 +612,7 @@ bridge_addrs(const char *delim, int d)
{
char dstaddr[NI_MAXHOST];
char dstport[NI_MAXSERV];
- const int niflag = NI_NUMERICHOST;
+ const int niflag = NI_NUMERICHOST|NI_DGRAM;
struct ifbaconf ifbac;
struct ifbareq *ifba;
char *inbuf = NULL, buf[sizeof(ifba->ifba_ifsname) + 1], *inb;