diff options
author | wollman <wollman@FreeBSD.org> | 1994-10-21 02:38:29 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-10-21 02:38:29 +0000 |
commit | 2714516b29c959ae72c1898de2ccc2a1908b807d (patch) | |
tree | cb1bb5a65a40d40ce021274c124f92350a8c59c3 | |
parent | d50bb0c33ed84ecf2a744ba0dbafe7be2f05998d (diff) | |
download | FreeBSD-src-2714516b29c959ae72c1898de2ccc2a1908b807d.zip FreeBSD-src-2714516b29c959ae72c1898de2ccc2a1908b807d.tar.gz |
Bug fixes from John Brezak.
-rw-r--r-- | sys/netinet/ip_mroute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 4c5f1c5..92401dd 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -562,7 +562,7 @@ add_vif(vifcp) register struct vifctl *vifcp; { register struct vif *vifp = viftable + vifcp->vifc_vifi; - static struct sockaddr_in sin = {AF_INET}; + static struct sockaddr_in sin = {sizeof sin, AF_INET}; struct ifaddr *ifa; struct ifnet *ifp; struct ifreq ifr; @@ -924,8 +924,8 @@ X_ip_mforward(ip, ifp, m, imo) register u_char *ipoptions; u_long tunnel_src; static struct sockproto k_igmpproto = { AF_INET, IPPROTO_IGMP }; - static struct sockaddr_in k_igmpsrc = { AF_INET }; - static struct sockaddr_in k_igmpdst = { AF_INET }; + static struct sockaddr_in k_igmpsrc = { sizeof k_igmpsrc, AF_INET }; + static struct sockaddr_in k_igmpdst = { sizeof k_igmpdst, AF_INET }; register struct mbuf *mm; register struct ip *k_data; int s; |