Home
last modified time | relevance | path

Searched refs:match_size (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/include/uapi/linux/netfilter/
Dx_tables.h14 __u16 match_size; member
21 __u16 match_size; member
28 __u16 match_size; member
137 __i += __m->u.match_size) { \
185 (pos)->u.match_size))
/Linux-v5.4/net/bridge/netfilter/
Debt_among.c212 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()
Debtables.c363 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match()
379 ret = xt_check_match(par, m->match_size, in ebt_check_match()
1334 m->u.match->usersize, m->match_size, in ebt_match_to_user()
1563 compat_uint_t match_size; member
1594 int off = ebt_compat_match_offset(match, m->match_size); in compat_match_to_user()
1595 compat_uint_t msize = m->match_size - off; in compat_match_to_user()
1597 if (WARN_ON(off >= m->match_size)) in compat_match_to_user()
1602 put_user(msize, &cm->match_size)) in compat_match_to_user()
1634 put_user(tsize, &cm->match_size)) in compat_target_to_user()
1718 *off += ebt_compat_match_offset(m->u.match, m->match_size); in compat_calc_match()
[all …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c623 u8 key_layer, match_size; in nfp_flower_populate_merge_match() local
642 match_size = sizeof(struct nfp_flower_mac_mpls); in nfp_flower_populate_merge_match()
643 memcpy(&merge->l2, mask, match_size); in nfp_flower_populate_merge_match()
644 mask += match_size; in nfp_flower_populate_merge_match()
648 match_size = sizeof(struct nfp_flower_tp_ports); in nfp_flower_populate_merge_match()
649 memcpy(&merge->l4, mask, match_size); in nfp_flower_populate_merge_match()
650 mask += match_size; in nfp_flower_populate_merge_match()
654 match_size = sizeof(struct nfp_flower_ipv4); in nfp_flower_populate_merge_match()
655 memcpy(&merge->ipv4, mask, match_size); in nfp_flower_populate_merge_match()
659 match_size = sizeof(struct nfp_flower_ipv6); in nfp_flower_populate_merge_match()
[all …]
/Linux-v5.4/include/uapi/linux/netfilter_bridge/
Debtables.h131 unsigned int match_size; member
224 __i += __match->match_size + \
/Linux-v5.4/include/linux/netfilter/
Dx_tables.h457 u_int16_t match_size; member
462 u_int16_t match_size; member
465 u_int16_t match_size; member
/Linux-v5.4/drivers/regulator/
Dab8500.c1571 int match_size; member
1582 abx500_regulator.match_size = ARRAY_SIZE(ab8505_regulator_match); in abx500_get_regulator_info()
1589 abx500_regulator.match_size = ARRAY_SIZE(ab8500_regulator_match); in abx500_get_regulator_info()
1648 abx500_regulator.match_size); in ab8500_regulator_probe()
/Linux-v5.4/net/netfilter/
Dx_tables.c540 if (pos->u.match_size < sizeof(struct xt_entry_match)) in xt_check_entry_match()
543 if (pos->u.match_size > length) in xt_check_entry_match()
546 length -= pos->u.match_size; in xt_check_entry_match()
547 pos = ((void *)((char *)(pos) + (pos)->u.match_size)); in xt_check_entry_match()
735 u_int16_t msize = cm->u.user.match_size; in xt_compat_match_from_user()
749 m->u.user.match_size = msize; in xt_compat_match_from_user()
771 u_int16_t msize = m->u.user.match_size - off; in xt_compat_match_to_user()
/Linux-v5.4/net/ipv4/netfilter/
Dip_tables.c472 return xt_check_match(par, m->u.match_size - sizeof(*m), in check_match()
850 i += m->u.match_size) { in copy_entries_to_user()
/Linux-v5.4/net/ipv6/netfilter/
Dip6_tables.c489 return xt_check_match(par, m->u.match_size - sizeof(*m), in check_match()
866 i += m->u.match_size) { in copy_entries_to_user()