Lines Matching refs:srrptr
551 int srrptr, srrspace; in ip_forward_options() local
555 for ( srrptr = optptr[2], srrspace = optptr[1]; in ip_forward_options()
556 srrptr <= srrspace; in ip_forward_options()
557 srrptr += 4 in ip_forward_options()
559 if (srrptr + 3 > srrspace) in ip_forward_options()
561 if (memcmp(&opt->nexthop, &optptr[srrptr-1], 4) == 0) in ip_forward_options()
564 if (srrptr + 3 <= srrspace) { in ip_forward_options()
567 ip_rt_get_source(&optptr[srrptr-1], skb, rt); in ip_forward_options()
568 optptr[2] = srrptr+4; in ip_forward_options()
588 int srrspace, srrptr; in ip_options_rcv_srr() local
611 for (srrptr = optptr[2], srrspace = optptr[1]; srrptr <= srrspace; srrptr += 4) { in ip_options_rcv_srr()
612 if (srrptr + 3 > srrspace) { in ip_options_rcv_srr()
616 memcpy(&nexthop, &optptr[srrptr-1], 4); in ip_options_rcv_srr()
634 if (srrptr <= srrspace) { in ip_options_rcv_srr()