Lines Matching refs:pattern
50 const char *pattern, size_t patternlen) in pmatch() argument
54 return strncasecompare(hostname, pattern, hostlen); in pmatch()
83 const char *pattern, in hostmatch() argument
88 DEBUGASSERT(pattern); in hostmatch()
96 if(pattern[patternlen-1]=='.') in hostmatch()
99 if(strncmp(pattern, "*.", 2)) in hostmatch()
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
108 pattern_label_end = memchr(pattern, '.', patternlen); in hostmatch()
110 (memrchr(pattern, '.', patternlen) == pattern_label_end)) in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
116 size_t skiplen = pattern_label_end - pattern; in hostmatch()