• Home
  • Raw
  • Download

Lines Matching refs:netdev

47 add_ipv4_miniroute ( struct net_device *netdev, struct in_addr address,  in add_ipv4_miniroute()  argument
55 DBG ( "via %s\n", netdev->name ); in add_ipv4_miniroute()
65 miniroute->netdev = netdev_get ( netdev ); in add_ipv4_miniroute()
93 DBG ( "via %s\n", miniroute->netdev->name ); in del_ipv4_miniroute()
95 netdev_put ( miniroute->netdev ); in del_ipv4_miniroute()
121 if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) ) in ipv4_route()
271 struct net_device *netdev, uint8_t *ll_dest ) { in ipv4_ll_addr() argument
272 struct ll_protocol *ll_protocol = netdev->ll_protocol; in ipv4_ll_addr()
276 memcpy ( ll_dest, netdev->ll_broadcast, in ipv4_ll_addr()
283 return arp_resolve ( netdev, &ipv4_protocol, &dest, in ipv4_ll_addr()
305 struct net_device *netdev, in ipv4_tx() argument
333 netdev = miniroute->netdev; in ipv4_tx()
335 if ( ! netdev ) { in ipv4_tx()
342 if ( ( rc = ipv4_ll_addr ( next_hop, iphdr->src, netdev, in ipv4_tx()
361 if ( ( rc = net_tx ( iobuf, netdev, &ipv4_protocol, ll_dest ) ) != 0 ) { in ipv4_tx()
363 netdev->name, strerror ( rc ) ); in ipv4_tx()
384 static int ipv4_rx ( struct io_buffer *iobuf, struct net_device *netdev __unused, in ipv4_rx()
487 static int ipv4_arp_check ( struct net_device *netdev, const void *net_addr ) { in ipv4_arp_check() argument
492 if ( ( miniroute->netdev == netdev ) && in ipv4_arp_check()
587 struct net_device *netdev; in ipv4_create_routes() local
598 for_each_netdev ( netdev ) { in ipv4_create_routes()
599 settings = netdev_settings ( netdev ); in ipv4_create_routes()
620 miniroute = add_ipv4_miniroute ( netdev, address, in ipv4_create_routes()