MFC r238122:
Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.
MFC r238455:
Use case for selecting the address family (as in other places).
MFC r239035:
Testing an interface property should depend on the interface, not
on an address.