This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PPP fix for Sprint wireless network
- From: Matt Jerdonek <maj1224 at yahoo dot com>
- To: Patches eCos <ecos-patches at sources dot redhat dot com>
- Date: Thu, 13 Jan 2005 14:57:19 -0800 (PST)
- Subject: PPP fix for Sprint wireless network
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=SejxIT4len+MZyv5D00+IWsv6F8ozwKOcoYNVoQJnxxd0nxQdFxvqxpVrzjvuR4Fa7NOjr5ZStRoWdXgf/S4idGWpmYO59+Zt/CIlMBqfHFxYRMG9hMEwyBoE37hpAgfxMatAXbNlPs1c3Ogc5djQOicv2lXFdGIu698GCM9R6k= ;
Hi,
The sprint network requires a leading flag on every
packet.
-- Matt
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
Index: net/ppp/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ppp/current/ChangeLog,v
retrieving revision 1.7
diff -u -r1.7 ChangeLog
--- net/ppp/current/ChangeLog 8 Sep 2004 14:07:06 -0000 1.7
+++ net/ppp/current/ChangeLog 13 Jan 2005 22:49:00 -0000
@@ -1,3 +1,11 @@
+2005-01-13 Matt Jerdonek <maj1224@yahoo.com>
+
+ * src/ppp_io.c
+ Update to always send a flag (0x7E) character
+ before every packet. This is not required according
+ to RFC 1662, but found to be necessary for some
+ wireless networks.
+
2004-08-19 Oyvind Harboe <oyvind.harboe@zylin.com>
2004-09-08 Andrew Lunn <andrew.lunn@ascom.ch>
Index: net/ppp/current/src/ppp_io.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ppp/current/src/ppp_io.c,v
retrieving revision 1.3
diff -u -r1.3 ppp_io.c
--- net/ppp/current/src/ppp_io.c 6 May 2004 14:46:35 -0000 1.3
+++ net/ppp/current/src/ppp_io.c 13 Jan 2005 22:49:00 -0000
@@ -612,6 +612,8 @@
*/
m = sc->sc_outm;
if (m == NULL) {
+ char start_flag = PPP_FLAG;
+ int start_flag_len = 1;
/*
* Get another packet to be sent.
*/
@@ -624,6 +626,7 @@
/* Calculate the FCS for the first mbuf's worth. */
sc->sc_outfcs = pppfcs(PPP_INITFCS, mtod(m, u_char *), m->m_len);
getmicrotime(&sc->sc_if.if_lastchange);
+ cyg_io_write( tp->t_handle, &start_flag, &start_flag_len);
}
for (;;) {