summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>2001-01-15 14:58:46 +0000
committerhm <hm@FreeBSD.org>2001-01-15 14:58:46 +0000
commit477441c0ce8bde58424fa346daae94f60ca34dd8 (patch)
treeb10e51e2d5df7e44ede0e301de0476a932db942f
parenta4ef9041cb78f9b9d0641fd751c19b431496cd8e (diff)
downloadFreeBSD-src-477441c0ce8bde58424fa346daae94f60ca34dd8.zip
FreeBSD-src-477441c0ce8bde58424fa346daae94f60ca34dd8.tar.gz
it seems that a commit to i4b/drivers/i4b_ispppsubr.c on 2000-01-12 has
broken the handling of uncompressed VJ packets. The attached diff should hopefully fix that. Submitted by: Thomas Moestl <tmoestl@gmx.net> Reviewed by: Sergio de Souza Prallon <prallon@tmp.com.br>
-rw-r--r--sys/i4b/driver/i4b_ispppsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i4b/driver/i4b_ispppsubr.c b/sys/i4b/driver/i4b_ispppsubr.c
index e307573..52f9e4e 100644
--- a/sys/i4b/driver/i4b_ispppsubr.c
+++ b/sys/i4b/driver/i4b_ispppsubr.c
@@ -572,8 +572,8 @@ isppp_input(struct ifnet *ifp, struct mbuf *m)
int hlen, vjlen;
if ((vjlen = sl_uncompress_tcp_core(m->m_data,
- m->m_len, m->m_len, TYPE_COMPRESSED_TCP,
- &sp->pp_comp, &iphdr, &hlen)) <= 0)
+ m->m_len, m->m_len, TYPE_UNCOMPRESSED_TCP,
+ &sp->pp_comp, &iphdr, &hlen)) != 0)
goto drop;
schednetisr (NETISR_IP);
OpenPOWER on IntegriCloud