gpt4 book ai didi

c - PF_BRIDGE(NF_BR_PRE_ROUTING) Hook 未被调用

转载 作者:行者123 更新时间:2023-11-30 16:38:09 25 4
gpt4 key购买 nike

  1. 内核模块使用 nf_register_hook() 将函数注册为 PF_BRIDGE 钩子(Hook)到网络过滤器

  2. 钩子(Hook)函数没有从内核调用。

  3. 是否需要进行任何特定于内核的更改?这种行为的可能原因是什么?我也没有看到任何错误。

最佳答案

你能检查一下这个帖子吗?这是您要找的吗?

Netfilter hook on router not getting called for bridged interfaces

在此线程中,我建议使用以下 nf_hook_ops。

.pf     = PF_BRIDGE,
.hooknum = NF_BR_PRE_ROUTING,
.priority = NF_BR_PRI_FIRST,

关于c - PF_BRIDGE(NF_BR_PRE_ROUTING) Hook 未被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47602654/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com