• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/dccp/

Lines Matching refs:to

49  * @dreq: request socket to use during connection setup, or NULL
102 * HC-Sender to the HC-Receiver; option numbers 192 through 255
103 * are for options sent from the HC-Receiver to the HC-Sender.
107 * The same applies to Ack Vectors, as these depend on the CCID.
151 * RFC 4340 13.1: "The precise time corresponding to
153 * zero to indicate absence of a meaningful timestamp.
205 /* Give precedence to the biggest ELAPSED_TIME */
279 void dccp_encode_value_var(const u64 value, u8 *to, const u8 len)
282 *to++ = (value & 0xFF0000000000ull) >> 40;
284 *to++ = (value & 0xFF00000000ull) >> 32;
286 *to++ = (value & 0xFF000000) >> 24;
288 *to++ = (value & 0xFF0000) >> 16;
290 *to++ = (value & 0xFF00) >> 8;
292 *to++ = (value & 0xFF);
305 unsigned char *to;
312 to = skb_push(skb, len + 2);
313 *to++ = option;
314 *to++ = len + 2;
316 memcpy(to, value, len);
360 unsigned char *to;
370 to = skb_push(skb, len);
371 *to++ = DCCPO_ELAPSED_TIME;
372 *to++ = len;
376 memcpy(to, &var16, 2);
379 memcpy(to, &var32, 4);
403 unsigned char *to;
424 to = skb_push(skb, len);
425 *to++ = DCCPO_TIMESTAMP_ECHO;
426 *to++ = len;
428 memcpy(to, &tstamp_echo, 4);
429 to += 4;
433 memcpy(to, &var16, 2);
436 memcpy(to, &var32, 4);
444 * Note that since we are using skb_push, this function needs to be called
445 * _after_ inserting the option it is supposed to influence (stack order).
461 * @val: NN value or SP array (preferred element first) to copy
463 * @repeat_first: whether to copy the first element of @val twice
464 * The last argument is used to construct Confirm options, where the preferred
467 * to copy twice, and avoid the overhead of cloning into a bigger array.
472 u8 tot_len, *to;
490 to = skb_push(skb, tot_len);
491 *to++ = type;
492 *to++ = tot_len;
493 *to++ = feat;
496 *to++ = *val;
498 memcpy(to, val, len);
502 /* The length of all options needs to be a multiple of 4 (5.8) */