When setting the sysctl net.link.bridge.member_ifaddrs to 1,
bridge(4) can eliminate unnecessary walk of the member
member list to determine whether the inbound unicast packets are for us
or not.
Well when a gif(4) interface is member of a bridge(4) interface, it acts
as the tunnel endpoint to tunnel Ethernet frames over IP network, aka
the EtherIP protocol, so the IP addresses configured on it are independent
of the bridge(4) interface or other bridge(4) members, hence the sysctl
net.link.bridge.member_ifaddrs should not have any influnce over gif(4)
interfaces's behavior of assigning IP addresses.
Add regression test for gif as a bridge member.
[1] 0a1294f6c610 bridge: allow IP addresses on members to be disabled
PR: 227450
Reported by: Siva Mahadevan <me@svmhdvn.name>
MFC after: 2 weeks
Fixes: 0a1294f6c610 bridge: allow IP addresses on members to be disabled