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

@@ -202,11 +202,11 @@ void ipv6_dump ( struct ip6_header *ip6hdr ) {
static int ipv6_tx ( struct pk_buff *pkb,
struct tcpip_protocol *tcpip,
struct sockaddr_tcpip *st_dest,
struct net_device *netdev,
uint16_t *trans_csum ) {
struct sockaddr_in6 *dest = ( struct sockaddr_in6* ) st_dest;
struct in6_addr next_hop;
struct ipv6_miniroute *miniroute;
struct net_device *netdev = NULL;
uint8_t ll_dest_buf[MAX_LL_ADDR_LEN];
const uint8_t *ll_dest = ll_dest_buf;
int rc;