Allow an explicit network device to be specified for IP-layer

transmissions.
This commit is contained in:
Michael Brown
2007-01-10 02:25:11 +00:00
parent 9869659895
commit f008b77ba2
7 changed files with 32 additions and 17 deletions

View File

@@ -309,7 +309,8 @@ static int tcp_senddata_conn ( struct tcp_connection *conn, int force_send ) {
DBGC ( conn, "\n" );
/* Transmit packet */
return tcpip_tx ( pkb, &tcp_protocol, &conn->peer, &tcphdr->csum );
return tcpip_tx ( pkb, &tcp_protocol, &conn->peer,
NULL, &tcphdr->csum );
}
/**
@@ -465,7 +466,8 @@ static int tcp_send_reset ( struct tcp_connection *conn,
DBGC ( conn, "\n" );
/* Transmit packet */
return tcpip_tx ( pkb, &tcp_protocol, &conn->peer, &tcphdr->csum );
return tcpip_tx ( pkb, &tcp_protocol, &conn->peer,
NULL, &tcphdr->csum );
}
/**