unsignedchardma;//DMA channel unsignedintmtu;//接口MTU值 unsignedintmin_mtu;//Interface Minimum MTU value unsignedintmax_mtu;//Interface Maximum MTU value unsignedshorttype;//接口硬件类型 unsignedshorthard_header_len;//最大硬件首部长度 unsignedcharmin_header_len; //最小硬件首部长度 unsignedshortnee...
#define NETIF_F_SCTP_CSUM (1 << 25) /* SCTP checksum offload */ #define NETIF_F_FCOE_MTU (1 << 26) /* Supports max FCoE MTU, 2158 bytes*/ #define NETIF_F_NTUPLE (1 << 27) /* N-tuple filters supported */ #define NETIF_F_RXHASH (1 << 28) /* Receive hashing offload *...
int (*change_mtu)(struct net_device *dev, int new_mtu); 下面是以太网设备接口的change_mtu的实现: static int eth_change_mtu(struct net_device *dev, int new_mtu) { if ((new_mtu < 68) || (new_mtu > 1500)) return -EINVAL; dev->mtu = new_mtu; return 0; } 在net_device中,还...
#define NETIF_F_SCTP_CSUM (1 << 25) /* SCTP checksum offload */ #define NETIF_F_FCOE_MTU (1 << 26) /* Supports max FCoE MTU, 2158 bytes*/ #define NETIF_F_NTUPLE (1 << 27) /* N-tuple filters supported */ #define NETIF_F_RXHASH (1 << 28) /* Receive hashing offload *...
unsigned int mtu; //网络设备硬件类型,如10Mbps以太网ARPHRD_ETHER unsigned short type; //硬件数据帧头的长度,以太网为14字节 unsigned short hard_header_len; //广播地址 unsigned char broadcast[MAX_ADDR_LEN]; //硬件(如MAC)地址长度以及设备的硬件地址 ...
*/ unsigned short padded; /* How much padding added by alloc_netdev() */ unsigned char operstate; /* RFC2863 operstate */ unsigned char link_mode; /* mapping policy to operstate */ unsigned int mtu; /* interface MTU value */ //最大传输单元 unsigned short type; /* interface hardware...
//网络设备接口的最大传输单元;unsignedmtu;//硬件接口头长度;unsignedshorthard_header_len;//网络设备接口的MAC地址;unsignedchar*dev_addr;//网络设备接口的单播模式intuc_promisc;//网络设备接口的混杂模式;unsignedintpromiscuity;//网络设备接口的全组播模式;unsigendintallmulti;//secondary unicast mac address...
features_t gso_partial_features; unsigned int min_mtu; unsigned int max_mtu; unsigned short type;//设备所属类型(如:Ethernet,Frame Relay等) unsigned char min_header_len; unsigned char name_assign_type; int group; struct net_device_stats stats; atomic_long_t rx_dropped; atomic_long_t tx_...
unsigned int min_mtu; //最小传输单元 unsigned int max_mtu; //最大传输单元 unsigned short type; // 设备所属类型, Ethernet(NIC 真实网卡)等 unsigned char min_header_len;// 设备头大小,字节为单位, Ethernet=14字节 unsigned char name_assign_type; int group; struct net_device_stats stats; /...
int (*change_mtu) (struct net_device *dev, int new_mtu); int (*neigh_setup) (struct net_device *dev, struct neigh_parms *); void (*tx_timeout) (struct net_device *dev); struct net_device_stats* (*get_stats)(struct net_device *dev); void (*vlan_rx_register)(struct ...