[ipv4] Allow IPv4 socket addresses to include a scope ID
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2015 13:54:11 +0000 (14:54 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jul 2015 12:48:29 +0000 (13:48 +0100)
commit2bcf13f13aff503c47041caaab7cb42bb7ed1484
tree0df326f4fb82e26babc7ce5d55a2e8b84ac996e1
parent6efcabd4151538781053716bec1c7eccd759df26
[ipv4] Allow IPv4 socket addresses to include a scope ID

Extend the IPv6 concept of "scope ID" (indicating the network device
index) to IPv4 socket addresses, so that IPv4 multicast transmissions
may specify the transmitting network device.

The scope ID is not (currently) exposed via the string representation
of the socket address, since IPv4 does not use the IPv6 concept of
link-local addresses (which could legitimately be specified in a URI).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/in.h
src/include/ipxe/tcpip.h
src/net/ipv4.c