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