Lines Matching refs:inp

50 	struct sctp_inpcb *inp;  in sctp_can_peel_off()  local
58 inp = (struct sctp_inpcb *)head->so_pcb; in sctp_can_peel_off()
59 if (inp == NULL) { in sctp_can_peel_off()
63 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_can_peel_off()
64 (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_can_peel_off()
65 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EOPNOTSUPP); in sctp_can_peel_off()
68 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_can_peel_off()
70 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); in sctp_can_peel_off()
77 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); in sctp_can_peel_off()
88 struct sctp_inpcb *inp, *n_inp; in sctp_do_peeloff() local
92 inp = (struct sctp_inpcb *)head->so_pcb; in sctp_do_peeloff()
93 if (inp == NULL) { in sctp_do_peeloff()
94 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EFAULT); in sctp_do_peeloff()
97 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_do_peeloff()
99 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); in sctp_do_peeloff()
107 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); in sctp_do_peeloff()
115 (SCTP_PCB_COPY_FLAGS & inp->sctp_flags)); in sctp_do_peeloff()
117 n_inp->sctp_features = inp->sctp_features; in sctp_do_peeloff()
118 n_inp->sctp_mobility_features = inp->sctp_mobility_features; in sctp_do_peeloff()
119 n_inp->sctp_frag_point = inp->sctp_frag_point; in sctp_do_peeloff()
120 n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off; in sctp_do_peeloff()
121 n_inp->ecn_supported = inp->ecn_supported; in sctp_do_peeloff()
122 n_inp->prsctp_supported = inp->prsctp_supported; in sctp_do_peeloff()
123 n_inp->auth_supported = inp->auth_supported; in sctp_do_peeloff()
124 n_inp->asconf_supported = inp->asconf_supported; in sctp_do_peeloff()
125 n_inp->reconfig_supported = inp->reconfig_supported; in sctp_do_peeloff()
126 n_inp->nrsack_supported = inp->nrsack_supported; in sctp_do_peeloff()
127 n_inp->pktdrop_supported = inp->pktdrop_supported; in sctp_do_peeloff()
128 n_inp->partial_delivery_point = inp->partial_delivery_point; in sctp_do_peeloff()
129 n_inp->sctp_context = inp->sctp_context; in sctp_do_peeloff()
130 n_inp->max_cwnd = inp->max_cwnd; in sctp_do_peeloff()
131 n_inp->local_strreset_support = inp->local_strreset_support; in sctp_do_peeloff()
136 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); in sctp_do_peeloff()
140 sctp_copy_chunklist(inp->sctp_ep.local_auth_chunks); in sctp_do_peeloff()
141 (void)sctp_copy_skeylist(&inp->sctp_ep.shared_keys, in sctp_do_peeloff()
147 sctp_move_pcb_and_assoc(inp, n_inp, stcb); in sctp_do_peeloff()
151 sctp_pull_off_control_to_new_inp(inp, n_inp, stcb, SBL_WAIT); in sctp_do_peeloff()