Lines Matching refs:rspace
131 char rspace[3 + 4 * NROUTES + 1]; /* record route space */ in main() local
494 memset(rspace, 0, sizeof(rspace)); in main()
495 rspace[0] = IPOPT_NOP; in main()
496 rspace[1+IPOPT_OPTVAL] = IPOPT_RR; in main()
497 rspace[1+IPOPT_OLEN] = sizeof(rspace)-1; in main()
498 rspace[1+IPOPT_OFFSET] = IPOPT_MINOFF; in main()
500 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, sizeof(rspace)) < 0) { in main()
506 memset(rspace, 0, sizeof(rspace)); in main()
507 rspace[0] = IPOPT_TIMESTAMP; in main()
508 rspace[1] = (ts_type==IPOPT_TS_TSONLY ? 40 : 36); in main()
509 rspace[2] = 5; in main()
510 rspace[3] = ts_type; in main()
513 rspace[1] = 4+nroute*8; in main()
515 *(__u32*)&rspace[4+i*8] = route[i]; in main()
517 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) { in main()
518 rspace[3] = 2; in main()
519 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) { in main()
528 memset(rspace, 0, sizeof(rspace)); in main()
529 rspace[0] = IPOPT_NOOP; in main()
530 rspace[1+IPOPT_OPTVAL] = (options & F_SO_DONTROUTE) ? IPOPT_SSRR in main()
532 rspace[1+IPOPT_OLEN] = 3 + nroute*4; in main()
533 rspace[1+IPOPT_OFFSET] = IPOPT_MINOFF; in main()
535 *(__u32*)&rspace[4+i*4] = route[i]; in main()
537 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, 4 + nroute*4) < 0) { in main()