]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Implement the NAT source port selection of MAP-E Customer Edge
authorKurosawa Takahiro <takahiro.kurosawa@gmail.com>
Tue, 13 Apr 2021 08:50:00 +0000 (10:50 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 13 Apr 2021 08:53:18 +0000 (10:53 +0200)
commit2aa21096c7349390f22aa5d06b373a575baed1b4
tree7f635fefcee8998485840c2098b46fb8630e89a0
parente6ab1e365c06559e964667d2f5a6de856fa28be6
pf: Implement the NAT source port selection of MAP-E Customer Edge

MAP-E (RFC 7597) requires special care for selecting source ports
in NAT operation on the Customer Edge because a part of bits of the port
numbers are used by the Border Relay to distinguish another side of the
IPv4-over-IPv6 tunnel.

PR: 254577
Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D29468
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/parse.y
sbin/pfctl/pfctl_parser.c
share/man/man5/pf.conf.5
sys/net/pfvar.h
sys/netpfil/pf/pf.h
sys/netpfil/pf/pf_ioctl.c
sys/netpfil/pf/pf_lb.c
tests/sys/netpfil/pf/Makefile
tests/sys/netpfil/pf/map_e.sh [new file with mode: 0644]