mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
DHCP transmits via specified net device, so no need to create a dummy
routing table entry just to fool ipv4.c any more.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user