summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:02:18 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:02:18 +0000
commite93592db59a45b754acf3d89c711bcaa2d52ded3 (patch)
treeaccbd5601cf9ed9526d3a66735c5d342ac2c5c8c
parente5754a8b88eab686c52ba83a1fdbdd5b879d8dd4 (diff)
ifaliases "aware".
-rw-r--r--usr.sbin/mrouted/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/mrouted/config.c b/usr.sbin/mrouted/config.c
index 39d8f5c0db7..ac7b7c817fc 100644
--- a/usr.sbin/mrouted/config.c
+++ b/usr.sbin/mrouted/config.c
@@ -78,6 +78,7 @@ config_vifs_from_kernel()
* valid subnet number, or whose address is of the form {subnet,0}
* or {subnet,-1}.
*/
+ ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr = addr;
if (ioctl(udp_socket, SIOCGIFNETMASK, (char *)&ifr) < 0)
log(LOG_ERR, errno, "ioctl SIOCGIFNETMASK for %s", ifr.ifr_name);
mask = ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr;