Lines Matching refs:new_inp
1489 sctp_move_pcb_and_assoc(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp,
1499 SCTP_INP_WLOCK(new_inp);
1502 new_inp->sctp_ep.time_of_secret_change =
1504 memcpy(new_inp->sctp_ep.secret_key, old_inp->sctp_ep.secret_key,
1506 new_inp->sctp_ep.current_secret_number =
1508 new_inp->sctp_ep.last_secret_number =
1510 new_inp->sctp_ep.size_of_a_cookie = old_inp->sctp_ep.size_of_a_cookie;
1513 lport = new_inp->sctp_lport = old_inp->sctp_lport;
1519 /* Now insert the new_inp into the TCP connected hash */
1523 LIST_INSERT_HEAD(head, new_inp, sctp_hash);
1526 LIST_INSERT_HEAD(&new_inp->sctp_asoc_list, stcb, sctp_tcblist);
1533 stcb->sctp_socket = new_inp->sctp_socket;
1534 stcb->sctp_ep = new_inp;
1535 if (new_inp->sctp_tcbhash != NULL) {
1537 new_inp->sctp_tcbhash);
1538 new_inp->sctp_tcbhash = NULL;
1540 if ((new_inp->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) == 0) {
1562 LIST_INSERT_HEAD(&new_inp->sctp_addr_list, laddr,
1564 new_inp->laddr_count++;
1567 SCTP_INP_WUNLOCK(new_inp);