Linux 接口配置(eth)源码位置

发布于 2024-12-28 10:40:15 字数 107 浏览 1 评论 0原文

我的要求是在内核中实现(插入)一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷弦 2025-01-04 10:40:15

内核是不适合这样做的地方,除非你正在做一些嵌入在很小的足迹中的事情。你真正想要的是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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文