diff options
author | Michael Brown | 2007-01-10 03:37:23 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-10 03:37:23 +0100 |
commit | 649b789e937b3a6f1a0c3b76049cb442c519d49c (patch) | |
tree | 03080ce5732f0ad7e63fe4333a536f06a7e42c60 /src/net/udp/dhcp.c | |
parent | Add udp_sendto_via() to allow e.g. DHCP to transmit without first having (diff) | |
download | ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.tar.gz ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.tar.xz ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.zip |
DHCP transmits via specified net device, so no need to create a dummy
routing table entry just to fool ipv4.c any more.
Diffstat (limited to 'src/net/udp/dhcp.c')
-rw-r--r-- | src/net/udp/dhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 59dc8071..8f829701 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -582,8 +582,8 @@ static int dhcp_senddata ( struct udp_connection *conn, } /* Transmit the packet */ - if ( ( rc = udp_sendto ( conn, &sa_dhcp_server.st, - dhcppkt.dhcphdr, dhcppkt.len ) ) != 0 ) { + if ( ( rc = udp_sendto_via ( conn, &sa_dhcp_server.st, dhcp->netdev, + dhcppkt.dhcphdr, dhcppkt.len ) ) != 0 ) { DBG ( "Could not transmit UDP packet\n" ); return rc; } |