diff options
author | dillo <dillo@pkgsrc.org> | 2002-01-30 10:05:13 +0000 |
---|---|---|
committer | dillo <dillo@pkgsrc.org> | 2002-01-30 10:05:13 +0000 |
commit | cffbbdc06a06d6e7d2d9009086e08114a008aea9 (patch) | |
tree | 7cb784496790826556f844b6f5913db631364553 /comms/pilot-link/patches | |
parent | 4d3918b43d824c7993ebfe3f63931a962ea63e20 (diff) | |
download | pkgsrc-cffbbdc06a06d6e7d2d9009086e08114a008aea9.tar.gz |
update pilot-link-libs to 0.9.5nb2:
fix error recovery (in SLP and PADP protocols)
Diffstat (limited to 'comms/pilot-link/patches')
-rw-r--r-- | comms/pilot-link/patches/patch-ae | 21 | ||||
-rw-r--r-- | comms/pilot-link/patches/patch-af | 29 |
2 files changed, 50 insertions, 0 deletions
diff --git a/comms/pilot-link/patches/patch-ae b/comms/pilot-link/patches/patch-ae new file mode 100644 index 00000000000..9cb83241ab4 --- /dev/null +++ b/comms/pilot-link/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1 2002/01/30 10:05:13 dillo Exp $ + +diff -r -u pilot-link.0.9.5/libsock/padp.c work/pilot-link.0.9.5/libsock/padp.c +--- libsock/padp.c.orig Tue Jun 19 07:50:11 2001 ++++ libsock/padp.c Wed Jan 30 10:09:18 2002 +@@ -173,13 +173,13 @@ + && (padp.type == + (unsigned char) padData) + && (slp->id == ps->xid) +- && (len == 0)) { ++ && (len == count+tlen)) { + fprintf(stderr, "Missing ack\n"); + /* Incoming padData from response to + this transmission. Maybe the Ack + was lost */ + /* Don't consume packet, and return success. */ +- count = 0; ++ count = len; + goto done; + return 0; + } else if (padp.type == (unsigned char) 4) { diff --git a/comms/pilot-link/patches/patch-af b/comms/pilot-link/patches/patch-af new file mode 100644 index 00000000000..bed4f74766e --- /dev/null +++ b/comms/pilot-link/patches/patch-af @@ -0,0 +1,29 @@ +$NetBSD: patch-af,v 1.1 2002/01/30 10:05:13 dillo Exp $ + +diff -r -u pilot-link.0.9.5/libsock/slp.c work/pilot-link.0.9.5/libsock/slp.c +--- libsock/slp.c.orig Wed Jun 6 10:16:56 2001 ++++ libsock/slp.c Wed Jan 30 09:44:42 2002 +@@ -136,6 +141,8 @@ + ps->mac->state++; + ps->mac->expect = 1; + ps->mac->buf++; ++ } else if (v == 0xbe) { ++ ps->mac->expect = 1; + } + break; + +@@ -143,9 +155,14 @@ + if (v == 0xed) { + /* OK. we think we're sync'ed, so go for the rest + of the header */ + ps->mac->state++; + ps->mac->expect = 7; + ps->mac->buf++; ++ } else if (v == 0xbe) { ++ --ps->mac->buf; ++ ps->mac->buf[-1] = v; ++ ps->mac->expect = 1; ++ ps->mac->state = 2; + } + break; + |