diff options
author | phk <phk@FreeBSD.org> | 1996-04-24 15:44:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-04-24 15:44:34 +0000 |
commit | af5eac078b622c240d40982a0ae1da0eb33261a2 (patch) | |
tree | 0c46427692b9d239ff527d7369fe0e3e70ace8e7 /sys/net | |
parent | 0128db8c55c60b6cd5f2056226829b4b9dccb8d7 (diff) | |
download | FreeBSD-src-af5eac078b622c240d40982a0ae1da0eb33261a2.zip FreeBSD-src-af5eac078b622c240d40982a0ae1da0eb33261a2.tar.gz |
Reject all IP versions but 4.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 8ed7268..621283b 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.36 1996/02/06 18:51:14 wollman Exp $ + * $Id: if_sl.c,v 1.37 1996/04/07 17:39:09 bde Exp $ */ /* @@ -561,7 +561,8 @@ slstart(tp) } while (m1 = m1->m_next); } #endif - if ((ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) { + if ((ip = mtod(m, struct ip *))->ip_v == IPVERSION) && + (ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) { if (sc->sc_if.if_flags & SC_COMPRESS) *mtod(m, u_char *) |= sl_compress_tcp(m, ip, &sc->sc_comp, 1); |