Home | History | Annotate | Download | only in netinet

Lines Matching defs:stc

233 	struct sctp_state_cookie *stc;
261 stc = (struct sctp_state_cookie *)((vaddr_t)ph +
265 /* Fill in the stc cookie data */
266 *stc = *stc_in;
3263 struct sctp_state_cookie stc;
3314 SCTP_GETTIME_TIMEVAL(&stc.time_entered);
3322 stc.tie_tag_my_vtag = asoc->my_vtag_nonce;
3326 stc.tie_tag_peer_vtag = asoc->peer_vtag_nonce;
3328 stc.cookie_life = asoc->cookie_life;
3345 stc.tie_tag_my_vtag = 0;
3346 stc.tie_tag_peer_vtag = 0;
3348 stc.cookie_life = inp->sctp_ep.def_cookie_life;
3352 stc.myport = sh->dest_port;
3353 stc.peerport = sh->src_port;
3357 * to stc.cookie_life. For now we should NOT honor any extension
3359 stc.site_scope = stc.local_scope = stc.loopback_scope = 0;
3364 stc.ipv6_addr_legal = 1;
3375 stc.ipv4_addr_legal = 1;
3378 stc.ipv4_addr_legal = 0;
3382 stc.ipv4_addr_legal = 1;
3383 stc.ipv6_addr_legal = 0;
3387 stc.ipv4_scope = 1;
3389 stc.ipv4_scope = 0;
3407 stc.address[0] = sin->sin_addr.s_addr;
3408 stc.address[1] = 0;
3409 stc.address[2] = 0;
3410 stc.address[3] = 0;
3411 stc.addr_type = SCTP_IPV4_ADDRESS;
3421 stc.laddress[0] = addr.s_addr;
3422 stc.laddress[1] = 0;
3423 stc.laddress[2] = 0;
3424 stc.laddress[3] = 0;
3425 stc.laddr_type = SCTP_IPV4_ADDRESS;
3427 stc.scope_id = 0;
3430 stc.ipv4_scope = 1;
3433 stc.ipv4_scope = 1;
3437 stc.loopback_scope = 1;
3438 stc.ipv4_scope = 1;
3439 stc.site_scope = 1;
3440 stc.local_scope = 1;
3451 memcpy(&stc.address, &sin6->sin6_addr,
3454 stc.addr_type = SCTP_IPV6_ADDRESS;
3455 stc.scope_id = 0;
3457 stc.loopback_scope = 1;
3458 stc.local_scope = 1;
3459 stc.site_scope = 1;
3460 stc.ipv4_scope = 1;
3474 stc.local_scope = 0;
3475 stc.site_scope = 1;
3476 stc.ipv4_scope = 1;
3492 stc.scope_id = sin6->sin6_scope_id;
3499 stc.site_scope = 1;
3509 memcpy(&stc.laddress, &addr, sizeof(struct in6_addr));
3510 stc.laddr_type = SCTP_IPV6_ADDRESS;
3516 stc.loopback_scope = asoc->loopback_scope;
3517 stc.ipv4_scope = asoc->ipv4_local_scope;
3518 stc.site_scope = asoc->site_scope;
3519 stc.local_scope = asoc->local_scope;
3534 memcpy(&stc.address[0], to, sizeof(struct in_addr));
3535 stc.address[1] = 0;
3536 stc.address[2] = 0;
3537 stc.address[3] = 0;
3538 stc.addr_type = SCTP_IPV4_ADDRESS;
3550 stc.laddress[0] = net->_s_addr.sin.sin_addr.s_addr;
3551 stc.laddress[1] = 0;
3552 stc.laddress[2] = 0;
3553 stc.laddress[3] = 0;
3554 stc.laddr_type = SCTP_IPV4_ADDRESS;
3556 memcpy(&stc.address, &to->sa_data,
3558 stc.addr_type = SCTP_IPV6_ADDRESS;
3568 memcpy(&stc.laddress, &net->_s_addr.sin6.sin6_addr,
3570 stc.laddr_type = SCTP_IPV6_ADDRESS;
3579 stc.peers_vtag = init_chk->init.initiate_tag;
3582 strncpy(stc.identification, SCTP_VERSION_STRING,
3583 uimin(strlen(SCTP_VERSION_STRING), sizeof(stc.identification)));
3602 stc.my_vtag = initackm_out->msg.init.initiate_tag;
3698 if ((stc.loopback_scope == 0) &&
3708 stc.ipv4_addr_legal, stc.ipv6_addr_legal,
3709 stc.loopback_scope, stc.ipv4_scope,
3710 stc.local_scope, stc.site_scope) == 0) {
3721 if ((stc.loopback_scope == 0) &&
3731 stc.ipv4_addr_legal,
3732 stc.ipv6_addr_legal,
3733 stc.loopback_scope, stc.ipv4_scope,
3734 stc.local_scope, stc.site_scope) == 0) {
3754 stc.ipv4_addr_legal, stc.ipv6_addr_legal,
3755 stc.loopback_scope, stc.ipv4_scope,
3756 stc.local_scope, stc.site_scope) == 0) {
3777 stc.ipv4_addr_legal, stc.ipv6_addr_legal,
3778 stc.loopback_scope, stc.ipv4_scope,
3779 stc.local_scope, stc.site_scope) == 0) {
3840 sizeof(struct sctphdr), &stc);