diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
commit | 423416d7132c24768e94462586d45aa7ac4cd373 (patch) | |
tree | dd3834f14aa457e8bd05345656d2288103f00432 /usr.sbin/mrouted/igmp.c | |
parent | e3b496d3f0f19932a3182672e8283cb667967c24 (diff) | |
download | FreeBSD-src-423416d7132c24768e94462586d45aa7ac4cd373.zip FreeBSD-src-423416d7132c24768e94462586d45aa7ac4cd373.tar.gz |
Make it compile and (except for mrouted which is untested as yet) run.
Some of these ``modified'' files aren't really modified at all, but CVS
isn't smart enough to know the difference.
Diffstat (limited to 'usr.sbin/mrouted/igmp.c')
-rw-r--r-- | usr.sbin/mrouted/igmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/igmp.c b/usr.sbin/mrouted/igmp.c index f44e2f1..7ddf3bc 100644 --- a/usr.sbin/mrouted/igmp.c +++ b/usr.sbin/mrouted/igmp.c @@ -41,6 +41,8 @@ void init_igmp() k_set_loop(FALSE); /* disable multicast loopback */ ip = (struct ip *)send_buf; + ip->ip_hl = sizeof(struct ip) >> 2; + ip->ip_v = IPVERSION; ip->ip_tos = 0; ip->ip_off = 0; ip->ip_p = IPPROTO_IGMP; @@ -255,7 +257,7 @@ void send_igmp(src, dst, type, code, group, datalen) u_long group; int datalen; { - static struct sockaddr_in sdst = {AF_INET}; + static struct sockaddr_in sdst = {AF_INET, sizeof sdst}; struct ip *ip; struct igmp *igmp; |