Author: tuexen
Date: Sat Jul  6 09:17:54 2013
New Revision: 252882
URL: http://svnweb.freebsd.org/changeset/base/252882

Log:
  MFC r237565:
  Whitespace cleanup.

Modified:
  stable/9/sys/netinet/sctp_indata.c
  stable/9/sys/netinet/sctp_input.c
  stable/9/sys/netinet/sctp_output.c
  stable/9/sys/netinet/sctp_sysctl.c
  stable/9/sys/netinet/sctp_sysctl.h
  stable/9/sys/netinet/sctp_usrreq.c
  stable/9/sys/netinet/sctputil.c
  stable/9/sys/netinet6/sctp6_usrreq.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_indata.c
==============================================================================
--- stable/9/sys/netinet/sctp_indata.c  Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_indata.c  Sat Jul  6 09:17:54 2013        
(r252882)
@@ -1529,7 +1529,7 @@ sctp_process_a_data_chunk(struct sctp_tc
                 */
                if (stcb->sctp_socket->so_rcv.sb_cc) {
                        /* some to read, wake-up */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        struct socket *so;
 
                        so = SCTP_INP_SO(stcb->sctp_ep);
@@ -1545,7 +1545,7 @@ sctp_process_a_data_chunk(struct sctp_tc
                        }
 #endif
                        sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                }
@@ -3982,7 +3982,7 @@ sctp_express_handle_sack(struct sctp_tcb
        }
        /* sa_ignore NO_NULL_CHK */
        if (stcb->sctp_socket) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                struct socket *so;
 
 #endif
@@ -3991,7 +3991,7 @@ sctp_express_handle_sack(struct sctp_tcb
                        /* sa_ignore NO_NULL_CHK */
                        sctp_wakeup_log(stcb, 1, SCTP_WAKESND_FROM_SACK);
                }
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(stcb->sctp_ep);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -4005,7 +4005,7 @@ sctp_express_handle_sack(struct sctp_tcb
                }
 #endif
                sctp_sowwakeup_locked(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        } else {
@@ -4734,7 +4734,7 @@ sctp_handle_sack(struct mbuf *m, int off
        }
        /* sa_ignore NO_NULL_CHK */
        if ((wake_him) && (stcb->sctp_socket)) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                struct socket *so;
 
 #endif
@@ -4742,7 +4742,7 @@ sctp_handle_sack(struct mbuf *m, int off
                if (SCTP_BASE_SYSCTL(sctp_logging_level) & 
SCTP_WAKE_LOGGING_ENABLE) {
                        sctp_wakeup_log(stcb, wake_him, SCTP_WAKESND_FROM_SACK);
                }
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(stcb->sctp_ep);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -4756,7 +4756,7 @@ sctp_handle_sack(struct mbuf *m, int off
                }
 #endif
                sctp_sowwakeup_locked(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        } else {

Modified: stable/9/sys/netinet/sctp_input.c
==============================================================================
--- stable/9/sys/netinet/sctp_input.c   Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_input.c   Sat Jul  6 09:17:54 2013        
(r252882)
@@ -757,7 +757,7 @@ static void
 sctp_handle_abort(struct sctp_abort_chunk *abort,
     struct sctp_tcb *stcb, struct sctp_nets *net)
 {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -807,7 +807,7 @@ sctp_handle_abort(struct sctp_abort_chun
 #ifdef SCTP_ASOCLOG_OF_TSNS
        sctp_print_out_track_log(stcb);
 #endif
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        so = SCTP_INP_SO(stcb->sctp_ep);
        atomic_add_int(&stcb->asoc.refcnt, 1);
        SCTP_TCB_UNLOCK(stcb);
@@ -818,7 +818,7 @@ sctp_handle_abort(struct sctp_abort_chun
        stcb->asoc.state |= SCTP_STATE_WAS_ABORTED;
        (void)sctp_free_assoc(stcb->sctp_ep, stcb, SCTP_NORMAL_PROC,
            SCTP_FROM_SCTP_INPUT + SCTP_LOC_6);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        SCTPDBG(SCTP_DEBUG_INPUT2, "sctp_handle_abort: finished\n");
@@ -860,7 +860,7 @@ sctp_handle_shutdown(struct sctp_shutdow
        struct sctp_association *asoc;
        int some_on_streamwheel;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -892,7 +892,7 @@ sctp_handle_shutdown(struct sctp_shutdow
                asoc->control_pdapi->pdapi_aborted = 1;
                asoc->control_pdapi = NULL;
                SCTP_INP_READ_UNLOCK(stcb->sctp_ep);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(stcb->sctp_ep);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -906,7 +906,7 @@ sctp_handle_shutdown(struct sctp_shutdow
                }
 #endif
                sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        }
@@ -966,7 +966,7 @@ sctp_handle_shutdown_ack(struct sctp_shu
 {
        struct sctp_association *asoc;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
        so = SCTP_INP_SO(stcb->sctp_ep);
@@ -1000,7 +1000,7 @@ sctp_handle_shutdown_ack(struct sctp_shu
                asoc->control_pdapi->pdapi_aborted = 1;
                asoc->control_pdapi = NULL;
                SCTP_INP_READ_UNLOCK(stcb->sctp_ep);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
@@ -1013,7 +1013,7 @@ sctp_handle_shutdown_ack(struct sctp_shu
                }
 #endif
                sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        }
@@ -1037,7 +1037,7 @@ sctp_handle_shutdown_ack(struct sctp_shu
        }
        SCTP_STAT_INCR_COUNTER32(sctps_shutdown);
        /* free the TCB but first save off the ep */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        atomic_add_int(&stcb->asoc.refcnt, 1);
        SCTP_TCB_UNLOCK(stcb);
        SCTP_SOCKET_LOCK(so, 1);
@@ -1046,7 +1046,7 @@ sctp_handle_shutdown_ack(struct sctp_shu
 #endif
        (void)sctp_free_assoc(stcb->sctp_ep, stcb, SCTP_NORMAL_PROC,
            SCTP_FROM_SCTP_INPUT + SCTP_LOC_10);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
 }
@@ -1132,7 +1132,7 @@ sctp_handle_error(struct sctp_chunkhdr *
        struct sctp_association *asoc;
        int adjust;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -1195,7 +1195,7 @@ sctp_handle_error(struct sctp_chunkhdr *
                                    asoc->max_init_times) {
                                        sctp_abort_notification(stcb, 0, 0, 
NULL, SCTP_SO_NOT_LOCKED);
                                        /* now free the asoc */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        so = SCTP_INP_SO(stcb->sctp_ep);
                                        atomic_add_int(&stcb->asoc.refcnt, 1);
                                        SCTP_TCB_UNLOCK(stcb);
@@ -1205,7 +1205,7 @@ sctp_handle_error(struct sctp_chunkhdr *
 #endif
                                        (void)sctp_free_assoc(stcb->sctp_ep, 
stcb, SCTP_NORMAL_PROC,
                                            SCTP_FROM_SCTP_INPUT + SCTP_LOC_11);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                                        return (-1);
@@ -1580,7 +1580,7 @@ sctp_process_cookie_existing(struct mbuf
                            (stcb->sctp_ep->sctp_flags & 
SCTP_PCB_FLAGS_IN_TCPPOOL)) &&
                            (inp->sctp_socket->so_qlimit == 0)
                            ) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                struct socket *so;
 
 #endif
@@ -1592,7 +1592,7 @@ sctp_process_cookie_existing(struct mbuf
                                 */
                                stcb->sctp_ep->sctp_flags |=
                                    SCTP_PCB_FLAGS_CONNECTED;
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                so = SCTP_INP_SO(stcb->sctp_ep);
                                atomic_add_int(&stcb->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK(stcb);
@@ -1605,7 +1605,7 @@ sctp_process_cookie_existing(struct mbuf
                                }
 #endif
                                soisconnected(stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                        }
@@ -1798,13 +1798,13 @@ sctp_process_cookie_existing(struct mbuf
                        if (((stcb->sctp_ep->sctp_flags & 
SCTP_PCB_FLAGS_TCPTYPE) ||
                            (stcb->sctp_ep->sctp_flags & 
SCTP_PCB_FLAGS_IN_TCPPOOL)) &&
                            (inp->sctp_socket->so_qlimit == 0)) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                struct socket *so;
 
 #endif
                                stcb->sctp_ep->sctp_flags |=
                                    SCTP_PCB_FLAGS_CONNECTED;
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                so = SCTP_INP_SO(stcb->sctp_ep);
                                atomic_add_int(&stcb->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK(stcb);
@@ -1817,7 +1817,7 @@ sctp_process_cookie_existing(struct mbuf
                                }
 #endif
                                soisconnected(stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                        }
@@ -2029,7 +2029,7 @@ sctp_process_cookie_new(struct mbuf *m, 
        struct sockaddr_in6 *sin6;
 
 #endif
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
        so = SCTP_INP_SO(inp);
@@ -2133,14 +2133,14 @@ sctp_process_cookie_new(struct mbuf *m, 
                    sh, op_err,
                    use_mflowid, mflowid,
                    vrf_id, port);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
                SCTP_TCB_LOCK(stcb);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC,
                    SCTP_FROM_SCTP_INPUT + SCTP_LOC_16);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
@@ -2165,13 +2165,13 @@ sctp_process_cookie_new(struct mbuf *m, 
                retval = 0;
        if (retval < 0) {
                atomic_add_int(&stcb->asoc.refcnt, 1);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
                SCTP_TCB_LOCK(stcb);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_INPUT + SCTP_LOC_16);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
@@ -2182,13 +2182,13 @@ sctp_process_cookie_new(struct mbuf *m, 
            init_offset + sizeof(struct sctp_init_chunk), initack_offset, sh,
            init_src)) {
                atomic_add_int(&stcb->asoc.refcnt, 1);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
                SCTP_TCB_LOCK(stcb);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_INPUT + SCTP_LOC_17);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
@@ -2211,13 +2211,13 @@ sctp_process_cookie_new(struct mbuf *m, 
                        SCTPDBG(SCTP_DEBUG_AUTH1,
                            "COOKIE-ECHO: AUTH failed\n");
                        atomic_add_int(&stcb->asoc.refcnt, 1);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_TCB_UNLOCK(stcb);
                        SCTP_SOCKET_LOCK(so, 1);
                        SCTP_TCB_LOCK(stcb);
 #endif
                        (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_INPUT + SCTP_LOC_18);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                        atomic_subtract_int(&stcb->asoc.refcnt, 1);
@@ -2274,13 +2274,13 @@ sctp_process_cookie_new(struct mbuf *m, 
 #endif
        default:
                atomic_add_int(&stcb->asoc.refcnt, 1);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
                SCTP_TCB_LOCK(stcb);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_INPUT + SCTP_LOC_19);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
@@ -2301,7 +2301,7 @@ sctp_process_cookie_new(struct mbuf *m, 
                 * a bit of protection is worth having..
                 */
                stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED;
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
                SCTP_SOCKET_LOCK(so, 1);
@@ -2313,7 +2313,7 @@ sctp_process_cookie_new(struct mbuf *m, 
                }
 #endif
                soisconnected(stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        } else if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) &&
@@ -2780,7 +2780,7 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                        if (so == NULL) {
                                struct mbuf *op_err;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                struct socket *pcb_so;
 
 #endif
@@ -2791,7 +2791,7 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                                    sh, op_err,
                                    use_mflowid, mflowid,
                                    vrf_id, port);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                pcb_so = SCTP_INP_SO(*inp_p);
                                atomic_add_int(&(*stcb)->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK((*stcb));
@@ -2800,7 +2800,7 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                                atomic_subtract_int(&(*stcb)->asoc.refcnt, 1);
 #endif
                                (void)sctp_free_assoc(*inp_p, *stcb, 
SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_20);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                SCTP_SOCKET_UNLOCK(pcb_so, 1);
 #endif
                                return (NULL);
@@ -2890,13 +2890,13 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                         * Pull it from the incomplete queue and wake the
                         * guy
                         */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        atomic_add_int(&(*stcb)->asoc.refcnt, 1);
                        SCTP_TCB_UNLOCK((*stcb));
                        SCTP_SOCKET_LOCK(so, 1);
 #endif
                        soisconnected(so);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_TCB_LOCK((*stcb));
                        atomic_subtract_int(&(*stcb)->asoc.refcnt, 1);
                        SCTP_SOCKET_UNLOCK(so, 1);
@@ -2952,12 +2952,12 @@ sctp_handle_cookie_ack(struct sctp_cooki
                sctp_ulp_notify(SCTP_NOTIFY_ASSOC_UP, stcb, 0, NULL, 
SCTP_SO_NOT_LOCKED);
                if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
                    (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        struct socket *so;
 
 #endif
                        stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED;
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        so = SCTP_INP_SO(stcb->sctp_ep);
                        atomic_add_int(&stcb->asoc.refcnt, 1);
                        SCTP_TCB_UNLOCK(stcb);
@@ -2968,7 +2968,7 @@ sctp_handle_cookie_ack(struct sctp_cooki
                        if ((stcb->asoc.state & SCTP_STATE_CLOSED_SOCKET) == 0) 
{
                                soisconnected(stcb->sctp_socket);
                        }
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                }
@@ -3196,7 +3196,7 @@ sctp_handle_shutdown_complete(struct sct
 {
        struct sctp_association *asoc;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -3231,7 +3231,7 @@ sctp_handle_shutdown_complete(struct sct
        /* free the TCB */
        SCTPDBG(SCTP_DEBUG_INPUT2,
            "sctp_handle_shutdown_complete: calls free-asoc\n");
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        so = SCTP_INP_SO(stcb->sctp_ep);
        atomic_add_int(&stcb->asoc.refcnt, 1);
        SCTP_TCB_UNLOCK(stcb);
@@ -3240,7 +3240,7 @@ sctp_handle_shutdown_complete(struct sct
        atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
        (void)sctp_free_assoc(stcb->sctp_ep, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_INPUT + SCTP_LOC_23);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        return;
@@ -4427,7 +4427,7 @@ __attribute__((noinline))
        int auth_skipped = 0;
        int asconf_cnt = 0;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -4785,7 +4785,7 @@ process_control_chunks:
                                        }
                                        *offset = length;
                                        if (stcb) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                                so = SCTP_INP_SO(inp);
                                                
atomic_add_int(&stcb->asoc.refcnt, 1);
                                                SCTP_TCB_UNLOCK(stcb);
@@ -4794,7 +4794,7 @@ process_control_chunks:
                                                
atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
                                                (void)sctp_free_assoc(inp, 
stcb, SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_27);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                                        }
@@ -5205,7 +5205,7 @@ process_control_chunks:
                                if ((stcb) && 
(stcb->asoc.total_output_queue_size)) {
                                        ;
                                } else if (stcb) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        so = SCTP_INP_SO(inp);
                                        atomic_add_int(&stcb->asoc.refcnt, 1);
                                        SCTP_TCB_UNLOCK(stcb);
@@ -5214,7 +5214,7 @@ process_control_chunks:
                                        atomic_subtract_int(&stcb->asoc.refcnt, 
1);
 #endif
                                        (void)sctp_free_assoc(inp, stcb, 
SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_27);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                                        *offset = length;
@@ -5368,7 +5368,7 @@ process_control_chunks:
                                *fwd_tsn_seen = 1;
                                if (inp->sctp_flags & 
SCTP_PCB_FLAGS_SOCKET_GONE) {
                                        /* We are not interested anymore */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        so = SCTP_INP_SO(inp);
                                        atomic_add_int(&stcb->asoc.refcnt, 1);
                                        SCTP_TCB_UNLOCK(stcb);
@@ -5377,7 +5377,7 @@ process_control_chunks:
                                        atomic_subtract_int(&stcb->asoc.refcnt, 
1);
 #endif
                                        (void)sctp_free_assoc(inp, stcb, 
SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_29);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                                        *offset = length;
@@ -5413,7 +5413,7 @@ process_control_chunks:
                        }
                        if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) {
                                /* We are not interested anymore */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                so = SCTP_INP_SO(inp);
                                atomic_add_int(&stcb->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK(stcb);
@@ -5422,7 +5422,7 @@ process_control_chunks:
                                atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
                                (void)sctp_free_assoc(inp, stcb, 
SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_30);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                                *offset = length;

Modified: stable/9/sys/netinet/sctp_output.c
==============================================================================
--- stable/9/sys/netinet/sctp_output.c  Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_output.c  Sat Jul  6 09:17:54 2013        
(r252882)
@@ -3899,7 +3899,7 @@ sctp_lowlevel_chunk_output(struct sctp_i
 #endif
        uint8_t tos_value;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so = NULL;
 
 #endif
@@ -4139,14 +4139,14 @@ sctp_lowlevel_chunk_output(struct sctp_i
                                sctp_packet_log(o_pak);
 #endif
                        /* send it out.  table id is taken from stcb */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        if ((SCTP_BASE_SYSCTL(sctp_output_unlocked)) && 
(so_locked)) {
                                so = SCTP_INP_SO(inp);
                                SCTP_SOCKET_UNLOCK(so, 0);
                        }
 #endif
                        SCTP_IP_OUTPUT(ret, o_pak, ro, stcb, vrf_id);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        if ((SCTP_BASE_SYSCTL(sctp_output_unlocked)) && 
(so_locked)) {
                                atomic_add_int(&stcb->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK(stcb);
@@ -4484,7 +4484,7 @@ sctp_lowlevel_chunk_output(struct sctp_i
 #endif
                        }
                        /* send it out. table id is taken from stcb */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        if ((SCTP_BASE_SYSCTL(sctp_output_unlocked)) && 
(so_locked)) {
                                so = SCTP_INP_SO(inp);
                                SCTP_SOCKET_UNLOCK(so, 0);
@@ -4495,7 +4495,7 @@ sctp_lowlevel_chunk_output(struct sctp_i
                                sctp_packet_log(o_pak);
 #endif
                        SCTP_IP6_OUTPUT(ret, o_pak, (struct route_in6 *)ro, 
&ifp, stcb, vrf_id);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        if ((SCTP_BASE_SYSCTL(sctp_output_unlocked)) && 
(so_locked)) {
                                atomic_add_int(&stcb->asoc.refcnt, 1);
                                SCTP_TCB_UNLOCK(stcb);

Modified: stable/9/sys/netinet/sctp_sysctl.c
==============================================================================
--- stable/9/sys/netinet/sctp_sysctl.c  Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_sysctl.c  Sat Jul  6 09:17:54 2013        
(r252882)
@@ -665,7 +665,7 @@ sysctl_sctp_check(SYSCTL_HANDLER_ARGS)
 #ifdef SCTP_DEBUG
                RANGECHK(SCTP_BASE_SYSCTL(sctp_debug_on), SCTPCTL_DEBUG_MIN, 
SCTPCTL_DEBUG_MAX);
 #endif
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                RANGECHK(SCTP_BASE_SYSCTL(sctp_output_unlocked), 
SCTPCTL_OUTPUT_UNLOCKED_MIN, SCTPCTL_OUTPUT_UNLOCKED_MAX);
 #endif
        }
@@ -1125,7 +1125,7 @@ SYSCTL_VNET_PROC(_net_inet_sctp, OID_AUT
 #endif
 
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
 SYSCTL_VNET_PROC(_net_inet_sctp, OID_AUTO, output_unlocked, CTLTYPE_UINT | 
CTLFLAG_RW,
     &SCTP_BASE_SYSCTL(sctp_output_unlocked), 0, sysctl_sctp_check, "IU",
     SCTPCTL_OUTPUT_UNLOCKED_DESC);

Modified: stable/9/sys/netinet/sctp_sysctl.h
==============================================================================
--- stable/9/sys/netinet/sctp_sysctl.h  Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_sysctl.h  Sat Jul  6 09:17:54 2013        
(r252882)
@@ -531,7 +531,7 @@ struct sctp_sysctl {
 #endif
 
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
 #define SCTPCTL_OUTPUT_UNLOCKED_DESC   "Unlock socket when sending packets 
down to IP."
 #define SCTPCTL_OUTPUT_UNLOCKED_MIN    0
 #define SCTPCTL_OUTPUT_UNLOCKED_MAX    1

Modified: stable/9/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/9/sys/netinet/sctp_usrreq.c  Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctp_usrreq.c  Sat Jul  6 09:17:54 2013        
(r252882)
@@ -224,7 +224,7 @@ sctp_notify(struct sctp_inpcb *inp,
     struct sctp_tcb *stcb,
     struct sctp_nets *net)
 {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -283,7 +283,7 @@ sctp_notify(struct sctp_inpcb *inp,
                 * with no TCB
                 */
                sctp_abort_notification(stcb, 1, 0, NULL, SCTP_SO_NOT_LOCKED);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(inp);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -292,7 +292,7 @@ sctp_notify(struct sctp_inpcb *inp,
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_USRREQ + SCTP_LOC_2);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
                /* SCTP_TCB_UNLOCK(stcb); MT: I think this is not needed. */
 #endif
@@ -5836,7 +5836,7 @@ sctp_ctloutput(struct socket *so, struct
                if (INP_CHECK_SOCKAF(so, AF_INET6))
                        error = ip6_ctloutput(so, sopt);
 #endif                         /* INET6 */
-#if defined(INET) && defined (INET6)
+#if defined(INET) && defined(INET6)
                else
 #endif
 #ifdef INET

Modified: stable/9/sys/netinet/sctputil.c
==============================================================================
--- stable/9/sys/netinet/sctputil.c     Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet/sctputil.c     Sat Jul  6 09:17:54 2013        
(r252882)
@@ -1412,7 +1412,7 @@ sctp_timeout_handler(void *t)
        struct sctp_nets *net;
        struct sctp_timer *tmr;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -1777,7 +1777,7 @@ sctp_timeout_handler(void *t)
                /* Can we free it yet? */
                SCTP_INP_DECR_REF(inp);
                sctp_timer_stop(SCTP_TIMER_TYPE_ASOCKILL, inp, stcb, NULL, 
SCTP_FROM_SCTPUTIL + SCTP_LOC_1);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(inp);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -1786,7 +1786,7 @@ sctp_timeout_handler(void *t)
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTPUTIL + SCTP_LOC_2);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                /*
@@ -2600,7 +2600,7 @@ sctp_notify_assoc_change(uint16_t state,
        size_t notif_len, abort_len;
        unsigned int i;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -2698,7 +2698,7 @@ set_error:
                }
        }
        /* Wake ANY sleepers */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        so = SCTP_INP_SO(stcb->sctp_ep);
        if (!so_locked) {
                atomic_add_int(&stcb->asoc.refcnt, 1);
@@ -2719,7 +2719,7 @@ set_error:
        }
        sorwakeup(stcb->sctp_socket);
        sowwakeup(stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        if (!so_locked) {
                SCTP_SOCKET_UNLOCK(so, 1);
        }
@@ -3134,7 +3134,7 @@ sctp_notify_partial_delivery_indication(
        }
        if (stcb->sctp_ep && stcb->sctp_socket) {
                /* This should always be the case */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                struct socket *so;
 
                so = SCTP_INP_SO(stcb->sctp_ep);
@@ -3151,7 +3151,7 @@ sctp_notify_partial_delivery_indication(
                }
 #endif
                sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                if (!so_locked) {
                        SCTP_SOCKET_UNLOCK(so, 1);
                }
@@ -3173,7 +3173,7 @@ sctp_notify_shutdown_event(struct sctp_t
        if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
            (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) {
                /* mark socket closed for read/write and wakeup! */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                struct socket *so;
 
                so = SCTP_INP_SO(stcb->sctp_ep);
@@ -3188,7 +3188,7 @@ sctp_notify_shutdown_event(struct sctp_t
                }
 #endif
                socantsendmore(stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        }
@@ -3832,7 +3832,7 @@ sctp_abort_association(struct sctp_inpcb
 {
        uint32_t vtag;
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -3851,7 +3851,7 @@ sctp_abort_association(struct sctp_inpcb
            vrf_id, port);
        if (stcb != NULL) {
                /* Ok, now lets free it */
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(inp);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -3865,7 +3865,7 @@ sctp_abort_association(struct sctp_inpcb
                        SCTP_STAT_DECR_GAUGE32(sctps_currestab);
                }
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTPUTIL + SCTP_LOC_4);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
 #endif
        }
@@ -3944,12 +3944,12 @@ sctp_abort_an_association(struct sctp_in
 #endif
 )
 {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
 
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        so = SCTP_INP_SO(inp);
 #endif
        if (stcb == NULL) {
@@ -3979,7 +3979,7 @@ sctp_abort_an_association(struct sctp_in
 #ifdef SCTP_ASOCLOG_OF_TSNS
        sctp_print_out_track_log(stcb);
 #endif
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        if (!so_locked) {
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -3989,7 +3989,7 @@ sctp_abort_an_association(struct sctp_in
        }
 #endif
        (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, SCTP_FROM_SCTPUTIL + 
SCTP_LOC_5);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        if (!so_locked) {
                SCTP_SOCKET_UNLOCK(so, 1);
        }
@@ -4477,7 +4477,7 @@ sctp_add_to_readq(struct sctp_inpcb *inp
                if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_ZERO_COPY_ACTIVE)) {
                        SCTP_ZERO_COPY_EVENT(inp, inp->sctp_socket);
                } else {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        struct socket *so;
 
                        so = SCTP_INP_SO(inp);
@@ -4498,7 +4498,7 @@ sctp_add_to_readq(struct sctp_inpcb *inp
                        }
 #endif
                        sctp_sorwakeup(inp, inp->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        if (!so_locked) {
                                SCTP_SOCKET_UNLOCK(so, 1);
                        }
@@ -4631,7 +4631,7 @@ get_out:
                if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_ZERO_COPY_ACTIVE)) {
                        SCTP_ZERO_COPY_EVENT(inp, inp->sctp_socket);
                } else {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        struct socket *so;
 
                        so = SCTP_INP_SO(inp);
@@ -4650,7 +4650,7 @@ get_out:
                        }
 #endif
                        sctp_sorwakeup(inp, inp->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                        SCTP_SOCKET_UNLOCK(so, 1);
 #endif
                }
@@ -4907,7 +4907,7 @@ sctp_release_pr_sctp_chunk(struct sctp_t
                SCTP_TCB_SEND_UNLOCK(stcb);
        }
        if (do_wakeup_routine) {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                struct socket *so;
 
                so = SCTP_INP_SO(stcb->sctp_ep);
@@ -4925,7 +4925,7 @@ sctp_release_pr_sctp_chunk(struct sctp_t
                }
 #endif
                sctp_sowwakeup(stcb->sctp_ep, stcb->sctp_socket);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                if (!so_locked) {
                        SCTP_SOCKET_UNLOCK(so, 1);
                }

Modified: stable/9/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/9/sys/netinet6/sctp6_usrreq.c        Sat Jul  6 09:11:38 2013        
(r252881)
+++ stable/9/sys/netinet6/sctp6_usrreq.c        Sat Jul  6 09:17:54 2013        
(r252882)
@@ -396,7 +396,7 @@ sctp6_notify(struct sctp_inpcb *inp,
     struct sctp_tcb *stcb,
     struct sctp_nets *net)
 {
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
        struct socket *so;
 
 #endif
@@ -451,7 +451,7 @@ sctp6_notify(struct sctp_inpcb *inp,
                 * with no TCB
                 */
                sctp_abort_notification(stcb, 1, 0, NULL, SCTP_SO_NOT_LOCKED);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                so = SCTP_INP_SO(inp);
                atomic_add_int(&stcb->asoc.refcnt, 1);
                SCTP_TCB_UNLOCK(stcb);
@@ -460,7 +460,7 @@ sctp6_notify(struct sctp_inpcb *inp,
                atomic_subtract_int(&stcb->asoc.refcnt, 1);
 #endif
                (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, 
SCTP_FROM_SCTP_USRREQ + SCTP_LOC_2);
-#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
+#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
                SCTP_SOCKET_UNLOCK(so, 1);
                /* SCTP_TCB_UNLOCK(stcb); MT: I think this is not needed. */
 #endif
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to