tag | line | file | source code |
optptr | 363 | net/ipv4/ip_forward.c | unsigned char * optptr; |
optptr | 366 | net/ipv4/ip_forward.c | optptr = (unsigned char *)iph + opt->rr; |
optptr | 367 | net/ipv4/ip_forward.c | memcpy(&optptr[optptr[2]-5], &dev2->pa_addr, 4); |
optptr | 374 | net/ipv4/ip_forward.c | optptr = (unsigned char *)iph + opt->srr; |
optptr | 376 | net/ipv4/ip_forward.c | for ( srrptr=optptr[2], srrspace = optptr[1]; |
optptr | 383 | net/ipv4/ip_forward.c | if (memcmp(&target_addr, &optptr[srrptr-1], 4) == 0) |
optptr | 389 | net/ipv4/ip_forward.c | memcpy(&optptr[srrptr-1], &dev2->pa_addr, 4); |
optptr | 391 | net/ipv4/ip_forward.c | optptr[2] = srrptr+4; |
optptr | 398 | net/ipv4/ip_forward.c | optptr = (unsigned char *)iph + opt->ts; |
optptr | 399 | net/ipv4/ip_forward.c | memcpy(&optptr[optptr[2]-9], &dev2->pa_addr, 4); |
optptr | 348 | net/ipv4/ip_input.c | unsigned char * optptr = ((unsigned char *)iph) + opt->srr; |
optptr | 356 | net/ipv4/ip_input.c | for ( srrptr=optptr[2], srrspace = optptr[1]; |
optptr | 369 | net/ipv4/ip_input.c | memcpy(&nexthop, &optptr[srrptr-1], 4); |
optptr | 383 | net/ipv4/ip_input.c | memcpy(&daddr, &optptr[srrptr-1], 4); |
optptr | 196 | net/ipv4/ip_options.c | unsigned char * optptr = (unsigned char*)skb->ip_hdr; |
optptr | 203 | net/ipv4/ip_options.c | switch (*optptr) |
optptr | 209 | net/ipv4/ip_options.c | optptr++; |
optptr | 212 | net/ipv4/ip_options.c | optlen = optptr[1]; |
optptr | 215 | net/ipv4/ip_options.c | if (!(*optptr & 0x80)) |
optptr | 216 | net/ipv4/ip_options.c | memset(optptr, IPOPT_NOOP, optlen); |
optptr | 218 | net/ipv4/ip_options.c | optptr += optlen; |
optptr | 238 | net/ipv4/ip_options.c | unsigned char * optptr; |
optptr | 248 | net/ipv4/ip_options.c | optptr = iph + sizeof(struct iphdr); |
optptr | 253 | net/ipv4/ip_options.c | optptr = opt->is_data ? opt->__data : (unsigned char*)&skb->ip_hdr[1]; |
optptr | 254 | net/ipv4/ip_options.c | iph = optptr - sizeof(struct iphdr); |
optptr | 259 | net/ipv4/ip_options.c | switch (*optptr) |
optptr | 262 | net/ipv4/ip_options.c | for (optptr++, l--; l>0; l--) |
optptr | 264 | net/ipv4/ip_options.c | if (*optptr != IPOPT_END) |
optptr | 266 | net/ipv4/ip_options.c | *optptr = IPOPT_END; |
optptr | 273 | net/ipv4/ip_options.c | optptr++; |
optptr | 276 | net/ipv4/ip_options.c | optlen = optptr[1]; |
optptr | 279 | net/ipv4/ip_options.c | pp_ptr = optptr; |
optptr | 282 | net/ipv4/ip_options.c | switch (*optptr) |
optptr | 288 | net/ipv4/ip_options.c | pp_ptr = optptr + 1; |
optptr | 291 | net/ipv4/ip_options.c | if (optptr[2] < 4) |
optptr | 293 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 299 | net/ipv4/ip_options.c | pp_ptr = optptr; |
optptr | 304 | net/ipv4/ip_options.c | if (optptr[2] != 4 || optlen < 7 || ((optlen-3) & 3)) |
optptr | 306 | net/ipv4/ip_options.c | pp_ptr = optptr + 1; |
optptr | 309 | net/ipv4/ip_options.c | memcpy(&opt->faddr, &optptr[3], 4); |
optptr | 311 | net/ipv4/ip_options.c | memmove(&optptr[3], &optptr[7], optlen-7); |
optptr | 313 | net/ipv4/ip_options.c | opt->is_strictroute = (optptr[0] == IPOPT_SSRR); |
optptr | 314 | net/ipv4/ip_options.c | opt->srr = optptr - iph; |
optptr | 319 | net/ipv4/ip_options.c | pp_ptr = optptr; |
optptr | 324 | net/ipv4/ip_options.c | pp_ptr = optptr + 1; |
optptr | 327 | net/ipv4/ip_options.c | if (optptr[2] < 4) |
optptr | 329 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 332 | net/ipv4/ip_options.c | if (optptr[2] <= optlen) |
optptr | 334 | net/ipv4/ip_options.c | if (optptr[2]+3 > optlen) |
optptr | 336 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 341 | net/ipv4/ip_options.c | memcpy(&optptr[optptr[2]-1], &skb->dev->pa_addr, 4); |
optptr | 344 | net/ipv4/ip_options.c | optptr[2] += 4; |
optptr | 347 | net/ipv4/ip_options.c | opt->rr = optptr - iph; |
optptr | 352 | net/ipv4/ip_options.c | pp_ptr = optptr; |
optptr | 357 | net/ipv4/ip_options.c | pp_ptr = optptr + 1; |
optptr | 360 | 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 | struct timestamp * ts = (struct timestamp*)(optptr+1); |
optptr | 371 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 377 | net/ipv4/ip_options.c | opt->ts = optptr - iph; |
optptr | 379 | net/ipv4/ip_options.c | timeptr = (__u32*)&optptr[ts->ptr-1]; |
optptr | 386 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 389 | net/ipv4/ip_options.c | opt->ts = optptr - iph; |
optptr | 392 | net/ipv4/ip_options.c | memcpy(&optptr[ts->ptr-1], &skb->dev->pa_addr, 4); |
optptr | 393 | net/ipv4/ip_options.c | timeptr = (__u32*)&optptr[ts->ptr+3]; |
optptr | 402 | net/ipv4/ip_options.c | pp_ptr = optptr + 2; |
optptr | 405 | net/ipv4/ip_options.c | opt->ts = optptr - iph; |
optptr | 408 | net/ipv4/ip_options.c | memcpy(&addr, &optptr[ts->ptr-1], 4); |
optptr | 412 | net/ipv4/ip_options.c | timeptr = (__u32*)&optptr[ts->ptr+3]; |
optptr | 419 | net/ipv4/ip_options.c | pp_ptr = optptr + 3; |
optptr | 434 | net/ipv4/ip_options.c | struct timestamp * ts = (struct timestamp*)(optptr+1); |
optptr | 437 | net/ipv4/ip_options.c | pp_ptr = optptr + 3; |
optptr | 440 | net/ipv4/ip_options.c | opt->ts = optptr - iph; |
optptr | 453 | net/ipv4/ip_options.c | pp_ptr = optptr; |
optptr | 459 | net/ipv4/ip_options.c | optptr += optlen; |
optptr | 474 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->srr-sizeof(struct iphdr); |
optptr | 475 | net/ipv4/ip_sockglue.c | memmove(optptr+7, optptr+3, optptr[1]-7); |
optptr | 476 | net/ipv4/ip_sockglue.c | memcpy(optptr+3, &opt->faddr, 4); |
optptr | 480 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->rr-sizeof(struct iphdr); |
optptr | 481 | net/ipv4/ip_sockglue.c | memset(&optptr[optptr[2]-1], 0, 4); |
optptr | 482 | net/ipv4/ip_sockglue.c | optptr[2] -= 4; |
optptr | 486 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->ts-sizeof(struct iphdr); |
optptr | 489 | net/ipv4/ip_sockglue.c | memset(&optptr[optptr[2]-1], 0, 4); |
optptr | 490 | net/ipv4/ip_sockglue.c | optptr[2] -= 4; |
optptr | 494 | net/ipv4/ip_sockglue.c | memset(&optptr[optptr[2]-1], 0, 4); |
optptr | 495 | net/ipv4/ip_sockglue.c | optptr[2] -= 4; |