diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-06-20 11:56:43 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-06-20 12:01:50 +0100 |
commit | c0942408b7ab30745952e801381e931b1b947e1f (patch) | |
tree | b7a3ec2291d7904a97f232d8be350521c08d066c /src/net/ipv4.c | |
parent | b9ef880c8d50ccb89aef7e820aa737f66b63fd90 (diff) | |
download | ipxe-c0942408b7ab30745952e801381e931b1b947e1f.tar.gz |
[dhcp] Request broadcast responses when we already have an IPv4 address
FCoE requires the use of multiple local unicast link-layer addresses.
To avoid the complexity of managing multiple addresses, iPXE operates
in promiscuous mode. As a consequence, any unicast packets with
non-matching IPv4 addresses are rejected at the IPv4 layer (rather
than at the link layer).
This can cause problems when issuing a second DHCP request: if the
address chosen by the DHCP server does not match the existing address,
then the DHCP response will itself be rejected.
Fix by requesting a broadcast response from the DHCP server if the
network interface already has any IPv4 addresses.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 08249d41f..791d41951 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -408,7 +408,7 @@ static int ipv4_tx ( struct io_buffer *iobuf, * @v netdev Network device * @ret has_any_addr Network device has any IPv4 address */ -static int ipv4_has_any_addr ( struct net_device *netdev ) { +int ipv4_has_any_addr ( struct net_device *netdev ) { struct ipv4_miniroute *miniroute; list_for_each_entry ( miniroute, &ipv4_miniroutes, list ) { |