Struct Xt_Action_Param

Struct Xt_Action_Param



/** * struct xt_action_param – parameters for matches/targets * * @match: the match extension * @target: the target extention * @matchinfo: per-match data * @targetinfo: per-target data * @net: network namespace through which the action was invoked * @in: input netdevice * @out: output netdevice * @fragoff: packet is a fragment, this is the data offset * @thoff: position of transport.


struct xt_ action _param {const struct xt_match *match const void *matchinfo const struct net_device *in, *out int fragoff unsigned int thoff unsigned int hook uint8_t family bool hotdrop} struct xt_mtchk_param {const char *table const void *entryinfo const struct xt_match *match void *matchinfo, * struct xt_ action _param – parameters for matches/targets * * @match: the match extension * @target: the target extension * @matchinfo: per-match data * @targetinfo: per-target data * @in: input netdevice * @out: output netdevice * @fragoff: packet is a fragment, this is the data offset * @thoff: position of transport header relative to skb->data, 10/20/2019  · static inline struct net_device * xt_in (const struct xt_ action _param *par) {return par-> in} static inline struct net_device * xt_out (const struct xt_ action _param *par) {return par-> out} static inline unsigned int xt_hooknum (const struct xt_ action _param *par) {return par-> hooknum} # endif: struct nat_mapping_original_tuple { struct nf …


socket_mt4_v0(const struct sk_buff *skb, struct xt_action_param *par) 98 {99: static struct xt_socket_mtinfo1 xt_info_v0 = {100.flags = 0, 101} 102: 103: return socket_match(skb, par, &xt_info_v0) 104} 105: 106: static bool: 107: socket_mt4_v1_v2_v3(const struct sk_buff *skb, struct xt_action_param *par) 108 {109: return socket_match(skb, par …


LG Optimus L9 II kernel. Contribute to Varcain/android_kernel_lge_d605 development by creating an account on GitHub.


static bool match_tcp(const struct sk_buff *skb, struct xt_action_param *par) 31 {32: const struct xt_ecn_info *einfo = par->matchinfo 33: struct tcphdr _tcph 34: const struct tcphdr *th 35: 36 /* In practice, TCP match does this, so can’t fail. But let’s: 37 * be good citizens. 38 */ 39: th = skb_header_pointer(skb, par->thoff, sizeof …


10/13/2016  · Place pointer to hook state in xt_ action _param structure instead of copying the fields that we need. After this change xt_ action _param fits into one cacheline. This patch also adds a set of new wrapper functions to fetch relevant hook state structure fields. Signed-off-by: Pablo Neira Ayuso, Generated on 2019-Mar-29 from project linux revision v5.1-rc2 Powered by Code Browser 2.1 Generator usage only permitted with license. Code Browser 2.1.


syncookies_accepted (const struct sk_buff *skb, struct xt_action_param *par) {const struct xt_syncookies_info *sinfo = par-> matchinfo struct iphdr *iph struct tcphdr *th, _th const struct net_device *net_dev = (par-> in? par-> in: par-> out) struct net *net struct sock *listen_sk bool want_cookie = false /* Early exit, wont be allowed …

Advertiser