Home
last modified time | relevance | path

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

/linux/lib/
H A Dts_bm.c53 unsigned int patlen; member
63 for (i = 0; i < patlen; i++) { in matchpat()
85 int shift = bm->patlen - 1; in bm_find()
96 i = matchpat(&bm->pattern[bm->patlen-1], bm->patlen, in bm_find()
98 if (i == bm->patlen) { in bm_find()
138 bm->bad_shift[i] = bm->patlen; in compute_prefix_tbl()
143 = bm->patlen - 1 - i; in compute_prefix_tbl()
149 for (i = 1; i < bm->patlen; i++) in compute_prefix_tbl()
150 bm->good_shift[i] = bm->patlen; in compute_prefix_tbl()
175 bm->patlen = len; in bm_init()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dxt_string.sh30 patlen=11
68 send $((1000 - patlen))
77 send $((1400 - patlen))
85 send $((1500 - patlen))
109 send $((1600 - patlen))
117 send $((1600 - patlen + 1))
/linux/net/netfilter/
H A Dxt_string.c49 if (conf->patlen > XT_STRING_MAX_PATTERN_SIZE) in string_mt_check()
56 ts_conf = textsearch_prepare(conf->algo, conf->pattern, conf->patlen, in string_mt_check()
/linux/include/uapi/linux/netfilter/
H A Dxt_string.h20 __u8 patlen; member
/linux/net/core/
H A Dskbuff.c4521 unsigned int patlen = config->ops->get_pattern_len(config); in skb_find_text() local
4533 return (ret + patlen <= to - from ? ret : UINT_MAX); in skb_find_text()