]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r266310
authormelifaro <melifaro@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 18 Sep 2015 17:29:24 +0000 (17:29 +0000)
committermelifaro <melifaro@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 18 Sep 2015 17:29:24 +0000 (17:29 +0000)
commita1bf7f5915d7875928bf58aeefd69aed75759946
tree7ab3e012c4c9d531d96fb628c7a3e79f93933434
parent63bfeb71a12a1258701a5203fe564e0ac7c7eed4
MFC r266310

  Fix wrong formatting of 0.0.0.0/X table records in ipfw(8).

  Add `flags` u16 field to the hole in ipfw_table_xentry structure.
  Kernel has been guessing address family for supplied record based
  on xent length size.
  Userland, however, has been getting fixed-size ipfw_table_xentry structures
  guessing address family by checking address by IN6_IS_ADDR_V4COMPAT().

  Fix this behavior by providing specific IPFW_TCF_INET flag for IPv4 records.

PR: bin/189471,kern/200169

git-svn-id: svn://svn.freebsd.org/base/stable/10@287963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ipfw/ipfw2.c
sys/netinet/ip_fw.h
sys/netpfil/ipfw/ip_fw_table.c