1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sbin/ipfw
Kyle Evans c144616b7d ipfw: fix jail option after r348215
r348215 changed jail_getid(3) to validate passed-in jids as active jails
(as the function is documented to return -1 if the jail does not exist).
This broke the jail option (in some cases?) as the jail historically hasn't
needed to exist at the time of rule parsing; jids will get stored and later
applied.

Fix this caller to attempt to parse *av as a number first and just use it
as-is to match historical behavior. jail_getid(3) must still be used in
order for name arguments to work, but it's strictly a fallback in case we
weren't given a number.

Reported and tested by:	Ari Suutari <ari stonepile fi>
Reviewed by:	ae
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D21128
2019-08-05 00:08:25 +00:00
..
altq.c Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
dummynet.c
ipfw2.c ipfw: fix jail option after r348215 2019-08-05 00:08:25 +00:00
ipfw2.h Add "tcpmss" opcode to match the TCP MSS value. 2019-06-21 10:54:51 +00:00
ipfw.8 Add "tcpmss" opcode to match the TCP MSS value. 2019-06-21 10:54:51 +00:00
ipv6.c Make multiline APPLY_MASK() macro to be function-like. 2018-11-20 18:38:28 +00:00
main.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
Makefile Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
Makefile.depend
nat64clat.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
nat64lsn.c Remove extra spaces. 2019-03-19 11:16:42 +00:00
nat64stl.c Add SPDX-License-Identifier and update year in copyright. 2019-03-18 10:50:32 +00:00
nat.c
nptv6.c Add ability to use dynamic external prefix in ipfw_nptv6 module. 2018-11-12 11:20:59 +00:00
tables.c Add missing and or-flush options to "ipfw table <NAME> create" 2019-05-24 11:06:24 +00:00