summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2016-04-24 09:02:17 +0000
committerRenato Botelho <renato@netgate.com>2016-04-25 09:24:12 -0300
commitdaa0dd3c20e315dab7cecd5ac7ebd5252c6d6898 (patch)
tree9a62c53ff42986dc2d7ad28afe710dc8e7fa4763 /lib/libc/stdlib
parentd3c47eaa9d2ca52cf936c0801b144ff5a228ad56 (diff)
downloadFreeBSD-src-daa0dd3c20e315dab7cecd5ac7ebd5252c6d6898.zip
FreeBSD-src-daa0dd3c20e315dab7cecd5ac7ebd5252c6d6898.tar.gz
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 (cherry picked from commit dcf50398ab66cfcba0ae4484efe3b5ce40fb9824)
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud