Main Page | Class List | File List | Class Members | File Members

net_device Struct Reference

#include <netdevice.h>

Collaboration diagram for net_device:

Collaboration graph
[legend]
List of all members.

Public Attributes

char name [IFNAMSIZ]
unsigned long rmem_end
unsigned long rmem_start
unsigned long mem_end
unsigned long mem_start
unsigned long base_addr
unsigned int irq
unsigned char if_port
unsigned char dma
unsigned long state
net_devicenext
int(* init )(struct net_device *dev)
net_devicenext_sched
int ifindex
int iflink
net_device_stats *(* get_stats )(struct net_device *dev)
iw_statistics *(* get_wireless_stats )(struct net_device *dev)
iw_handler_defwireless_handlers
ethtool_opsethtool_ops
unsigned long trans_start
unsigned long last_rx
unsigned short flags
unsigned short gflags
unsigned short priv_flags
unsigned short unused_alignment_fixer
unsigned mtu
unsigned short type
unsigned short hard_header_len
void * priv
net_devicemaster
unsigned char broadcast [MAX_ADDR_LEN]
unsigned char dev_addr [MAX_ADDR_LEN]
unsigned char addr_len
dev_mc_listmc_list
int mc_count
int promiscuity
int allmulti
int watchdog_timeo
timer_list watchdog_timer
void * atalk_ptr
void * ip_ptr
void * dn_ptr
void * ip6_ptr
void * ec_ptr
list_head poll_list
int quota
int weight
Qdiscqdisc
Qdiscqdisc_sleeping
Qdiscqdisc_list
Qdiscqdisc_ingress
unsigned long tx_queue_len
spinlock_t xmit_lock
int xmit_lock_owner
spinlock_t queue_lock
atomic_t refcnt
int deadbeaf
int features
void(* uninit )(struct net_device *dev)
void(* destructor )(struct net_device *dev)
int(* open )(struct net_device *dev)
int(* stop )(struct net_device *dev)
int(* hard_start_xmit )(struct sk_buff *skb, struct net_device *dev)
int(* poll )(struct net_device *dev, int *quota)
int(* hard_header )(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
int(* rebuild_header )(struct sk_buff *skb)
void(* set_multicast_list )(struct net_device *dev)
int(* set_mac_address )(struct net_device *dev, void *addr)
int(* do_ioctl )(struct net_device *dev, struct ifreq *ifr, int cmd)
int(* set_config )(struct net_device *dev, struct ifmap *map)
int(* hard_header_cache )(struct neighbour *neigh, struct hh_cache *hh)
void(* header_cache_update )(struct hh_cache *hh, struct net_device *dev, unsigned char *haddr)
int(* change_mtu )(struct net_device *dev, int new_mtu)
void(* tx_timeout )(struct net_device *dev)
void(* vlan_rx_register )(struct net_device *dev, struct vlan_group *grp)
void(* vlan_rx_add_vid )(struct net_device *dev, unsigned short vid)
void(* vlan_rx_kill_vid )(struct net_device *dev, unsigned short vid)
int(* hard_header_parse )(struct sk_buff *skb, unsigned char *haddr)
int(* neigh_setup )(struct net_device *dev, struct neigh_parms *)
int(* accept_fastpath )(struct net_device *, struct dst_entry *)
module * owner
net_bridge_port * br_port

Member Data Documentation

int(* net_device::accept_fastpath)(struct net_device *, struct dst_entry *)
 

Referenced by ip_route_input_slow().

unsigned char net_device::addr_len
 

Definition at line 330 of file netdevice.h.

Referenced by arp_mc_map(), arp_packet_match(), arp_rcv(), arp_req_get(), arp_send(), arp_set_predefined(), dev_ifsioc(), ip_mc_filter_add(), ip_mc_filter_del(), ipgre_tunnel_init_gen(), ipip_tunnel_init_gen(), neigh_event_ns(), neigh_fill_info(), and rtnetlink_fill_ifinfo().

int net_device::allmulti
 

Definition at line 335 of file netdevice.h.

Referenced by dev_set_allmulti().

void* net_device::atalk_ptr
 

Definition at line 342 of file netdevice.h.

unsigned long net_device::base_addr
 

Definition at line 265 of file netdevice.h.

Referenced by dev_ifsioc(), and netdev_boot_setup_check().

struct net_bridge_port* net_device::br_port
 

Definition at line 443 of file netdevice.h.

Referenced by netif_receive_skb().

unsigned char net_device::broadcast[MAX_ADDR_LEN]
 

Definition at line 328 of file netdevice.h.

Referenced by arp_mc_map(), arp_send(), arp_set_predefined(), dev_ifsioc(), ipgre_tunnel_init_gen(), ipgre_tunnel_ioctl(), ipip_tunnel_init_gen(), ipip_tunnel_ioctl(), and rtnetlink_fill_ifinfo().

int(* net_device::change_mtu)(struct net_device *dev, int new_mtu)
 

Referenced by dev_ifsioc(), ipgre_tunnel_init_gen(), and ipip_tunnel_init_gen().

int net_device::deadbeaf
 

Definition at line 369 of file netdevice.h.

Referenced by net_dev_init(), netdev_finish_unregister(), and unregister_netdevice().

void(* net_device::destructor)(struct net_device *dev)
 

Referenced by ipgre_tunnel_init_gen(), ipip_tunnel_init_gen(), and netdev_finish_unregister().

unsigned char net_device::dev_addr[MAX_ADDR_LEN]
 

Definition at line 329 of file netdevice.h.

Referenced by arp_send(), arp_set_predefined(), dev_ifsioc(), divert_frame(), ipgre_tunnel_init_gen(), ipgre_tunnel_ioctl(), ipip_tunnel_init_gen(), ipip_tunnel_ioctl(), and rtnetlink_fill_ifinfo().

unsigned char net_device::dma
 

Definition at line 274 of file netdevice.h.

Referenced by dev_ifsioc().

void* net_device::dn_ptr
 

Definition at line 344 of file netdevice.h.

Referenced by dn_dev_islocal(), and netdev_finish_unregister().

int(* net_device::do_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd)
 

Referenced by dev_ifsioc(), ipgre_tunnel_init_gen(), and ipip_tunnel_init_gen().

void* net_device::ec_ptr
 

Definition at line 346 of file netdevice.h.

struct ethtool_ops* net_device::ethtool_ops
 

Definition at line 299 of file netdevice.h.

Referenced by ethtool_get_coalesce(), ethtool_get_drvinfo(), ethtool_get_eeprom(), ethtool_get_link(), ethtool_get_msglevel(), ethtool_get_pauseparam(), ethtool_get_regs(), ethtool_get_ringparam(), ethtool_get_rx_csum(), ethtool_get_settings(), ethtool_get_sg(), ethtool_get_stats(), ethtool_get_strings(), ethtool_get_tx_csum(), ethtool_get_wol(), ethtool_nway_reset(), ethtool_phys_id(), ethtool_self_test(), ethtool_set_coalesce(), ethtool_set_eeprom(), ethtool_set_msglevel(), ethtool_set_pauseparam(), ethtool_set_ringparam(), ethtool_set_rx_csum(), ethtool_set_settings(), ethtool_set_sg(), ethtool_set_tx_csum(), and ethtool_set_wol().

int net_device::features
 

Definition at line 372 of file netdevice.h.

Referenced by ethtool_op_get_sg(), ethtool_op_get_tx_csum(), ethtool_op_set_sg(), ethtool_op_set_tx_csum(), netdev_finish_unregister(), register_netdevice(), and unregister_netdevice().

unsigned short net_device::flags
 

Definition at line 311 of file netdevice.h.

Referenced by __dev_mc_upload(), __dst_free(), arp_rcv(), arp_send(), dev_change_flags(), dev_close(), dev_ifsioc(), dev_open(), dev_set_allmulti(), dev_set_promiscuity(), fib_check_nh(), igmp_group_dropped(), inetdev_init(), ip_mc_dec_group(), ip_mc_inc_group(), ipgre_tunnel_init(), ipgre_tunnel_init_gen(), ipgre_tunnel_ioctl(), ipgre_tunnel_lookup(), ipip_tunnel_init(), ipip_tunnel_init_gen(), ipip_tunnel_ioctl(), netdev_set_master(), netdev_state_change(), rtnetlink_fill_ifinfo(), rtnetlink_fill_iwinfo(), and unregister_netdevice().

struct net_device_stats*(* net_device::get_stats)(struct net_device *dev)
 

Referenced by ipgre_tunnel_init_gen(), ipip_tunnel_init_gen(), and rtnetlink_fill_ifinfo().

struct iw_statistics*(* net_device::get_wireless_stats)(struct net_device *dev)
 

Referenced by get_wireless_stats().

unsigned short net_device::gflags
 

Definition at line 312 of file netdevice.h.

Referenced by dev_change_flags(), and dev_ifsioc().

int(* net_device::hard_header)(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
 

Referenced by arp_send(), ipgre_tunnel_init(), ipgre_tunnel_xmit(), and psched_mtu().

int(* net_device::hard_header_cache)(struct neighbour *neigh, struct hh_cache *hh)
 

unsigned short net_device::hard_header_len
 

Definition at line 320 of file netdevice.h.

Referenced by arp_send(), ip_route_input_slow(), ip_vs_bypass_xmit(), ip_vs_dr_xmit(), ip_vs_nat_xmit(), ipgre_tunnel_init(), ipgre_tunnel_init_gen(), ipip_tunnel_init(), ipip_tunnel_init_gen(), ipt_ulog_target(), and psched_mtu().

int(* net_device::hard_header_parse)(struct sk_buff *skb, unsigned char *haddr)
 

Referenced by ipq_build_packet_message().

int(* net_device::hard_start_xmit)(struct sk_buff *skb, struct net_device *dev)
 

Referenced by ipgre_tunnel_init_gen(), and ipip_tunnel_init_gen().

void(* net_device::header_cache_update)(struct hh_cache *hh, struct net_device *dev, unsigned char *haddr)
 

Referenced by neigh_update_hhs().

unsigned char net_device::if_port
 

Definition at line 273 of file netdevice.h.

Referenced by dev_ifsioc().

int net_device::ifindex
 

Definition at line 288 of file netdevice.h.

Referenced by arp_hash(), dev_ifsioc(), fib_magic(), fib_rules_attach(), fib_rules_detach(), fib_validate_source(), icmp_unreach(), inet_fill_ifaddr(), ip_call_ra_chain(), ip_do_nat(), ip_frag_queue(), ip_mc_find_dev(), ip_mc_procinfo(), ip_mcf_procinfo(), ip_route_input(), ip_route_input_mc(), ip_route_input_slow(), ip_route_output_slow(), ip_rt_redirect(), masquerade_target(), neigh_fill_info(), net_dev_init(), raw_v4_input(), register_netdevice(), rt_fill_info(), rtnetlink_fill_ifinfo(), rtnetlink_fill_iwinfo(), udp_err(), udp_rcv(), and udp_v4_mcast_deliver().

int net_device::iflink
 

Definition at line 289 of file netdevice.h.

Referenced by ipgre_tunnel_init(), ipgre_tunnel_init_gen(), ipip_tunnel_init(), ipip_tunnel_init_gen(), net_dev_init(), register_netdevice(), and rtnetlink_fill_ifinfo().

int(* net_device::init)(struct net_device *dev)
 

Referenced by net_dev_init(), and register_netdevice().

void* net_device::ip6_ptr
 

Definition at line 345 of file netdevice.h.

Referenced by __in6_dev_get(), in6_dev_get(), and netdev_finish_unregister().

void* net_device::ip_ptr
 

Definition at line 343 of file netdevice.h.

Referenced by __in_dev_get(), do_redirect(), in_dev_get(), inetdev_destroy(), inetdev_init(), ip_fw_chk(), and netdev_finish_unregister().

unsigned int net_device::irq
 

Definition at line 266 of file netdevice.h.

Referenced by dev_ifsioc(), and netdev_boot_setup_check().

unsigned long net_device::last_rx
 

Definition at line 309 of file netdevice.h.

struct net_device* net_device::master
 

Definition at line 323 of file netdevice.h.

Referenced by netdev_set_master(), rtnetlink_fill_ifinfo(), skb_bond(), and unregister_netdevice().

int net_device::mc_count
 

Definition at line 333 of file netdevice.h.

Referenced by dev_mc_add(), dev_mc_delete(), dev_mc_discard(), and ip_mc_procinfo().

struct dev_mc_list* net_device::mc_list
 

Definition at line 332 of file netdevice.h.

Referenced by dev_mc_add(), dev_mc_delete(), and dev_mc_discard().

unsigned long net_device::mem_end
 

Definition at line 263 of file netdevice.h.

Referenced by dev_ifsioc(), and netdev_boot_setup_check().

unsigned long net_device::mem_start
 

Definition at line 264 of file netdevice.h.

Referenced by dev_ifsioc(), and netdev_boot_setup_check().

unsigned net_device::mtu
 

Definition at line 318 of file netdevice.h.

Referenced by dev_ifsioc(), ip_route_input_slow(), ipgre_tunnel_change_mtu(), ipgre_tunnel_init(), ipgre_tunnel_init_gen(), ipgre_tunnel_xmit(), ipip_tunnel_change_mtu(), ipip_tunnel_init(), ipip_tunnel_init_gen(), ipip_tunnel_xmit(), psched_mtu(), and rtnetlink_fill_ifinfo().

char net_device::name[IFNAMSIZ]
 

Definition at line 255 of file netdevice.h.

Referenced by alloc_divert_blk(), arp_req_get(), arpt_do_table(), default_rebuild_header(), dev_alloc_name(), dev_ifname(), dev_ifsioc(), dev_queue_xmit_nit(), dev_set_promiscuity(), fib_rules_attach(), free_divert_blk(), icmp_unreach(), inet_gifconf(), inetdev_changename(), ioctl_export_private(), ioctl_private_call(), ioctl_standard_call(), ip_fw_chk(), ip_mc_procinfo(), ip_mcf_procinfo(), ip_route_input_slow(), ip_rt_bug(), ip_rt_redirect(), ipfw_forward_check(), ipfw_input_check(), ipfw_output_check(), ipt_do_table(), ipt_log_target(), ipt_ulog_target(), net_dev_init(), netdev_boot_setup_check(), netdev_finish_unregister(), register_netdevice(), rtnetlink_fill_ifinfo(), skb_over_panic(), skb_under_panic(), unregister_netdevice(), and wireless_send_event().

int(* net_device::neigh_setup)(struct net_device *dev, struct neigh_parms *)
 

Referenced by neigh_parms_alloc().

struct net_device* net_device::next
 

Definition at line 278 of file netdevice.h.

Referenced by __dev_get_by_flags(), __dev_get_by_index(), __dev_get_by_name(), dev_getbyhwaddr(), dev_ifconf(), ic_open_devs(), inet_dump_ifaddr(), inet_select_addr(), ip_mc_procinfo(), ip_mcf_procinfo(), net_dev_init(), register_netdevice(), rtnetlink_dump_ifinfo(), and unregister_netdevice().

struct net_device* net_device::next_sched
 

Definition at line 285 of file netdevice.h.

Referenced by __netif_schedule(), and net_tx_action().

int(* net_device::open)(struct net_device *dev)
 

Referenced by dev_open(), ipgre_fb_tunnel_init(), ipgre_tunnel_init(), and ipip_fb_tunnel_init().

struct module* net_device::owner
 

Definition at line 440 of file netdevice.h.

Referenced by dev_close(), and dev_open().

int(* net_device::poll)(struct net_device *dev, int *quota)
 

Referenced by net_rx_action().

struct list_head net_device::poll_list
 

Definition at line 348 of file netdevice.h.

Referenced by __netif_rx_complete(), __netif_rx_schedule(), net_rx_action(), netif_rx_complete(), netif_rx_reschedule(), and process_backlog().

void* net_device::priv
 

Definition at line 321 of file netdevice.h.

Referenced by ipgre_fb_tunnel_init(), ipgre_init(), ipgre_tunnel_change_mtu(), ipgre_tunnel_get_stats(), ipgre_tunnel_init(), ipgre_tunnel_init_gen(), ipgre_tunnel_ioctl(), ipgre_tunnel_uninit(), ipgre_tunnel_xmit(), ipip_init(), ipip_tunnel_get_stats(), ipip_tunnel_init(), ipip_tunnel_init_gen(), ipip_tunnel_ioctl(), ipip_tunnel_uninit(), ipip_tunnel_xmit(), iw_handler_get_spy(), iw_handler_get_thrspy(), iw_handler_set_spy(), iw_handler_set_thrspy(), and wireless_spy_update().

unsigned short net_device::priv_flags
 

Definition at line 313 of file netdevice.h.

int net_device::promiscuity
 

Definition at line 334 of file netdevice.h.

Referenced by dev_set_promiscuity().

struct Qdisc* net_device::qdisc
 

Definition at line 352 of file netdevice.h.

struct Qdisc* net_device::qdisc_ingress
 

Definition at line 355 of file netdevice.h.

struct Qdisc* net_device::qdisc_list
 

Definition at line 354 of file netdevice.h.

struct Qdisc* net_device::qdisc_sleeping
 

Definition at line 353 of file netdevice.h.

Referenced by rtnetlink_fill_ifinfo().

spinlock_t net_device::queue_lock
 

Definition at line 365 of file netdevice.h.

Referenced by net_dev_init(), net_tx_action(), register_netdevice(), sch_tree_lock(), sch_tree_unlock(), tcf_tree_lock(), and tcf_tree_unlock().

int net_device::quota
 

Definition at line 349 of file netdevice.h.

Referenced by __netif_rx_schedule(), net_rx_action(), netif_rx_reschedule(), and process_backlog().

int(* net_device::rebuild_header)(struct sk_buff *skb)
 

Referenced by net_dev_init(), and register_netdevice().

atomic_t net_device::refcnt
 

Definition at line 367 of file netdevice.h.

Referenced by dev_put(), and unregister_netdevice().

unsigned long net_device::rmem_end
 

Definition at line 261 of file netdevice.h.

unsigned long net_device::rmem_start
 

Definition at line 262 of file netdevice.h.

int(* net_device::set_config)(struct net_device *dev, struct ifmap *map)
 

Referenced by dev_ifsioc().

int(* net_device::set_mac_address)(struct net_device *dev, void *addr)
 

Referenced by dev_ifsioc().

void(* net_device::set_multicast_list)(struct net_device *dev)
 

Referenced by __dev_mc_upload(), and dev_ifsioc().

unsigned long net_device::state
 

Definition at line 276 of file netdevice.h.

Referenced by __netif_rx_complete(), __netif_schedule(), dev_close(), dev_open(), net_dev_init(), net_tx_action(), netif_carrier_off(), netif_carrier_ok(), netif_carrier_on(), netif_device_attach(), netif_device_detach(), netif_device_present(), netif_poll_disable(), netif_poll_enable(), netif_queue_stopped(), netif_running(), netif_rx_complete(), netif_rx_schedule_prep(), netif_schedule(), netif_start_queue(), netif_stop_queue(), netif_wake_queue(), and register_netdevice().

int(* net_device::stop)(struct net_device *dev)
 

Referenced by dev_close(), ipgre_fb_tunnel_init(), ipgre_tunnel_init(), and ipip_fb_tunnel_init().

unsigned long net_device::trans_start
 

Definition at line 308 of file netdevice.h.

unsigned long net_device::tx_queue_len
 

Definition at line 356 of file netdevice.h.

Referenced by dev_ifsioc().

void(* net_device::tx_timeout)(struct net_device *dev)
 

unsigned short net_device::type
 

Definition at line 319 of file netdevice.h.

Referenced by alloc_divert_blk(), arp_mc_map(), arp_req_get(), arp_req_set(), arp_send(), dev_ifsioc(), ipgre_tunnel_init_gen(), ipip_tunnel_init_gen(), ipq_build_packet_message(), rtnetlink_fill_ifinfo(), and rtnetlink_fill_iwinfo().

void(* net_device::uninit)(struct net_device *dev)
 

Referenced by ipgre_tunnel_init_gen(), ipip_tunnel_init_gen(), and unregister_netdevice().

unsigned short net_device::unused_alignment_fixer
 

Definition at line 314 of file netdevice.h.

void(* net_device::vlan_rx_add_vid)(struct net_device *dev, unsigned short vid)
 

void(* net_device::vlan_rx_kill_vid)(struct net_device *dev, unsigned short vid)
 

void(* net_device::vlan_rx_register)(struct net_device *dev, struct vlan_group *grp)
 

int net_device::watchdog_timeo
 

Definition at line 337 of file netdevice.h.

struct timer_list net_device::watchdog_timer
 

Definition at line 338 of file netdevice.h.

int net_device::weight
 

Definition at line 350 of file netdevice.h.

Referenced by __netif_rx_schedule(), and net_rx_action().

struct iw_handler_def* net_device::wireless_handlers
 

Definition at line 297 of file netdevice.h.

Referenced by call_commit_handler(), get_handler(), ioctl_export_private(), ioctl_private_call(), iw_handler_get_spy(), iw_handler_get_thrspy(), iw_handler_set_spy(), iw_handler_set_thrspy(), and wireless_spy_update().

spinlock_t net_device::xmit_lock
 

Definition at line 359 of file netdevice.h.

Referenced by dev_mc_add(), dev_mc_delete(), dev_mc_discard(), dev_mc_upload(), net_dev_init(), netif_tx_disable(), and register_netdevice().

int net_device::xmit_lock_owner
 

Definition at line 363 of file netdevice.h.

Referenced by net_dev_init(), and register_netdevice().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 1 21:25:42 2004 for Linux 2.4.23 Networking by doxygen 1.3.8