natd(8) will work with an unconfigured interface and effectively not do
authorjhb <jhb@FreeBSD.org>
Sun, 25 Jan 2015 20:37:32 +0000 (20:37 +0000)
committerjhb <jhb@FreeBSD.org>
Sun, 25 Jan 2015 20:37:32 +0000 (20:37 +0000)
commit71eba92ca59be0af74c0d1ed3e68559add33521c
tree627fb7fe90fd88682099da55b9ec02802c8301b1
parent03984c1e9c74ce91042ef333ec96564424269039
natd(8) will work with an unconfigured interface and effectively not do
anything until the interface is assigned an address.  This fixes
ipfw_nat to do the same by using an IP of INADDR_ANY instead of
aborting the nat setup if the requested interface is not yet configured.

Differential Revision: https://reviews.freebsd.org/D1539
Reviewed by: melifaro, glebius, gnn
MFC after: 1 week
sbin/ipfw/nat.c