• Home
  • Raw
  • Download

Lines Matching refs:stc

3957 	struct sctp_state_cookie *stc;  local
3995 stc = (struct sctp_state_cookie *)((caddr_t)ph +
4000 memcpy(stc, stc_in, sizeof(struct sctp_state_cookie));
6003 struct sctp_state_cookie stc; local
6095 memset(&stc, 0, sizeof(struct sctp_state_cookie));
6099 stc.time_entered.tv_sec = now.tv_sec;
6100 stc.time_entered.tv_usec = now.tv_usec;
6105 stc.tie_tag_my_vtag = asoc->my_vtag_nonce;
6106 stc.tie_tag_peer_vtag = asoc->peer_vtag_nonce;
6107 stc.cookie_life = asoc->cookie_life;
6110 stc.tie_tag_my_vtag = 0;
6111 stc.tie_tag_peer_vtag = 0;
6113 stc.cookie_life = inp->sctp_ep.def_cookie_life;
6117 stc.myport = sh->dest_port;
6118 stc.peerport = sh->src_port;
6124 stc.site_scope = stc.local_scope = stc.loopback_scope = 0;
6126 stc.ipv6_addr_legal = 1;
6128 stc.ipv4_addr_legal = 0;
6130 stc.ipv4_addr_legal = 1;
6133 stc.conn_addr_legal = 0;
6136 stc.ipv6_addr_legal = 0;
6139 stc.conn_addr_legal = 1;
6140 stc.ipv4_addr_legal = 0;
6142 stc.conn_addr_legal = 0;
6143 stc.ipv4_addr_legal = 1;
6146 stc.ipv4_addr_legal = 1;
6149 stc.ipv4_scope = 0;
6157 stc.address[0] = src4->sin_addr.s_addr;
6158 stc.address[1] = 0;
6159 stc.address[2] = 0;
6160 stc.address[3] = 0;
6161 stc.addr_type = SCTP_IPV4_ADDRESS;
6163 stc.laddress[0] = dst4->sin_addr.s_addr;
6164 stc.laddress[1] = 0;
6165 stc.laddress[2] = 0;
6166 stc.laddress[3] = 0;
6167 stc.laddr_type = SCTP_IPV4_ADDRESS;
6169 stc.scope_id = 0;
6172 stc.ipv4_scope = 1;
6176 stc.loopback_scope = 1;
6177 stc.ipv4_scope = 1;
6178 stc.site_scope = 1;
6179 stc.local_scope = 0;
6187 stc.addr_type = SCTP_IPV6_ADDRESS;
6188 memcpy(&stc.address, &src6->sin6_addr, sizeof(struct in6_addr));
6190 stc.scope_id = ntohs(in6_getscope(&src6->sin6_addr));
6192 stc.scope_id = 0;
6195 stc.loopback_scope = 1;
6196 stc.local_scope = 0;
6197 stc.site_scope = 1;
6198 stc.ipv4_scope = 1;
6212 stc.scope_id = src6->sin6_addr.s6_addr16[1];
6214 stc.local_scope = 0;
6215 stc.site_scope = 1;
6216 stc.ipv4_scope = 1;
6232 stc.site_scope = 1;
6234 memcpy(&stc.laddress, &dst6->sin6_addr, sizeof(struct in6_addr));
6235 stc.laddr_type = SCTP_IPV6_ADDRESS;
6243 stc.address[0] = 0;
6244 stc.address[1] = 0;
6245 stc.address[2] = 0;
6246 stc.address[3] = 0;
6247 memcpy(&stc.address, &srcconn->sconn_addr, sizeof(void *));
6248 stc.addr_type = SCTP_CONN_ADDRESS;
6250 stc.laddress[0] = 0;
6251 stc.laddress[1] = 0;
6252 stc.laddress[2] = 0;
6253 stc.laddress[3] = 0;
6254 memcpy(&stc.laddress, &dstconn->sconn_addr, sizeof(void *));
6255 stc.laddr_type = SCTP_CONN_ADDRESS;
6257 stc.scope_id = 0;
6273 stc.loopback_scope = asoc->scope.loopback_scope;
6274 stc.ipv4_scope = asoc->scope.ipv4_local_scope;
6275 stc.site_scope = asoc->scope.site_scope;
6276 stc.local_scope = asoc->scope.local_scope;
6297 stc.address[0] = sin->sin_addr.s_addr;
6298 stc.address[1] = 0;
6299 stc.address[2] = 0;
6300 stc.address[3] = 0;
6301 stc.addr_type = SCTP_IPV4_ADDRESS;
6319 stc.laddress[0] = net->ro._s_addr->address.sin.sin_addr.s_addr;
6320 stc.laddress[1] = 0;
6321 stc.laddress[2] = 0;
6322 stc.laddress[3] = 0;
6323 stc.laddr_type = SCTP_IPV4_ADDRESS;
6325 stc.scope_id = 0;
6331 memcpy(&stc.address, &sin6->sin6_addr,
6333 stc.addr_type = SCTP_IPV6_ADDRESS;
6334 stc.scope_id = sin6->sin6_scope_id;
6351 memcpy(&stc.laddress, &net->ro._s_addr->address.sin6.sin6_addr,
6353 stc.laddr_type = SCTP_IPV6_ADDRESS;
6359 stc.address[0] = 0;
6360 stc.address[1] = 0;
6361 stc.address[2] = 0;
6362 stc.address[3] = 0;
6363 memcpy(&stc.address, &sconn->sconn_addr, sizeof(void *));
6364 stc.addr_type = SCTP_CONN_ADDRESS;
6365 stc.laddress[0] = 0;
6366 stc.laddress[1] = 0;
6367 stc.laddress[2] = 0;
6368 stc.laddress[3] = 0;
6369 memcpy(&stc.laddress, &sconn->sconn_addr, sizeof(void *));
6370 stc.laddr_type = SCTP_CONN_ADDRESS;
6371 stc.scope_id = 0;
6379 stc.peers_vtag = ntohl(init_chk->init.initiate_tag);
6381 memcpy(stc.identification, SCTP_VERSION_STRING,
6382 min(strlen(SCTP_VERSION_STRING), sizeof(stc.identification)));
6383 memset(stc.reserved, 0, SCTP_RESERVE_SPACE);
6429 stc.my_vtag = initack->init.initiate_tag;
6608 scp.ipv4_addr_legal = stc.ipv4_addr_legal;
6609 scp.ipv6_addr_legal = stc.ipv6_addr_legal;
6611 scp.conn_addr_legal = stc.conn_addr_legal;
6613 scp.loopback_scope = stc.loopback_scope;
6614 scp.ipv4_local_scope = stc.ipv4_scope;
6615 scp.local_scope = stc.local_scope;
6616 scp.site_scope = stc.site_scope;
6652 m_cookie = sctp_add_cookie(init_pkt, offset, m, 0, &stc, &signature);
6692 if (stc.loopback_scope) {