optptr 156 arch/mips/mti-malta/malta-setup.c char *optptr, *argptr = fw_getcmdline(); optptr 161 arch/mips/mti-malta/malta-setup.c optptr = strstr(argptr, "pci_clock="); optptr 162 arch/mips/mti-malta/malta-setup.c if (optptr && (optptr == argptr || optptr[-1] == ' ')) optptr 82 net/ipv4/ah4.c unsigned char *optptr = (unsigned char *)(iph+1); optptr 87 net/ipv4/ah4.c switch (*optptr) { optptr 92 net/ipv4/ah4.c optptr++; optptr 95 net/ipv4/ah4.c optlen = optptr[1]; optptr 98 net/ipv4/ah4.c switch (*optptr) { optptr 109 net/ipv4/ah4.c memcpy(daddr, optptr+optlen-4, 4); optptr 112 net/ipv4/ah4.c memset(optptr, 0, optlen); optptr 115 net/ipv4/ah4.c optptr += optlen; optptr 1510 net/ipv4/cipso_ipv4.c unsigned char *optptr = (unsigned char *)&(ip_hdr(skb)[1]); optptr 1515 net/ipv4/cipso_ipv4.c switch (optptr[0]) { optptr 1522 net/ipv4/cipso_ipv4.c taglen = optptr[1]; optptr 1526 net/ipv4/cipso_ipv4.c if (optptr[0] == IPOPT_CIPSO) optptr 1527 net/ipv4/cipso_ipv4.c return optptr; optptr 1530 net/ipv4/cipso_ipv4.c optptr += taglen; optptr 210 net/ipv4/ip_options.c unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); optptr 216 net/ipv4/ip_options.c switch (*optptr) { optptr 221 net/ipv4/ip_options.c optptr++; optptr 224 net/ipv4/ip_options.c optlen = optptr[1]; optptr 227 net/ipv4/ip_options.c if (!IPOPT_COPIED(*optptr)) optptr 228 net/ipv4/ip_options.c memset(optptr, IPOPT_NOOP, optlen); optptr 230 net/ipv4/ip_options.c optptr += optlen; optptr 261 net/ipv4/ip_options.c unsigned char *optptr; optptr 267 net/ipv4/ip_options.c optptr = (unsigned char *)&(ip_hdr(skb)[1]); optptr 269 net/ipv4/ip_options.c optptr = opt->__data; optptr 270 net/ipv4/ip_options.c iph = optptr - sizeof(struct iphdr); optptr 273 net/ipv4/ip_options.c switch (*optptr) { optptr 275 net/ipv4/ip_options.c for (optptr++, l--; l > 0; optptr++, l--) { optptr 276 net/ipv4/ip_options.c if (*optptr != IPOPT_END) { optptr 277 net/ipv4/ip_options.c *optptr = IPOPT_END; optptr 284 net/ipv4/ip_options.c optptr++; optptr 288 net/ipv4/ip_options.c pp_ptr = optptr; optptr 291 net/ipv4/ip_options.c optlen = optptr[1]; optptr 293 net/ipv4/ip_options.c pp_ptr = optptr; optptr 296 net/ipv4/ip_options.c switch (*optptr) { optptr 300 net/ipv4/ip_options.c pp_ptr = optptr + 1; optptr 303 net/ipv4/ip_options.c if (optptr[2] < 4) { optptr 304 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 309 net/ipv4/ip_options.c pp_ptr = optptr; optptr 313 net/ipv4/ip_options.c if (optptr[2] != 4 || optlen < 7 || ((optlen-3) & 3)) { optptr 314 net/ipv4/ip_options.c pp_ptr = optptr + 1; optptr 317 net/ipv4/ip_options.c memcpy(&opt->faddr, &optptr[3], 4); optptr 319 net/ipv4/ip_options.c memmove(&optptr[3], &optptr[7], optlen-7); optptr 321 net/ipv4/ip_options.c opt->is_strictroute = (optptr[0] == IPOPT_SSRR); optptr 322 net/ipv4/ip_options.c opt->srr = optptr - iph; optptr 326 net/ipv4/ip_options.c pp_ptr = optptr; optptr 330 net/ipv4/ip_options.c pp_ptr = optptr + 1; optptr 333 net/ipv4/ip_options.c if (optptr[2] < 4) { optptr 334 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 337 net/ipv4/ip_options.c if (optptr[2] <= optlen) { optptr 338 net/ipv4/ip_options.c if (optptr[2]+3 > optlen) { optptr 339 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 344 net/ipv4/ip_options.c memcpy(&optptr[optptr[2]-1], &spec_dst, 4); optptr 347 net/ipv4/ip_options.c optptr[2] += 4; optptr 350 net/ipv4/ip_options.c opt->rr = optptr - iph; optptr 354 net/ipv4/ip_options.c pp_ptr = optptr; optptr 358 net/ipv4/ip_options.c pp_ptr = optptr + 1; optptr 361 net/ipv4/ip_options.c if (optptr[2] < 5) { optptr 362 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 365 net/ipv4/ip_options.c if (optptr[2] <= optlen) { optptr 367 net/ipv4/ip_options.c if (optptr[2]+3 > optlen) { optptr 368 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 371 net/ipv4/ip_options.c switch (optptr[3]&0xF) { optptr 374 net/ipv4/ip_options.c timeptr = &optptr[optptr[2]-1]; optptr 376 net/ipv4/ip_options.c optptr[2] += 4; optptr 379 net/ipv4/ip_options.c if (optptr[2]+7 > optlen) { optptr 380 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 385 net/ipv4/ip_options.c memcpy(&optptr[optptr[2]-1], &spec_dst, 4); optptr 386 net/ipv4/ip_options.c timeptr = &optptr[optptr[2]+3]; optptr 390 net/ipv4/ip_options.c optptr[2] += 8; optptr 393 net/ipv4/ip_options.c if (optptr[2]+7 > optlen) { optptr 394 net/ipv4/ip_options.c pp_ptr = optptr + 2; optptr 399 net/ipv4/ip_options.c memcpy(&addr, &optptr[optptr[2]-1], 4); optptr 403 net/ipv4/ip_options.c timeptr = &optptr[optptr[2]+3]; optptr 406 net/ipv4/ip_options.c optptr[2] += 8; optptr 410 net/ipv4/ip_options.c pp_ptr = optptr + 3; optptr 422 net/ipv4/ip_options.c } else if ((optptr[3]&0xF) != IPOPT_TS_PRESPEC) { optptr 423 net/ipv4/ip_options.c unsigned int overflow = optptr[3]>>4; optptr 425 net/ipv4/ip_options.c pp_ptr = optptr + 3; optptr 429 net/ipv4/ip_options.c optptr[3] = (optptr[3]&0xF)|((overflow+1)<<4); optptr 433 net/ipv4/ip_options.c opt->ts = optptr - iph; optptr 437 net/ipv4/ip_options.c pp_ptr = optptr + 1; optptr 440 net/ipv4/ip_options.c if (optptr[2] == 0 && optptr[3] == 0) optptr 441 net/ipv4/ip_options.c opt->router_alert = optptr - iph; optptr 445 net/ipv4/ip_options.c pp_ptr = optptr; optptr 448 net/ipv4/ip_options.c opt->cipso = optptr - iph; optptr 449 net/ipv4/ip_options.c if (cipso_v4_validate(skb, &optptr)) { optptr 450 net/ipv4/ip_options.c pp_ptr = optptr; optptr 458 net/ipv4/ip_options.c pp_ptr = optptr; optptr 464 net/ipv4/ip_options.c optptr += optlen; optptr 498 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->srr-sizeof(struct iphdr); optptr 499 net/ipv4/ip_options.c memmove(optptr+7, optptr+3, optptr[1]-7); optptr 500 net/ipv4/ip_options.c memcpy(optptr+3, &opt->faddr, 4); optptr 503 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->rr-sizeof(struct iphdr); optptr 504 net/ipv4/ip_options.c optptr[2] -= 4; optptr 505 net/ipv4/ip_options.c memset(&optptr[optptr[2]-1], 0, 4); optptr 508 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); optptr 510 net/ipv4/ip_options.c optptr[2] -= 4; optptr 511 net/ipv4/ip_options.c memset(&optptr[optptr[2]-1], 0, 4); optptr 512 net/ipv4/ip_options.c if ((optptr[3]&0xF) == IPOPT_TS_PRESPEC) optptr 513 net/ipv4/ip_options.c optptr[2] -= 4; optptr 516 net/ipv4/ip_options.c optptr[2] -= 4; optptr 517 net/ipv4/ip_options.c memset(&optptr[optptr[2]-1], 0, 4); optptr 572 net/ipv4/ip_options.c unsigned char *optptr; optptr 577 net/ipv4/ip_options.c optptr = (unsigned char *)raw + opt->rr; optptr 578 net/ipv4/ip_options.c ip_rt_get_source(&optptr[optptr[2]-5], skb, rt); optptr 584 net/ipv4/ip_options.c optptr = raw + opt->srr; optptr 586 net/ipv4/ip_options.c for ( srrptr = optptr[2], srrspace = optptr[1]; optptr 592 net/ipv4/ip_options.c if (memcmp(&opt->nexthop, &optptr[srrptr-1], 4) == 0) optptr 598 net/ipv4/ip_options.c ip_rt_get_source(&optptr[srrptr-1], skb, rt); optptr 599 net/ipv4/ip_options.c optptr[2] = srrptr+4; optptr 605 net/ipv4/ip_options.c optptr = raw + opt->ts; optptr 606 net/ipv4/ip_options.c ip_rt_get_source(&optptr[optptr[2]-9], skb, rt); optptr 622 net/ipv4/ip_options.c unsigned char *optptr = skb_network_header(skb) + opt->srr; optptr 642 net/ipv4/ip_options.c for (srrptr = optptr[2], srrspace = optptr[1]; srrptr <= srrspace; srrptr += 4) { optptr 647 net/ipv4/ip_options.c memcpy(&nexthop, &optptr[srrptr-1], 4);