默默的一块石头
发布时间:2019-10-18 15:51:09
1.net_class_attrs(net-sysfs.c)static struct attribute *net_class_attrs[] = { &dev_attr_netdev_group.attr, &dev_attr_type.attr, &dev_attr_dev_id.attr, &dev_attr_iflink.attr, &dev_attr_ifindex.attr, &dev_attr_addr_assign_type.attr, &dev_attr_addr_len.attr, &dev_attr_link_mode.attr, &dev_attr.........【阅读全文】
发布时间:2019-10-14 16:30:04
1.arp_tblstruct neigh_table arp_tbl = { .family = AF_INET, .key_len = 4, .hash = arp_hash, .constructor = arp_constructor, .proxy_redo = parp_redo, .id = "arp_cache", .parms = { .tbl = &arp_tbl, ...... }, ......};2.arp_generic_opsstatic const struct neigh_ops arp_generic_ops = { .fa.........【阅读全文】
发布时间:2019-10-10 15:54:08
ARP 之 发送请求arp_solicit/* 发送arp请求 ARP请求的目的邻居项 缓存在该邻居项中的待发送报文,来获取该skb的源IP地址.........【阅读全文】