Re: [PATCH net-2.6.23] UDP: Cleanup UDP encapsulation code

2007-07-05 Thread Patrick McHardy
James Chapman wrote: > diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c > index b9276f8..777d5e8 100644 > --- a/net/ipv4/udp.c > +++ b/net/ipv4/udp.c > @@ -70,7 +70,8 @@ > * Alexey Kuznetsov: allow both IPv4 and IPv6 sockets to bind > * a single po

[PATCH net-2.6.23] UDP: Cleanup UDP encapsulation code

2007-07-05 Thread James Chapman
This cleanup fell out after adding L2TP support where a new encap_rcv funcptr was added to struct udp_sock. Have XFRM use the new encap_rcv funcptr, which allows us to move the XFRM encap code from udp.c into xfrm4_input.c. Packets discarded by the encap handler are now counted in udp_mib_indatagr