ipfw3: support ip:port in filter from and new filter src-port
authorBill Yuan <bycn82@leaf.dragonflybsd.org>
Thu, 1 Oct 2015 18:19:44 +0000 (02:19 +0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Oct 2015 18:09:15 +0000 (11:09 -0700)
commitc1bde762c0c4b473a706ddf26e8d023bc4f24a22
tree59905ee91988aa6b002bcf8e9cb9f6c042611964
parent62f8e48121d7a9d3881b549b78501e1fd5a3aa77
ipfw3: support ip:port in filter from and new filter src-port
1. support ip:port in both filters 'from' and 'to'
2. new filters 'src-port' and 'dst-port'

e.g. block UDP packets to 192.168.1.1:1813
ipfw3 add deny udp to 192.168.1.1:1813
ipfw3 add deny udp to 192.168.1.1 dst-port 1813
lib/libipfw3/basic/ipfw3_basic.c
sys/net/ipfw3_basic/ip_fw3_basic.c
sys/net/ipfw3_basic/ip_fw3_basic.h