Linux 接口配置(eth)源码位置
我的要求是在内核中实现(插入)一个IP地址验证步骤。一旦任何接口启动并获得IP,那么我的验证应该发生。
所以作为第一步,在源代码中(linux 2.6源代码我下载),我需要跟踪哪个文件
My requirement is to implement(insert ) an ip address validation step in kernel.. Once any of the interface is up and got ip, then my validation should happen..
So as the first step , in source code (linux 2.6 source code I downloaded ) , in which file I need to trace
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
内核是不适合这样做的地方,除非你正在做一些嵌入在很小的足迹中的事情。你真正想要的是ifplugd。
但是,如果您绝对坚持将其放在内核中 - 请查看当 CONFIG_IP_PNP=y 时启用的内核位
The kernel is the wrong place for this unless you're doing something embedded with a teeny tiny footprint. What you really want is ifplugd.
However, if you absolutely insist on having it be in the kernel - take a look at the kernel bits that get enabled when CONFIG_IP_PNP=y