Lines Matching refs:cookie
140 printf("Got a cookie:");
141 /* Print first 20 bytes of cookie */
148 conn->cookie.type = htons(type);
149 conn->cookie.length = htons(len);
150 memcpy(conn->cookie.payload, data, len);
458 /* Copy cookie and relay-ID if needed */
459 if (conn->cookie.type) {
461 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
462 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
463 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
464 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;