Lines Matching refs:cp
49 char *list, *cp, *o;
60 while ((cp = strsep(&list, ",")) != NULL) {
61 neg = *cp == '!';
63 cp++;
64 if (*cp == '\0') {
69 r = addr_pton_cidr(cp, &match_addr, &masklen);
72 "match network \"%.100s\"", cp);
88 if (addr != NULL && match_pattern(addr, cp) == 1)
109 char *list, *cp, *o;
120 while ((cp = strsep(&list, ",")) != NULL) {
121 if (*cp == '\0') {
134 if (strlen(cp) > INET6_ADDRSTRLEN + 3) {
135 error_f("list entry \"%.100s\" too long", cp);
140 if (strspn(cp, VALID_CIDR_CHARS) != strlen(cp)) {
142 "characters", cp);
147 r = addr_pton_cidr(cp, &match_addr, &masklen);
149 error("Invalid network entry \"%.100s\"", cp);
154 "network \"%.100s\"", cp);