]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r325850: pfctl: teach route-to to deal with interfaces with multiple addresses
authorkp <kp@FreeBSD.org>
Thu, 30 Nov 2017 21:21:22 +0000 (21:21 +0000)
committerkp <kp@FreeBSD.org>
Thu, 30 Nov 2017 21:21:22 +0000 (21:21 +0000)
commit3ce906e6c16391eb080e90c4470314c7ffc44229
treeb5eba099fc8cbd8ed2810b4ee397794b63b4bb4b
parent7cf6ec5d55e446c0ba0d9e5cd93fda5aeb82881b
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
sbin/pfctl/parse.y