]> 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, 11 May 2021 08:27:57 +0000 (10:27 +0200)
commitb0b9525172ba9f8704f810d974f56d4ee3aad51f
tree21e2dfc485fc3309e533b9839cdb7c4b032db5a5
parentd0c90712df75e588cc1fa1f68a93f67ba9ff80c6
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

(cherry picked from commit 2aa21096c7349390f22aa5d06b373a575baed1b4)
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]