Lines Matching defs:so

687 		 * Bump up the refcount so that when the timer completes it
1060 * addresses match this address (to). If so we update p_ep to point
1112 /* We are NOT bound all, so look further */
1302 * UN-lock so we can do proper locking here this occurs when
1743 * ok, not bound to all so see if we can find a EP bound to this
1971 * this guy. If so we can return the first one that we find. This
1972 * may NOT be the correct one so the caller should be wary on the
1976 * its open to bind, so this is good enough.
2237 * cases so I peg it.
2423 sctp_inpcb_alloc(struct socket *so, uint32_t vrf_id)
2454 inp->sctp_socket = so;
2455 inp->ip_inp.inp.inp_socket = so;
2456 inp->ip_inp.inp.inp_cred = crhold(so->so_cred);
2458 if (INP_SOCKAF(so) == AF_INET6) {
2468 inp->partial_delivery_point = SCTP_SB_LIMIT_RCV(so) >> SCTP_PARTIAL_DELIVERY_SHIFT;
2483 inp->fibnum = so->so_fibnum;
2493 error = ipsec_init_policy(so, &inp->ip_inp.inp.inp_sp);
2505 so->so_pcb = (caddr_t)inp;
2507 if (SCTP_SO_TYPE(so) == SOCK_SEQPACKET) {
2512 /* SCTP_SET_SO_NBIO(so); */
2513 } else if (SCTP_SO_TYPE(so) == SOCK_STREAM) {
2518 SCTP_CLEAR_SO_NBIO(so);
2525 so->so_pcb = NULL;
2548 so->so_pcb = NULL;
2694 /* make it so new data pours into the new socket */
2718 * only have one connection? Probably not :> so lets get rid of it
2740 /* Subset bound, so copy in the laddr list from the old_inp */
2832 sctp_inpcb_bind(struct socket *so, struct sockaddr *addr,
2847 inp = (struct sctp_inpcb *)so->so_pcb;
2848 ip_inp = (struct inpcb *)so->so_pcb;
2952 * Did the caller specify a port? if so we must see if an ep
2973 * that we are not bound so inp_tmp should
2976 * so we must lower it.
2999 * that we are not bound so inp_tmp should
3002 * so we must lower it.
3107 /* ok we look clear to give out this port, so lets setup the binding */
3109 /* binding to all addresses, so just set in the proper flags */
3311 * When its put in the refcnt is incremented so decr
3335 struct socket *so;
3349 so = inp->sctp_socket;
3364 /* socket is gone, so no more wakeups allowed */
3429 (so && (so->so_rcv.sb_cc > 0))) {
3458 * so I send shutdown
3657 if (so)
3658 so->so_rcv.sb_cc -= sq->length;
3792 * table until after the association is built so it can't be
4144 * list, make it so.
4680 struct socket *so;
4709 so = NULL;
4711 so = inp->sctp_socket;
4716 * if so we abort early if a reader or writer is still in the way.
4721 * is it the timer driving us? if so are the reader/writers
4782 if (sctp_stcb_is_feature_on(inp, stcb, SCTP_PCB_FLAGS_PDAPIEVNT) && (so != NULL)) {
4829 so = NULL;
4830 if (so) {
4832 sctp_sorwakeup(inp, so);
4833 sctp_sowwakeup(inp, so);
4866 so = NULL;
4877 if (so) {
4878 SOCK_LOCK(so);
4879 if (so->so_rcv.sb_cc == 0) {
4880 so->so_state &= ~(SS_ISCONNECTING |
4885 socantrcvmore_locked(so);
4886 sctp_sowwakeup(inp, so);
4887 sctp_sorwakeup(inp, so);
4888 SCTP_SOWAKEUP(so);
4959 if (so) {
5022 if (so) {
5055 if (so) {
5312 /* invalid family, so it's unreachable */
6136 /* does the source address already exist? if so skip it */
6734 /* Must be confirmed, so queue to set */
6748 * primary is the first on the list, make it so.
6778 * removed since we have the read lock, so they can't be