Home
last modified time | relevance | path

Searched refs:match_len (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/net/netfilter/
Dnf_nat_helper.c28 unsigned int match_len, in mangle_contents() argument
39 data + match_offset + match_len, in mangle_contents()
41 match_offset + match_len)); in mangle_contents()
47 if (rep_len > match_len) { in mangle_contents()
49 "%u from %u bytes\n", rep_len - match_len, skb->len); in mangle_contents()
50 skb_put(skb, rep_len - match_len); in mangle_contents()
53 "%u from %u bytes\n", match_len - rep_len, skb->len); in mangle_contents()
54 __skb_trim(skb, skb->len + rep_len - match_len); in mangle_contents()
91 unsigned int match_len, in __nf_nat_mangle_tcp_packet() argument
101 if (rep_len > match_len && in __nf_nat_mangle_tcp_packet()
[all …]
Dnf_conntrack_sip.c424 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_header()
456 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_next_header()
771 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_sdp_header()
/linux-6.6.21/include/net/netfilter/
Dnf_nat_helper.h14 unsigned int match_len, const char *rep_buffer,
22 unsigned int match_len, in nf_nat_mangle_tcp_packet() argument
27 match_offset, match_len, in nf_nat_mangle_tcp_packet()
34 unsigned int match_len, const char *rep_buffer,
/linux-6.6.21/fs/ntfs3/lib/
Dlzx_decompress.c482 u32 match_len; in lzx_decompress_block() local
498 match_len = mainsym % LZX_NUM_LEN_HEADERS; in lzx_decompress_block()
502 if (match_len == LZX_NUM_PRIMARY_LENS) in lzx_decompress_block()
503 match_len += read_lensym(d, is); in lzx_decompress_block()
504 match_len += LZX_MIN_MATCH_LEN; in lzx_decompress_block()
554 if (match_len > (size_t)(block_end - out_next)) in lzx_decompress_block()
560 out_next = lz_copy(out_next, match_len, match_offset, in lzx_decompress_block()
/linux-6.6.21/tools/perf/arch/x86/util/
Dheader.c122 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in strcmp_cpuid_str() local
134 if (match_len == cpuid_len) in strcmp_cpuid_str()
/linux-6.6.21/net/wireless/
Dmlme.c470 int match_len; member
536 int match_len, bool multicast_rx, in cfg80211_mlme_register_mgmt() argument
575 !(match_data && match_len >= 2)) { in cfg80211_mlme_register_mgmt()
581 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt()
588 int mlen = min(match_len, reg->match_len); in cfg80211_mlme_register_mgmt()
611 memcpy(nreg->match, match_data, match_len); in cfg80211_mlme_register_mgmt()
612 nreg->match_len = match_len; in cfg80211_mlme_register_mgmt()
866 if (reg->match_len > data_len) in cfg80211_rx_mgmt_ext()
869 if (memcmp(reg->match, data, reg->match_len)) in cfg80211_rx_mgmt_ext()
Dscan.c313 unsigned int match_len; in cfg80211_gen_new_ie() local
334 match_len = 1; in cfg80211_gen_new_ie()
337 match_len = 0; in cfg80211_gen_new_ie()
342 &ext_id, match_len, 0); in cfg80211_gen_new_ie()
358 &ext_id, match_len, 0)) in cfg80211_gen_new_ie()
374 &ext_id, match_len, 0); in cfg80211_gen_new_ie()
395 match_len = 1; in cfg80211_gen_new_ie()
401 match_len = 0; in cfg80211_gen_new_ie()
406 &ext_id, match_len, 0)) in cfg80211_gen_new_ie()
1305 const u8 *match, unsigned int match_len, in cfg80211_find_elem_match() argument
[all …]
Dcore.h396 int match_len, bool multicast_rx,
/linux-6.6.21/include/linux/netfilter/
Dnf_conntrack_sip.h68 int (*match_len)(const struct nf_conn *ct, member
81 .match_len = (__match), \
/linux-6.6.21/security/apparmor/
Dapparmorfs.c613 const char *match_str, size_t match_len) in profile_query_cb() argument
625 match_str + 1, match_len - 1); in profile_query_cb()
636 match_str, match_len); in profile_query_cb()
762 size_t label_name_len, match_len; in query_label() local
781 match_len = query_len - label_name_len - 1; in query_label()
792 profile_query_cb(profile, &perms, match_str, match_len); in query_label()
796 profile_query_cb(profile, &perms, match_str, match_len); in query_label()
/linux-6.6.21/include/net/
Dcfg80211.h6535 const u8 *match, unsigned int match_len,
6564 const u8 *match, unsigned int match_len, in cfg80211_find_ie_match() argument
6570 if (WARN_ON((match_len && match_offset < 2) || in cfg80211_find_ie_match()
6571 (!match_len && match_offset))) in cfg80211_find_ie_match()
6575 match, match_len, in cfg80211_find_ie_match()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c192 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_match() local
193 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match()
239 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_get_match() local
240 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_get_match()
/linux-6.6.21/tools/perf/util/
Dheader.c846 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in strcmp_cpuid_str() local
849 if (match_len == strlen(cpuid)) in strcmp_cpuid_str()