Lines Matching defs:cp
99 static void pr_options(unsigned char * cp, int hlen);
1133 void pr_options(unsigned char * cp, int hlen)
1142 optptr = cp;
1153 cp = optptr;
1158 switch (*cp) {
1161 printf("\n%cSRR: ", *cp==IPOPT_SSRR ? 'S' : 'L');
1162 j = *++cp;
1163 i = *++cp;
1165 cp++;
1169 memcpy(&address, cp, 4);
1170 cp += 4;
1183 j = *++cp; /* get length */
1184 i = *++cp; /* and pointer */
1191 && !memcmp(cp, old_rr, i)
1195 cp += i;
1199 memcpy(old_rr, (char *)cp, i);
1201 cp++;
1204 memcpy(&address, cp, 4);
1205 cp += 4;
1220 j = *++cp; /* get length */
1221 i = *++cp; /* and pointer */
1227 flags = *++cp;
1229 cp++;
1235 memcpy(&address, cp, 4);
1236 cp += 4;
1245 l = *cp++;
1246 l = (l<<8) + *cp++;
1247 l = (l<<8) + *cp++;
1248 l = (l<<8) + *cp++;
1273 printf("\nunknown option %x", *cp);
1289 u_char *cp;
1292 cp = (u_char *)ip + 20; /* point to options */
1303 pr_options(cp, hlen);
1346 const char *cp;
1352 cp = str + 2;
1353 tos = (int)strtol(cp, &ep, 16);