Searched refs:match_size (Results 1 – 7 of 7) sorted by relevance
| /linux/include/uapi/linux/netfilter/ |
| H A D | x_tables.h | 14 __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/net/bridge/netfilter/ |
| H A D | ebt_among.c | 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()
|
| H A D | ebtables.c | 405 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match() 424 ret = xt_check_match(par, m->match_size, in ebt_check_match() 1474 m->u.match->usersize, m->match_size, in ebt_match_to_user() 1623 compat_uint_t match_size; member 1654 int off = ebt_compat_match_offset(match, m->match_size); in compat_match_to_user() 1655 compat_uint_t msize = m->match_size - off; in compat_match_to_user() 1657 if (WARN_ON(off >= m->match_size)) in compat_match_to_user() 1662 put_user(msize, &cm->match_size)) in compat_match_to_user() 1694 put_user(tsize, &cm->match_size)) in compat_target_to_user() 1778 *off += ebt_compat_match_offset(m->u.match, m->match_size); in compat_calc_match() [all …]
|
| /linux/include/uapi/linux/netfilter_bridge/ |
| H A D | ebtables.h | 131 unsigned int match_size; member 226 __i += __match->match_size + \
|
| /linux/include/linux/netfilter/ |
| H A D | x_tables.h | 474 u_int16_t match_size; member 479 u_int16_t match_size; member 482 u_int16_t match_size; member
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | offload.c | 711 u8 key_layer, match_size; in nfp_flower_populate_merge_match() local 730 match_size = sizeof(struct nfp_flower_mac_mpls); in nfp_flower_populate_merge_match() 731 memcpy(&merge->l2, mask, match_size); in nfp_flower_populate_merge_match() 732 mask += match_size; in nfp_flower_populate_merge_match() 736 match_size = sizeof(struct nfp_flower_tp_ports); in nfp_flower_populate_merge_match() 737 memcpy(&merge->l4, mask, match_size); in nfp_flower_populate_merge_match() 738 mask += match_size; in nfp_flower_populate_merge_match() 742 match_size = sizeof(struct nfp_flower_ipv4); in nfp_flower_populate_merge_match() 743 memcpy(&merge->ipv4, mask, match_size); in nfp_flower_populate_merge_match() 747 match_size = sizeof(struct nfp_flower_ipv6); in nfp_flower_populate_merge_match() [all …]
|
| /linux/net/netfilter/ |
| H A D | x_tables.c | 608 if (pos->u.match_size < sizeof(struct xt_entry_match)) in xt_check_entry_match() 611 if (pos->u.match_size > length) in xt_check_entry_match() 614 length -= pos->u.match_size; in xt_check_entry_match() 615 pos = ((void *)((char *)(pos) + (pos)->u.match_size)); in xt_check_entry_match() 803 u_int16_t msize = cm->u.user.match_size; in xt_compat_match_from_user() 814 m->u.user.match_size = msize; in xt_compat_match_from_user() 836 u_int16_t msize = m->u.user.match_size - off; in xt_compat_match_to_user()
|