]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use IP_FW_NAT44_DESTROY opcode for IP_FW3 socket option to destroy
authorae <ae@FreeBSD.org>
Tue, 24 Mar 2020 12:27:02 +0000 (12:27 +0000)
committerae <ae@FreeBSD.org>
Tue, 24 Mar 2020 12:27:02 +0000 (12:27 +0000)
commit6e9131e1da4c998d823ca3299c97a00aadd8485c
treed4476efcc40054422668aeef06b9b54be9c5df4f
parentddf6a92010ef90871f83271bc6700eafdefe0ade
Use IP_FW_NAT44_DESTROY opcode for IP_FW3 socket option to destroy
NAT instance.

The NAT44 group of opcodes for IP_FW3 socket option is modern way
to control NAT instances and this method can be used in future to
switch from numeric to named NAT instances, like was done for ipfw
tables.
The IP_FW_NAT_DEL opcode is the last remnant of old ipfw_ctl control
plane that doesn't support versioned operations. This interface will
be retired soon.

Reviewed by: melifaro
MFC after: 10 days
Sponsored by: Yandex LLC
sbin/ipfw/ipfw2.c
sbin/ipfw/ipfw2.h
sbin/ipfw/nat.c