| /linux/net/netfilter/ |
| H A D | nf_nat_helper.c | 28 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 …]
|
| H A D | nf_conntrack_sip.c | 504 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_header() 536 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_next_header() 844 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_sdp_header()
|
| /linux/include/net/netfilter/ |
| H A D | nf_nat_helper.h | 14 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/fs/ntfs3/lib/ |
| H A D | lzx_decompress.c | 482 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() 553 if (match_len > (size_t)(block_end - out_next)) in lzx_decompress_block() 559 out_next = lz_copy(out_next, match_len, match_offset, in lzx_decompress_block()
|
| /linux/drivers/nvme/common/ |
| H A D | keyring.c | 54 size_t match_len; in nvme_tls_psk_match() local 65 match_len = strlen(match_id); in nvme_tls_psk_match() 67 __func__, match_id, key->description, match_len); in nvme_tls_psk_match() 68 return !memcmp(key->description, match_id, match_len); in nvme_tls_psk_match()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | audit.h | 269 int match_len = matches[1].rm_eo - matches[1].rm_so; in audit_match_record() 273 if (match_len > 0 && match_len < sizeof(dom_id)) { in audit_match_record() 275 match_len); in audit_match_record() 276 dom_id[match_len] = '\0'; in audit_match_record() 282 int match_len = matches[1].rm_eo - matches[1].rm_so; audit_match_record() local
|
| /linux/net/wireless/ |
| H A D | mlme.c | 641 int match_len; member 707 int match_len, bool multicast_rx, in cfg80211_mlme_register_mgmt() argument 746 !(match_data && match_len >= 2)) { in cfg80211_mlme_register_mgmt() 752 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt() 759 int mlen = min(match_len, reg->match_len); in cfg80211_mlme_register_mgmt() 782 memcpy(nreg->match, match_data, match_len); in cfg80211_mlme_register_mgmt() 783 nreg->match_len = match_len; in cfg80211_mlme_register_mgmt() 1043 if (reg->match_len > data_len) in cfg80211_rx_mgmt_ext() 1046 if (memcmp(reg->match, data, reg->match_len)) in cfg80211_rx_mgmt_ext()
|
| H A D | scan.c | 277 unsigned int match_len; in cfg80211_gen_new_ie() local 304 match_len = 1; in cfg80211_gen_new_ie() 307 match_len = 0; in cfg80211_gen_new_ie() 312 &ext_id, match_len, 0); in cfg80211_gen_new_ie() 349 &ext_id, match_len, 0)) in cfg80211_gen_new_ie() 365 &ext_id, match_len, 0); in cfg80211_gen_new_ie() 386 match_len = 1; in cfg80211_gen_new_ie() 392 match_len = 0; in cfg80211_gen_new_ie() 397 &ext_id, match_len, 0)) in cfg80211_gen_new_ie() 1413 const u8 *match, unsigned int match_len, in cfg80211_find_elem_match() argument [all …]
|
| H A D | core.h | 397 int match_len, bool multicast_rx,
|
| /linux/include/linux/netfilter/ |
| H A D | nf_conntrack_sip.h | 68 int (*match_len)(const struct nf_conn *ct, member 81 .match_len = (__match), \
|
| /linux/security/apparmor/ |
| H A D | apparmorfs.c | 861 const char *match_str, size_t match_len) in profile_query_cb() argument 872 match_str + 1, match_len - 1); in profile_query_cb() 892 match_str, match_len); in profile_query_cb() 1019 size_t label_name_len, match_len; in query_label() local 1039 match_len = query_len - label_name_len - 1; in query_label() 1050 profile_query_cb(profile, &perms, match_str, match_len); in query_label() 1054 profile_query_cb(profile, &perms, match_str, match_len); in query_label()
|
| /linux/include/net/ |
| H A D | cfg80211.h | 7821 const u8 *match, unsigned int match_len, 7850 const u8 *match, unsigned int match_len, in cfg80211_find_ie_match() argument 7856 if (WARN_ON((match_len && match_offset < 2) || in cfg80211_find_ie_match() 7857 (!match_len && match_offset))) in cfg80211_find_ie_match() 7861 match, match_len, in cfg80211_find_ie_match()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 194 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_match() local 195 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match() 241 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_get_match() local 242 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_get_match()
|
| /linux/tools/perf/util/ |
| H A D | header.c | 969 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in write_clock_data() 972 if (match_len == strlen(cpuid)) in write_clock_data() 884 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); strcmp_cpuid_str() local
|