Home
last modified time | relevance | path

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

/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.c402 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match()
418 ret = xt_check_match(par, m->match_size, in ebt_check_match()
1460 m->u.match->usersize, m->match_size, in ebt_match_to_user()
1609 compat_uint_t match_size; member
1640 int off = ebt_compat_match_offset(match, m->match_size); in compat_match_to_user()
1641 compat_uint_t msize = m->match_size - off; in compat_match_to_user()
1643 if (WARN_ON(off >= m->match_size)) in compat_match_to_user()
1648 put_user(msize, &cm->match_size)) in compat_match_to_user()
1680 put_user(tsize, &cm->match_size)) in compat_target_to_user()
1764 *off += ebt_compat_match_offset(m->u.match, m->match_size); in compat_calc_match()
[all …]
/net/netfilter/
Dx_tables.c562 if (pos->u.match_size < sizeof(struct xt_entry_match)) in xt_check_entry_match()
565 if (pos->u.match_size > length) in xt_check_entry_match()
568 length -= pos->u.match_size; in xt_check_entry_match()
569 pos = ((void *)((char *)(pos) + (pos)->u.match_size)); in xt_check_entry_match()
757 u_int16_t msize = cm->u.user.match_size; in xt_compat_match_from_user()
768 m->u.user.match_size = msize; in xt_compat_match_from_user()
790 u_int16_t msize = m->u.user.match_size - off; in xt_compat_match_to_user()
/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()
/net/ipv6/netfilter/
Dip6_tables.c490 return xt_check_match(par, m->u.match_size - sizeof(*m), in check_match()
867 i += m->u.match_size) { in copy_entries_to_user()