summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorcube <cube>2005-01-06 18:22:16 +0000
committercube <cube>2005-01-06 18:22:16 +0000
commit4ea5315c87577d28fa972cafd174233b86565aa3 (patch)
tree5e085e0195d6c6d690f457f9acd0bea370c0fbdb /net
parente6085f1451b8068cf5d6b537c83e812128a3895f (diff)
downloadpkgsrc-4ea5315c87577d28fa972cafd174233b86565aa3.tar.gz
Fix a bug that made the kernel module crash when trying to send packets of
size approximatively equal to MLEN. PKGREVISION++, everyone using that package should update.
Diffstat (limited to 'net')
-rw-r--r--net/mppe-lkm/Makefile3
-rw-r--r--net/mppe-lkm/distinfo4
-rw-r--r--net/mppe-lkm/patches/patch-aa6
3 files changed, 7 insertions, 6 deletions
diff --git a/net/mppe-lkm/Makefile b/net/mppe-lkm/Makefile
index 1a293d7b4b0..4afb2048136 100644
--- a/net/mppe-lkm/Makefile
+++ b/net/mppe-lkm/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2005/01/06 05:37:21 tv Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/06 18:22:16 cube Exp $
DISTNAME= kernel_ppp_mppe-0.0.4-src
PKGNAME= mppe-lkm-0.0.4
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=poptop/}
EXTRACT_SUFX= .tgz
diff --git a/net/mppe-lkm/distinfo b/net/mppe-lkm/distinfo
index 9e31e5c8cad..3337cdcfc65 100644
--- a/net/mppe-lkm/distinfo
+++ b/net/mppe-lkm/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/01/02 02:52:56 cube Exp $
+$NetBSD: distinfo,v 1.2 2005/01/06 18:22:16 cube Exp $
SHA1 (kernel_ppp_mppe-0.0.4-src.tgz) = 37dc2487c760a78eb02585690bd6a1708d8dbaa2
Size (kernel_ppp_mppe-0.0.4-src.tgz) = 54194 bytes
-SHA1 (patch-aa) = 56209bf008dbff6983d27c26b011d8a7d839973d
+SHA1 (patch-aa) = e219f76184a5684dd19e8dac828a8bb8c2b51f17
diff --git a/net/mppe-lkm/patches/patch-aa b/net/mppe-lkm/patches/patch-aa
index daa5e0fda85..fcb1aa9ba74 100644
--- a/net/mppe-lkm/patches/patch-aa
+++ b/net/mppe-lkm/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/01/02 02:52:57 cube Exp $
+$NetBSD: patch-aa,v 1.2 2005/01/06 18:22:16 cube Exp $
--- ppp_mppe_compress.c.orig 2004-05-31 07:31:51.000000000 +0200
+++ ppp_mppe_compress.c
@@ -250,7 +250,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2005/01/02 02:52:57 cube Exp $
+ struct mbuf *mfirst = NULL;
+ struct mbuf *mprev;
+ struct mbuf *m = NULL;
-+ int bleft = isize+MPPE_OVHD;
++ int bleft = isize+MPPE_OVHD+2;
+ do {
+ mprev = m;
+ MGET(m,M_DONTWAIT, MT_DATA);
@@ -400,7 +400,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2005/01/02 02:52:57 cube Exp $
+ if (mp->m_len <= PPP_HDRLEN + MPPE_OVHD) {
+ if (state->debug)
+ aprint_error("mppe_decompress[%d]: short pkt (%d)\n",
-+ state->unit, isize);
++ state->unit, mp->m_len);
return DECOMP_ERROR;
}
- osize = isize - MPPE_OVHD - 2; /* assume no PFC */