cregit-Linux how code gets into the kernel

Release 4.7 include/linux/netfilter_ingress.h

Directory: include/linux
#ifndef _NETFILTER_INGRESS_H_

#define _NETFILTER_INGRESS_H_

#include <linux/netfilter.h>
#include <linux/netdevice.h>

#ifdef CONFIG_NETFILTER_INGRESS

static inline bool nf_hook_ingress_active(const struct sk_buff *skb) { #ifdef HAVE_JUMP_LABEL if (!static_key_false(&nf_hooks_needed[NFPROTO_NETDEV][NF_NETDEV_INGRESS])) return false; #endif return !list_empty(&skb->dev->nf_hooks_ingress); }

Contributors

PersonTokensPropCommitsCommitProp
florian westphalflorian westphal2756.25%150.00%
pablo neira ayusopablo neira ayuso2143.75%150.00%
Total48100.00%2100.00%


static inline int nf_hook_ingress(struct sk_buff *skb) { struct nf_hook_state state; nf_hook_state_init(&state, &skb->dev->nf_hooks_ingress, NF_NETDEV_INGRESS, INT_MIN, NFPROTO_NETDEV, skb->dev, NULL, NULL, dev_net(skb->dev), NULL); return nf_hook_slow(skb, &state); }

Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso5488.52%266.67%
eric w. biedermaneric w. biederman711.48%133.33%
Total61100.00%3100.00%


static inline void nf_hook_ingress_init(struct net_device *dev) { INIT_LIST_HEAD(&dev->nf_hooks_ingress); }

Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso20100.00%1100.00%
Total20100.00%1100.00%

#else /* CONFIG_NETFILTER_INGRESS */
static inline int nf_hook_ingress_active(struct sk_buff *skb) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso15100.00%1100.00%
Total15100.00%1100.00%


static inline int nf_hook_ingress(struct sk_buff *skb) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso15100.00%1100.00%
Total15100.00%1100.00%


static inline void nf_hook_ingress_init(struct net_device *dev) {}

Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso11100.00%1100.00%
Total11100.00%1100.00%

#endif /* CONFIG_NETFILTER_INGRESS */ #endif /* _NETFILTER_INGRESS_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
pablo neira ayusopablo neira ayuso16082.47%250.00%
florian westphalflorian westphal2713.92%125.00%
eric w. biedermaneric w. biederman73.61%125.00%
Total194100.00%4100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}