inet_confirm_addr && confirm_addr_indev】的更多相关文章

确认给定参数范围的ip地址是否存在: /* * Confirm that local IP address exists using wildcards: * - net: netns to check, cannot be NULL * - in_dev: only on this interface, NULL=any interface * - dst: only in the same subnet as dst, 0=any dst * - local: address, 0=auto…
IP地址 /include/linux/inetdevice.h,定义IPV4专用的网络设备相关的结构.宏等 /net/ipv4/devinet.c.支持IPV4特性的设备操作接口 数据组织 net_device结构中包括了驱动相关的全部信息.先按分类把同一类型的信息组织到其它结构中.然后嵌套到net_device结构中. 比如,与ipv4相关的配置存放在in_device结构中,IP地址.子网掩码.广播地址等信息存放到in_ifaddr结构中等 相关函数 inetdev_init()    …