From e49799dcf14e7026f377d26a70fe0a3a3d15390a Mon Sep 17 00:00:00 2001 From: Kurosawa Takahiro Date: Tue, 13 Apr 2021 10:50:00 +0200 Subject: 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) --- sys/netpfil/pf/pf.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/netpfil/pf/pf.h') diff --git a/sys/netpfil/pf/pf.h b/sys/netpfil/pf/pf.h index 45a3efe91efb..011d69a746dd 100644 --- a/sys/netpfil/pf/pf.h +++ b/sys/netpfil/pf/pf.h @@ -317,6 +317,12 @@ struct pf_poolhashkey { #define key32 pfk.key32 }; +struct pf_mape_portset { + u_int8_t offset; + u_int8_t psidlen; + u_int16_t psid; +}; + struct pf_pool { struct pf_palist list; struct pf_pooladdr *cur; -- cgit v1.2.3