This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PPP fix for Sprint wireless network


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 (;;) {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]