Lines Matching defs:stc
3815 struct sctp_state_cookie *stc;
3851 stc = (struct sctp_state_cookie *)((caddr_t)ph +
3855 /* Fill in the stc cookie data */
3856 memcpy(stc, stc_in, sizeof(struct sctp_state_cookie));
5527 struct sctp_state_cookie stc;
5610 memset(&stc, 0, sizeof(struct sctp_state_cookie));
5614 stc.time_entered.tv_sec = now.tv_sec;
5615 stc.time_entered.tv_usec = now.tv_usec;
5620 stc.tie_tag_my_vtag = asoc->my_vtag_nonce;
5621 stc.tie_tag_peer_vtag = asoc->peer_vtag_nonce;
5622 stc.cookie_life = asoc->cookie_life;
5625 stc.tie_tag_my_vtag = 0;
5626 stc.tie_tag_peer_vtag = 0;
5628 stc.cookie_life = inp->sctp_ep.def_cookie_life;
5632 stc.myport = sh->dest_port;
5633 stc.peerport = sh->src_port;
5637 * stc.cookie_life. For now we should NOT honor any extension
5639 stc.site_scope = stc.local_scope = stc.loopback_scope = 0;
5641 stc.ipv6_addr_legal = 1;
5643 stc.ipv4_addr_legal = 0;
5645 stc.ipv4_addr_legal = 1;
5648 stc.ipv6_addr_legal = 0;
5649 stc.ipv4_addr_legal = 1;
5651 stc.ipv4_scope = 0;
5659 stc.address[0] = src4->sin_addr.s_addr;
5660 stc.address[1] = 0;
5661 stc.address[2] = 0;
5662 stc.address[3] = 0;
5663 stc.addr_type = SCTP_IPV4_ADDRESS;
5665 stc.laddress[0] = dst4->sin_addr.s_addr;
5666 stc.laddress[1] = 0;
5667 stc.laddress[2] = 0;
5668 stc.laddress[3] = 0;
5669 stc.laddr_type = SCTP_IPV4_ADDRESS;
5671 stc.scope_id = 0;
5674 stc.ipv4_scope = 1;
5678 stc.loopback_scope = 1;
5679 stc.ipv4_scope = 1;
5680 stc.site_scope = 1;
5681 stc.local_scope = 0;
5689 stc.addr_type = SCTP_IPV6_ADDRESS;
5690 memcpy(&stc.address, &src6->sin6_addr, sizeof(struct in6_addr));
5691 stc.scope_id = ntohs(in6_getscope(&src6->sin6_addr));
5693 stc.loopback_scope = 1;
5694 stc.local_scope = 0;
5695 stc.site_scope = 1;
5696 stc.ipv4_scope = 1;
5710 stc.local_scope = 0;
5711 stc.site_scope = 1;
5712 stc.ipv4_scope = 1;
5731 stc.site_scope = 1;
5733 memcpy(&stc.laddress, &dst6->sin6_addr, sizeof(struct in6_addr));
5734 stc.laddr_type = SCTP_IPV6_ADDRESS;
5750 stc.loopback_scope = asoc->scope.loopback_scope;
5751 stc.ipv4_scope = asoc->scope.ipv4_local_scope;
5752 stc.site_scope = asoc->scope.site_scope;
5753 stc.local_scope = asoc->scope.local_scope;
5774 stc.address[0] = sin->sin_addr.s_addr;
5775 stc.address[1] = 0;
5776 stc.address[2] = 0;
5777 stc.address[3] = 0;
5778 stc.addr_type = SCTP_IPV4_ADDRESS;
5795 stc.laddress[0] = net->ro._s_addr->address.sin.sin_addr.s_addr;
5796 stc.laddress[1] = 0;
5797 stc.laddress[2] = 0;
5798 stc.laddress[3] = 0;
5799 stc.laddr_type = SCTP_IPV4_ADDRESS;
5801 stc.scope_id = 0;
5807 memcpy(&stc.address, &sin6->sin6_addr,
5809 stc.addr_type = SCTP_IPV6_ADDRESS;
5810 stc.scope_id = sin6->sin6_scope_id;
5827 memcpy(&stc.laddress, &net->ro._s_addr->address.sin6.sin6_addr,
5829 stc.laddr_type = SCTP_IPV6_ADDRESS;
5835 stc.rcv_edmid = asoc->rcv_edmid;
5837 stc.rcv_edmid = inp->rcv_edmid;
5842 stc.peers_vtag = ntohl(init_chk->init.initiate_tag);
5844 memcpy(stc.identification, SCTP_VERSION_STRING,
5845 min(strlen(SCTP_VERSION_STRING), sizeof(stc.identification)));
5846 memset(stc.reserved, 0, SCTP_RESERVE_SPACE);
5897 stc.my_vtag = initack->init.initiate_tag;
6087 * and remove the individual uint8's from the stc structure. Then we
6088 * could just sifa in the address within the stc.. but for now this
6091 scp.ipv4_addr_legal = stc.ipv4_addr_legal;
6092 scp.ipv6_addr_legal = stc.ipv6_addr_legal;
6093 scp.loopback_scope = stc.loopback_scope;
6094 scp.ipv4_local_scope = stc.ipv4_scope;
6095 scp.local_scope = stc.local_scope;
6096 scp.site_scope = stc.site_scope;
6132 m_cookie = sctp_add_cookie(init_pkt, offset, m, 0, &stc, &signature);
6174 if (stc.loopback_scope) {