diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-24 15:44:34 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-24 15:44:34 +0000 |
| commit | 3fb9e5a20bcb63a44951288212aae9042e75d7f8 (patch) | |
| tree | 0c46427692b9d239ff527d7369fe0e3e70ace8e7 | |
| parent | 52faebb233cfcbcfc5f8d82fed0bb0dcc6346fdc (diff) | |
Notes
| -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 8ed72685ed114..621283b1a6640 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); |
