Let ipfw_chk() return IP_FW_{PASS,DENY,DUMMYNET,TEE,DIVERT} and the caller
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 7 Sep 2008 10:03:45 +0000 (10:03 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 7 Sep 2008 10:03:45 +0000 (10:03 +0000)
commit29b27cb7b7bf7c8e9250e335c0e03736f0040558
tree4e5dd48252ccaff484c9ac051fd52766611444ce
parent6b7bde44184a7a4502ef3ec6f061b4268b50ea82
Let ipfw_chk() return IP_FW_{PASS,DENY,DUMMYNET,TEE,DIVERT} and the caller
proceeds according to the return value in well strutured switch block.  The
additional information related to the return value (e.g. pipe/queue number
of IP_FW_DUMMYNET) is saved in ip_fw_args.cookie.

Idea-from: FreeBSD
sys/net/if_ethersubr.c
sys/net/ipfw/ip_fw2.c
sys/net/ipfw/ip_fw2.h
sys/netinet/ip_input.c
sys/netinet/ip_output.c