Lines Matching refs:cookie
270 sctp_cookie_param_t *cookie; in sctp_make_init_ack() local
289 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
291 if (!cookie) in sctp_make_init_ack()
321 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
348 kfree(cookie); in sctp_make_init_ack()
393 void *cookie; in sctp_make_cookie_echo() local
396 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
404 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
1251 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local
1280 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
1287 cookie->c = asoc->c; in sctp_pack_cookie()
1289 cookie->c.raw_addr_list_len = addrs_len; in sctp_pack_cookie()
1292 cookie->c.prsctp_capable = asoc->peer.prsctp_capable; in sctp_pack_cookie()
1295 cookie->c.adaption_ind = asoc->peer.adaption_ind; in sctp_pack_cookie()
1298 do_gettimeofday(&cookie->c.expiration); in sctp_pack_cookie()
1299 TIMEVAL_ADD(asoc->cookie_life, cookie->c.expiration); in sctp_pack_cookie()
1302 memcpy(&cookie->c.peer_init[0], init_chunk->chunk_hdr, in sctp_pack_cookie()
1306 memcpy((__u8 *)&cookie->c.peer_init[0] + in sctp_pack_cookie()
1311 sg.page = virt_to_page(&cookie->c); in sctp_pack_cookie()
1312 sg.offset = (unsigned long)(&cookie->c) % PAGE_SIZE; in sctp_pack_cookie()
1318 &sg, 1, cookie->signature); in sctp_pack_cookie()
1333 struct sctp_signed_cookie *cookie; in sctp_unpack_cookie() local
1360 cookie = chunk->subh.cookie_hdr; in sctp_unpack_cookie()
1361 bear_cookie = &cookie->c; in sctp_unpack_cookie()
1377 if (memcmp(digest, cookie->signature, SCTP_SIGNATURE_SIZE)) { in sctp_unpack_cookie()
1384 if (memcmp(digest, cookie->signature, SCTP_SIGNATURE_SIZE)) { in sctp_unpack_cookie()
1798 char *cookie; in sctp_process_init() local
1858 cookie = asoc->peer.cookie; in sctp_process_init()
1859 if (cookie) { in sctp_process_init()
1860 asoc->peer.cookie = kmalloc(asoc->peer.cookie_len, gfp); in sctp_process_init()
1861 if (!asoc->peer.cookie) in sctp_process_init()
1863 memcpy(asoc->peer.cookie, cookie, asoc->peer.cookie_len); in sctp_process_init()
2016 asoc->peer.cookie = param.cookie->body; in sctp_process_param()