summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-06-15 17:10:27 +0000
committerwollman <wollman@FreeBSD.org>1996-06-15 17:10:27 +0000
commit06f69c117576b3d06c4e68e32464615416868535 (patch)
treeb32072dc7e2745ac3daaf8baecedee35ae206ebb
parent423ad17ec2f4dbbc6077e06a461c9ae1e858e0bd (diff)
downloadFreeBSD-src-06f69c117576b3d06c4e68e32464615416868535.zip
FreeBSD-src-06f69c117576b3d06c4e68e32464615416868535.tar.gz
Fix multicast address for sending router discovery packets.
Submitted by: Kensaku Masuda <greg@greg.rim.or.jp>
-rw-r--r--usr.sbin/routed/rdisc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/routed/rdisc.c b/usr.sbin/routed/rdisc.c
index 93c5f8b..b3d57f9 100644
--- a/usr.sbin/routed/rdisc.c
+++ b/usr.sbin/routed/rdisc.c
@@ -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));
OpenPOWER on IntegriCloud