Fix multicast address for sending router discovery packets.

Submitted by:	Kensaku Masuda <greg@greg.rim.or.jp>
This commit is contained in:
Garrett Wollman 1996-06-15 17:10:27 +00:00
parent 1336da0dea
commit 58032a7209
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16393

View File

@ -32,11 +32,10 @@
*/
#ifndef lint
static char sccsid[] = "@(#)rdisc.c 8.1 (Berkeley) x/y/95";
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#ident "$Revision: 1.1 $"
#include "defs.h"
#include <netinet/in_systm.h>
#include <netinet/ip.h>
@ -788,7 +787,7 @@ rdisc_sol(void)
u.so.icmp_cksum = in_cksum((u_short*)&u.so,
sizeof(u.so));
send_rdisc(&u, sizeof(u.so), ifp,
INADDR_ALLROUTERS_GROUP,
htonl(INADDR_ALLROUTERS_GROUP),
((ifp->int_if_flags & IS_BCAST_RDISC)
? 1 : 2));