diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-04 12:50:09 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-04 12:50:09 +0000 |
commit | f0e1183340f752375b58c4b49995db4f0c31b624 (patch) | |
tree | 1416868094f0e80c39a6baf845bc6d5b8ab8943b /usr.bin/top | |
parent | 634420a0f2f3a1ee0096877563d809f13d3762d7 (diff) |
Implement IPv6 forwarding IPsec only.
IPsec gateways set the forwarding sysctl to 2. While this worked
for IPv4 since a long time, adapt this feature for IPv6 now. Set
sysctl net.inet6.ip6.forwarding=2 to forward only packets that have
been processed by IPsec.
Set IPV6_FORWARDING_IPSEC in ip6_input() and pass the flag down to
the call stack. This provides consistent view on global variable
ip6_forwarding. In ip6_output() or ip6_forward() drop packets that
do not match the policy.
OK denis@
Diffstat (limited to 'usr.bin/top')
0 files changed, 0 insertions, 0 deletions