mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[tcpip] Allow for transmission to multicast IPv4 addresses
When sending to a multicast address, it may be necessary to specify the source address explicitly, since the multicast destination address does not provide enough information to deduce the source address via the miniroute table. Allow the source address specified via the data-xfer metadata to be passed down through the TCP/IP stack to the IPv4 layer, which can use it as a default source address.
This commit is contained in:
+2
-2
@@ -491,7 +491,7 @@ static int tcp_xmit ( struct tcp_connection *tcp, int force_send ) {
|
||||
DBGC ( tcp, "\n" );
|
||||
|
||||
/* Transmit packet */
|
||||
return tcpip_tx ( iobuf, &tcp_protocol, &tcp->peer, NULL,
|
||||
return tcpip_tx ( iobuf, &tcp_protocol, NULL, &tcp->peer, NULL,
|
||||
&tcphdr->csum );
|
||||
}
|
||||
|
||||
@@ -572,7 +572,7 @@ static int tcp_xmit_reset ( struct tcp_connection *tcp,
|
||||
DBGC ( tcp, "\n" );
|
||||
|
||||
/* Transmit packet */
|
||||
return tcpip_tx ( iobuf, &tcp_protocol, st_dest,
|
||||
return tcpip_tx ( iobuf, &tcp_protocol, NULL, st_dest,
|
||||
NULL, &tcphdr->csum );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user