摘要: Kernel: 4.12.6 添加ip地址:主从ip的判断,并且插入到合适的位置中; static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, u32 portid) { struct in_device *i 阅读全文
posted @ 2017-08-18 23:31 AlexAlex 阅读(774) 评论(0) 推荐(0)
摘要: ifa_local 和 ifa_address区别联系: 1. 在配置了支持广播的接口上,与IFA_LOCAL一样,同样表示本地ip地址; 2. 对于点对点链路,IFA_ADDRESS表示的是对端的地址,IFA_LOCAL表示的是本地ip地址; inetdevice.h struct in_ifad 阅读全文
posted @ 2017-08-18 00:04 AlexAlex 阅读(2463) 评论(0) 推荐(0)