blob: 114010fb88f0dfd6a304d6daecf84ac74089a656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ad,v 1.2 2005/12/09 10:46:43 joerg Exp $
--- hercifc.c.orig 2001-01-28 18:05:40.000000000 +0000
+++ hercifc.c
@@ -64,7 +64,11 @@ struct sockaddr_in *sin;
sin = (struct sockaddr_in*)
(oper == SIOCSIFADDR ? &ifreq.ifr_addr
:oper == SIOCSIFDSTADDR ? &ifreq.ifr_dstaddr
+#if defined(__NetBSD__) || defined(__DragonFly__)
+ :oper == SIOCSIFNETMASK ? &ifreq.ifr_broadaddr
+#else
:oper == SIOCSIFNETMASK ? &ifreq.ifr_netmask
+#endif
:NULL);
/* Store the IP address into the structure */
|