diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/net/if_ppp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/libnetworking/net/if_ppp.c b/cpukit/libnetworking/net/if_ppp.c index 1edf9c7521..64e5d88459 100644 --- a/cpukit/libnetworking/net/if_ppp.c +++ b/cpukit/libnetworking/net/if_ppp.c @@ -306,7 +306,7 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg) sc->sc_outlen = (short )0; sc->sc_outoff = (short )0; sc->sc_outfcslen = (short )0; -
+ /* printf("Start Transmit Packet..\n"); */ /* loop over all mbufs in chain */ @@ -325,17 +325,17 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg) if(m->m_len){ sc->sc_outfcs = pppfcs(sc->sc_outfcs, mtod(m, u_char *), m->m_len); } -
- if(( m->m_next != NULL ) && ( m->m_next->m_len == 0 )) {
- if(mf){
- printf(" if_ppp.c : MBUF Error !!!!\n");
- }
- else{
+ + if(( m->m_next != NULL ) && ( m->m_next->m_len == 0 )) { + if(mf){ + printf(" if_ppp.c : MBUF Error !!!!\n"); + } + else{ mf = m->m_next; - m->m_next = NULL;
+ m->m_next = NULL; } } -
+ #ifdef LALL_X /* check next packet to see if it is empty */ while (( m->m_next != NULL ) && ( m->m_next->m_len == 0 )) { @@ -380,7 +380,7 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg) rtems_bsdnet_semaphore_obtain(); m_freem(mf); rtems_bsdnet_semaphore_release(); - }
+ } } } } |