Lines Matching defs:pattern

136 is_pattern_all_zeroes (u_int8_t *pattern,
141 if (!pattern || !pattern_len) return FALSE; // false if args are NULL
144 if (pattern[i] != 0) return FALSE;
150 is_pattern_masked_all_zeroes (u_int8_t *pattern,
156 if (!pattern || !pattern_mask || !pattern_len) return FALSE; // false if args are NULL
159 if ((pattern[i] & pattern_mask[i])) return FALSE;
165 utun_ctl_calc_dtls_framer_pattern_and_mask (u_int8_t *pattern_masked, u_int8_t *pattern, u_int8_t *mask, int len)
169 pattern_masked[i] = (pattern[i] & mask[i]);
260 // prepend/encapsulate the output pattern
473 // Input framer (for tunnel hdr detection and decapsulation). there can be several pattern that identify data (vs. control) packets.
476 // pattern and mask have to be configured
480 printf("%s: invalid dtls in-pattern %d mask %d\n", __FUNCTION__,
485 // pattern and mask lengths have to match
488 printf("%s: inconsistent dtls in-pattern %d mask %d\n",__FUNCTION__,
496 printf("%s: inconsistent dtls in-pattern %d mask %d, total %d\n",__FUNCTION__,
506 printf("%s: in-pattern is all zeros, len %d\n",__FUNCTION__,
514 printf("%s: in-pattern-mask is all zeros, len %d\n",__FUNCTION__,
523 printf("%s: in-pattern-masked is all zeros, len %d\n",__FUNCTION__,
565 // allocate and fill the pattern
576 // allocate and fill the pattern-mask
601 // pattern and mask have to be configured
626 // any length field should be within the bounds of the out-pattern
641 // any sequence field should be within the bounds of the out-pattern
686 // alloc and fill in the out-pattern
730 // no pattern means... clear all
736 // when both specified, pattern and mask lengths have to match
1007 * make sure that family matches what the UTUN was configured for (punt those that don't... along with all that fail to match the data pattern.