]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r325850: pfctl: teach route-to to deal with interfaces with multiple addresses
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Nov 2017 21:32:28 +0000 (21:32 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Nov 2017 21:32:28 +0000 (21:32 +0000)
commit12ff6f5adaf09126c32e29c3093e9ba0ebd48711
tree1e4e7ed1cd369c1e843e0838ed5968ae61a4289c
parente1af59ed39e0ac3d4ded357310a7c23444075dfe
MFC r325850: pfctl: teach route-to to deal with interfaces with multiple addresses

The route_host parsing code set the interface name, but only for the first
node_host in the list. If that one happened to be the inet6 address and the
rule wanted an inet address it'd get removed by remove_invalid_hosts() later
on, and we'd have no interface name.

We must set the interface name for all node_host entries in the list, not just
the first one.

PR: 223208

git-svn-id: svn://svn.freebsd.org/base/stable/10@326414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/pfctl/parse.y