aboutsummaryrefslogtreecommitdiff
path: root/LOCKS
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2016-04-24 09:02:17 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2016-04-24 09:02:17 +0000
commit3cbd4ec3e48ecfbb4c76c160d43febae679ba204 (patch)
treed456d61d87136ae276d6e3fcba9582c7a643cc03 /LOCKS
parentf6c64174fec5893018339309148f53588c983cdd (diff)
downloadsrc-3cbd4ec3e48ecfbb4c76c160d43febae679ba204.tar.gz
src-3cbd4ec3e48ecfbb4c76c160d43febae679ba204.zip
Handle non-compressed packets for IPComp in tunnel mode.
RFC3173 says that the IP datagram MUST be sent in the original non-compressed form, when the total size of a compressed payload and the IPComp header is not smaller than the size of the original payload. In tunnel mode for small packets IPComp will send encapsulated IP datagrams without IPComp header. Add ip_encap handler for IPPROTO_IPV4 and IPPROTO_IPV6 to handle these datagrams. The handler does lookup for SA related to IPComp protocol and given from mbuf source and destination addresses as tunnel endpoints. It decapsulates packets only when corresponding SA is found. Reported by: gnn Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D6062
Notes
Notes: svn path=/head/; revision=298535
Diffstat (limited to 'LOCKS')
0 files changed, 0 insertions, 0 deletions