Searched refs:em (Results 1 – 8 of 8) sorted by relevance
/net/sched/ |
D | ematch.c | 171 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate() argument 202 em->data = ref; in tcf_em_validate() 212 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 214 if (em->ops == NULL) { in tcf_em_validate() 220 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 221 if (em->ops) { in tcf_em_validate() 226 module_put(em->ops->owner); in tcf_em_validate() 227 em->ops = NULL; in tcf_em_validate() 237 if (em->ops->datalen && data_len < em->ops->datalen) in tcf_em_validate() 240 if (em->ops->change) { in tcf_em_validate() [all …]
|
D | em_ipset.c | 20 struct tcf_ematch *em) in em_ipset_change() argument 32 em->datalen = sizeof(*set); in em_ipset_change() 33 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_ipset_change() 34 if (em->data) in em_ipset_change() 41 static void em_ipset_destroy(struct tcf_ematch *em) in em_ipset_destroy() argument 43 const struct xt_set_info *set = (const void *) em->data; in em_ipset_destroy() 45 ip_set_nfnl_put(em->net, set->index); in em_ipset_destroy() 46 kfree((void *) em->data); in em_ipset_destroy() 50 static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em, in em_ipset_match() argument 55 const struct xt_set_info *set = (const void *) em->data; in em_ipset_match() [all …]
|
D | em_nbyte.c | 23 struct tcf_ematch *em) in em_nbyte_change() argument 31 em->datalen = sizeof(*nbyte) + nbyte->len; in em_nbyte_change() 32 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_nbyte_change() 33 if (em->data == 0UL) in em_nbyte_change() 39 static int em_nbyte_match(struct sk_buff *skb, struct tcf_ematch *em, in em_nbyte_match() argument 42 struct nbyte_data *nbyte = (struct nbyte_data *) em->data; in em_nbyte_match()
|
D | em_ipt.c | 127 struct tcf_ematch *em) in em_ipt_change() argument 175 em->datalen = sizeof(*im) + mdata_len; in em_ipt_change() 176 em->data = (unsigned long)im; in em_ipt_change() 185 static void em_ipt_destroy(struct tcf_ematch *em) in em_ipt_destroy() argument 187 struct em_ipt_match *im = (void *)em->data; in em_ipt_destroy() 194 .net = em->net, in em_ipt_destroy() 205 static int em_ipt_match(struct sk_buff *skb, struct tcf_ematch *em, in em_ipt_match() argument 208 const struct em_ipt_match *im = (const void *)em->data; in em_ipt_match() 235 indev = dev_get_by_index_rcu(em->net, skb->skb_iif); in em_ipt_match() 238 indev ?: skb->dev, skb->dev, NULL, em->net, NULL); in em_ipt_match() [all …]
|
D | em_u32.c | 17 static int em_u32_match(struct sk_buff *skb, struct tcf_ematch *em, in em_u32_match() argument 20 struct tc_u32_key *key = (struct tc_u32_key *) em->data; in em_u32_match()
|
D | em_cmp.c | 21 static int em_cmp_match(struct sk_buff *skb, struct tcf_ematch *em, in em_cmp_match() argument 24 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match()
|
D | em_meta.c | 962 static int em_meta_dump(struct sk_buff *skb, struct tcf_ematch *em) in em_meta_dump() argument 964 struct meta_match *meta = (struct meta_match *) em->data; in em_meta_dump()
|
/net/bridge/netfilter/ |
D | ebt_among.c | 206 const struct ebt_entry_match *em = in ebt_among_mt_check() local 212 if (expected_length > em->match_size) in ebt_among_mt_check() 215 if (wormhash_offset_invalid(info->wh_dst_ofs, em->match_size) || in ebt_among_mt_check() 216 wormhash_offset_invalid(info->wh_src_ofs, em->match_size)) in ebt_among_mt_check() 224 if (expected_length > em->match_size) in ebt_among_mt_check() 241 if (em->match_size != EBT_ALIGN(expected_length)) { in ebt_among_mt_check() 243 em->match_size, expected_length, in ebt_among_mt_check()
|