aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/ipv4.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-01-16 04:09:13 +0000
committerMichael Brown <mcb30@etherboot.org>2007-01-16 04:09:13 +0000
commitf11da20f25ce4535f2731e403071b03f7118d40f (patch)
treeb9b42be84a4d0c071ad2434805ff0651ecb84665 /src/net/ipv4.c
parent1a1fc23417a5c85a7ab26060c670259a24c4b146 (diff)
downloadipxe-f11da20f25ce4535f2731e403071b03f7118d40f.tar.gz
When a network device is specified to tcpip_tx() or it's children, treat
it as a fallback network device rather than an explicitly forced network device. Clear routing table entries before re-attempting DHCP.
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r--src/net/ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 1b93cf4ac..8a1e8df3e 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -350,7 +350,7 @@ static int ipv4_ll_addr ( struct in_addr dest, struct in_addr src,
* @v pkb Packet buffer
* @v tcpip Transport-layer protocol
* @v st_dest Destination network-layer address
- * @v netdev Network device (or NULL to route automatically)
+ * @v netdev Network device to use if no route found, or NULL
* @v trans_csum Transport-layer checksum to complete, or NULL
* @ret rc Status
*
@@ -394,7 +394,7 @@ static int ipv4_tx ( struct pk_buff *pkb,
if ( ( rc = ipv4_ll_addr ( next_hop, iphdr->src, netdev,
ll_dest ) ) != 0 ) {
DBG ( "IPv4 has no link-layer address for %s: %s\n",
- inet_ntoa ( iphdr->dest ), strerror ( rc ) );
+ inet_ntoa ( next_hop ), strerror ( rc ) );
goto err;
}