Home
last modified time | relevance | path

Searched refs:em (Results 1 – 7 of 7) sorted by relevance

/net/sched/
Dematch.c175 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate() argument
206 em->data = ref; in tcf_em_validate()
216 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
218 if (em->ops == NULL) { in tcf_em_validate()
224 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
225 if (em->ops) { in tcf_em_validate()
230 module_put(em->ops->owner); in tcf_em_validate()
231 em->ops = NULL; in tcf_em_validate()
241 if (em->ops->datalen && data_len < em->ops->datalen) in tcf_em_validate()
244 if (em->ops->change) { in tcf_em_validate()
[all …]
Dem_ipset.c23 struct tcf_ematch *em) in em_ipset_change() argument
35 em->datalen = sizeof(*set); in em_ipset_change()
36 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_ipset_change()
37 if (em->data) in em_ipset_change()
44 static void em_ipset_destroy(struct tcf_ematch *em) in em_ipset_destroy() argument
46 const struct xt_set_info *set = (const void *) em->data; in em_ipset_destroy()
48 ip_set_nfnl_put(em->net, set->index); in em_ipset_destroy()
49 kfree((void *) em->data); in em_ipset_destroy()
53 static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em, in em_ipset_match() argument
58 const struct xt_set_info *set = (const void *) em->data; in em_ipset_match()
Dem_nbyte.c27 struct tcf_ematch *em) in em_nbyte_change() argument
35 em->datalen = sizeof(*nbyte) + nbyte->len; in em_nbyte_change()
36 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_nbyte_change()
37 if (em->data == 0UL) in em_nbyte_change()
43 static int em_nbyte_match(struct sk_buff *skb, struct tcf_ematch *em, in em_nbyte_match() argument
46 struct nbyte_data *nbyte = (struct nbyte_data *) em->data; in em_nbyte_match()
Dem_u32.c21 static int em_u32_match(struct sk_buff *skb, struct tcf_ematch *em, in em_u32_match() argument
24 struct tc_u32_key *key = (struct tc_u32_key *) em->data; in em_u32_match()
Dem_cmp.c25 static int em_cmp_match(struct sk_buff *skb, struct tcf_ematch *em, in em_cmp_match() argument
28 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match()
Dem_meta.c917 static int em_meta_dump(struct sk_buff *skb, struct tcf_ematch *em) in em_meta_dump() argument
919 struct meta_match *meta = (struct meta_match *) em->data; in em_meta_dump()
/net/bridge/netfilter/
Debt_among.c178 const struct ebt_entry_match *em = in ebt_among_mt_check() local
189 if (em->match_size != EBT_ALIGN(expected_length)) { in ebt_among_mt_check()
191 em->match_size, expected_length, in ebt_among_mt_check()