Re: [PATCH 1/5 2.6.22-rc6] UDP: Introduce UDP encapsulation type for L2TP

2007-06-28 Thread James Chapman
David Miller wrote: Patch applied, thanks. Note that we could use the callback pointer for the XFRM case too, and I kind of thought you would understand that logical progression and implement that too :-/ I spotted it but didn't want to risk an error that would lead to the patch being bounce

Re: [PATCH 1/5 2.6.22-rc6] UDP: Introduce UDP encapsulation type for L2TP

2007-06-27 Thread David Miller
From: James Chapman <[EMAIL PROTECTED]> Date: Wed, 27 Jun 2007 23:20:38 +0100 > This patch adds a new UDP_ENCAP_L2TPINUDP encapsulation type for UDP > sockets. When a UDP socket's encap_type is UDP_ENCAP_L2TPINUDP, the > skb is delivered to a function pointed to by the udp_sock's > encap_rcv funcp

[PATCH 1/5 2.6.22-rc6] UDP: Introduce UDP encapsulation type for L2TP

2007-06-27 Thread James Chapman
This patch adds a new UDP_ENCAP_L2TPINUDP encapsulation type for UDP sockets. When a UDP socket's encap_type is UDP_ENCAP_L2TPINUDP, the skb is delivered to a function pointed to by the udp_sock's encap_rcv funcptr. If the skb isn't wanted by L2TP, it returns >0, which causes it to be passed throug