diff options
author | James Chapman <jchapman@katalix.com> | 2007-06-27 15:37:46 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-10 22:15:57 -0700 |
commit | 342f0234c71b40da785dd6a7ce1dd481ecbfdb81 (patch) | |
tree | b6d7295cd484449f3f6478fe3e796fc8988534a3 /include/linux/socket.h | |
parent | 4417da668c0021903464f92db278ddae348e0299 (diff) | |
download | blackbird-op-linux-342f0234c71b40da785dd6a7ce1dd481ecbfdb81.tar.gz blackbird-op-linux-342f0234c71b40da785dd6a7ce1dd481ecbfdb81.zip |
[UDP]: Introduce UDP encapsulation type for L2TP
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 through to UDP.
Include padding to put the new encap_rcv field on a 4-byte boundary.
Previously, the only user of UDP encap sockets was ESP, so when
CONFIG_XFRM was not defined, some of the encap code was compiled
out. This patch changes that. As a result, udp_encap_rcv() will
now do a little more work when CONFIG_XFRM is not defined.
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/socket.h')
0 files changed, 0 insertions, 0 deletions