diff options
author | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 2000-08-30 02:37:06 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 2000-08-30 02:37:06 +0000 |
commit | e859b2730fe7be2856c14a05bca3f3bb7275805c (patch) | |
tree | 06cbb05311120cb9aab0226706c433e3682d17cd /sys/net | |
parent | a2e5a65e73ce7148353e13a0a43ec020f4844088 (diff) | |
download | src-e859b2730fe7be2856c14a05bca3f3bb7275805c.tar.gz src-e859b2730fe7be2856c14a05bca3f3bb7275805c.zip |
MFC; IN_MULTICAST has different endian on *BSD.
Notes
Notes:
svn path=/stable/4/; revision=65232
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_stf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index c95aaa54ec0e..bfd462a777f3 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -1,5 +1,5 @@ /* $FreeBSD$ */ -/* $KAME: if_stf.c,v 1.40 2000/06/20 19:44:42 itojun Exp $ */ +/* $KAME: if_stf.c,v 1.42 2000/08/15 07:24:23 itojun Exp $ */ /* * Copyright (C) 2000 WIDE Project. @@ -408,7 +408,7 @@ stf_checkaddr4(in, ifp) * reject packets with the following address: * 224.0.0.0/4 0.0.0.0/8 127.0.0.0/8 255.0.0.0/8 */ - if (IN_MULTICAST(in->s_addr)) + if (IN_MULTICAST(ntohl(in->s_addr))) return -1; switch ((ntohl(in->s_addr) & 0xff000000) >> 24) { case 0: case 127: case 255: |