In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Typedef unsigned int nf_hookfn (unsigned int hooknum
Struct sk_buff * skb
Const struct net_device * in
Const struct net_device * out
Int (* okfn) (struct sk_buff *))
/ * handle the return value of the function * /
# define NF_DROP 0 / * drop the packet, don't continue traversal * /
# define NF_ACCEPT 1 / * continue traversal as normal * /
# define NF_STOLEN 2 / * I've taken over the packet, don't continue traversal * /
# define NF_QUEUE 3 / * queue the packet (usually for userspace handling) * /
# define NF_REPEAT 4 / * call this hook again * /
# define NF_STOP 5
# define NF_MAX_VERDICT NF_STOP
When using Netfilter, you need to define an instance of nf_hook_ops.
Struct nf_hook_ops {
Struct list_head list
/ * User fills in from here down. , /
Nf_hookfn * hook; / * Hook function to be registered * /
Struct module * owner
U_int8_t pf; / * Protocol Type * /
Unsigned int hooknum; / * which Diaoyutai * /
/ * Hooks are ordered in asending priority. , /
The lower the int priority; / * value, the higher the priority * /
}
Typedef _ _ u8 u_int8_t
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.