Linux???????????????
?????yangyefeng820803 ???????[ 2016/10/17 17:47:52 ] ?????????????? Linux
????????????????????????????????£?
????1?? ?????struct notifier_block *nb ???netdev_chain???????
????2?? ???????????????????????????豸????????????????????????????????μ?????飬???????豸???μ??????????????
???????????
?????? ·?????????????????????ip_fib_init() ??????ip_fib_init() ?л????????????????netdev_chain?????????????????????netdev_chain??????????????????????·?????????????? ???????????Щ?????
????void __init ip_fib_init(void)
????{
????... ...
????register_netdevice_notifier(&fib_netdev_notifier);
????... ...
????}
?????????fib_netdev_notifier????壺
????static struct notifier_block fib_netdev_notifier = {
????.notifier_call =fib_netdev_event??
????};
????fib_netdev_notifier?????struct notifier_block??????.priority????????????.next???????趨??
???????????????o???fib_netdev_event()???Щ??
static int fib_netdev_event(struct notifier_block *this?? unsigned long event?? void *ptr)
{
struct net_device *dev = ptr;
struct in_device *in_dev = __in_dev_get_rtnl(dev);
if (event == NETDEV_UNREGISTER) {
fib_disable_ip(dev?? 2);
return NOTIFY_DONE;
}
if (!in_dev)
return NOTIFY_DONE;
switch (event) {
case NETDEV_UP:
for_ifa(in_dev) {
fib_add_ifaddr(ifa);
} endfor_ifa(in_dev);
#ifdef CONFIG_IP_ROUTE_MULTIPATH
fib_sync_up(dev);
#endif
rt_cache_flush(-1);
break;
case NETDEV_DOWN:
fib_disable_ip(dev?? 0);
break;
case NETDEV_CHANGEMTU:
case NETDEV_CHANGE:
rt_cache_flush(0);
break;
}
return NOTIFY_DONE;
}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????Linux ????????????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????