summaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind/ypbind.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:16:16 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:16:16 +0000
commit6eca3ec0066eedba2dd2398a565f016660def011 (patch)
treec4b2cccb53617509f655ad296a816f0d86d47727 /usr.sbin/ypbind/ypbind.c
parentccd53af02feaf7af1a291bfbd3eaf9bca71fcdad (diff)
Ifaliases.
Diffstat (limited to 'usr.sbin/ypbind/ypbind.c')
-rw-r--r--usr.sbin/ypbind/ypbind.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 9d48b594e11..b8c630c1301 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.32 1998/02/07 18:51:48 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.33 1998/03/20 03:16:15 angelos Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -34,7 +34,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.32 1998/02/07 18:51:48 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.33 1998/03/20 03:16:15 angelos Exp $";
#endif
#include <sys/param.h>
@@ -805,11 +805,13 @@ broadcast(ypdb, buf, outlen)
ifreq.ifr_flags &= (IFF_LOOPBACK | IFF_BROADCAST);
if (ifreq.ifr_flags == IFF_BROADCAST) {
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sock, SIOCGIFBRDADDR, &ifreq) < 0) {
perror("ioctl(SIOCGIFBRDADDR)");
continue;
}
} else if (ifreq.ifr_flags == IFF_LOOPBACK) {
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
perror("ioctl(SIOCGIFADDR)");
continue;