kernels/linux-2.4.0/drivers/net/ppp_generic.c
/* Put a 0-length skb in the receive queue as an error indication */
Put a 0-length skb in the receive queue as an error indication
Put a 0 - length skb in the receive queue as an error indication
void
ppp_input_error(struct ppp_channel *chan, int code)
{
	struct channel *pch = chan->ppp;
	struct sk_buff *skb;
	if (pch == 0)
		return;
	read_lock_bh(&pch->upl);
	if (pch->ppp != 0) {
		skb = alloc_skb(0, GFP_ATOMIC);
		if (skb != 0) {
			skb->len = 0;		
			skb->cb[0] = code;
			ppp_do_recv(pch->ppp, skb, pch);
		}
	}
	read_unlock_bh(&pch->upl);
}
void ppp_input_error ( struct ppp_channel * chan , int code ) { struct channel * pch = chan -> ppp ; struct sk_buff * skb ; if ( pch == 0 ) return ; read_lock_bh ( & pch -> upl ) ; if ( pch -> ppp != 0 ) { skb = alloc_skb ( 0 , GFP_ATOMIC ) ; if ( skb != 0 ) { skb -> len = 0 ; skb -> cb [ 0 ] = code ; ppp_do_recv ( pch -> ppp , skb , pch ) ; } } read_unlock_bh ( & pch -> upl ) ; }
Put a 0-length skb in the receive queue as an error indication
Put a 0 - length skb in the receive queue as an error indication
/* probably unnecessary */