Lines Matching refs:cp
220 char *cp, *cp_nons, *ncp, ch;
227 cp = ipcp->ns.resolv;
230 while ((ncp = strstr(cp, "nameserver")) != NULL) {
231 if (ncp != cp) {
232 memcpy(cp_nons, cp, ncp - cp);
233 cp_nons += ncp - cp;
235 if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) {
238 cp = ncp + 9; /* Can't match "nameserver" at cp... */
242 for (cp = ncp + 11; issep(*cp); cp++) /* Skip whitespace */
245 for (ncp = cp; isip(*ncp); ncp++) /* Jump over IP */
250 if (n < 2 && inet_aton(cp, ipcp->ns.dns))
254 if ((cp = strchr(ncp, '\n')) == NULL) /* Point at next line */
255 cp = ncp + strlen(ncp);
257 cp++;
260 * Note, cp_nons and cp always point to buffers of the same size, so
263 strcpy(cp_nons, cp); /* Copy the end - including the NUL */
1049 IpcpDecodeConfig(struct fsm *fp, u_char *cp, u_char *end, int mode_type,
1064 while (end - cp >= (int)sizeof(opt->hdr)) {
1065 if ((opt = fsm_readopt(&cp)) == NULL)