freebsd_amp_hwpstate/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
..
Makefile Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
Makefile.depend
altq.c
dummynet.c
ipfw.8 Add "tcpmss" opcode to match the TCP MSS value. 2019-06-21 10:54:51 +00:00
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
ipv6.c
main.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
nat.c
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
nptv6.c
tables.c Add `missing` and `or-flush` options to "ipfw table <NAME> create" 2019-05-24 11:06:24 +00:00