sctp_sysctl.c (170056) | sctp_sysctl.c (170091) |
---|---|
1/*- 2 * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.c 170056 2007-05-28 11:17:24Z rrs $"); | 32__FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.c 170091 2007-05-29 09:29:03Z rrs $"); |
33 34#include <netinet/sctp_os.h> 35#include <netinet/sctp_constants.h> 36#include <netinet/sctp_sysctl.h> 37#include <netinet/sctp_pcb.h> 38#include <netinet/sctputil.h> 39#include <netinet/sctp_output.h> 40/* --- 345 unchanged lines hidden (view full) --- 386 xstcb.total_recvs = stcb->total_recvs; 387 xstcb.local_tag = stcb->asoc.my_vtag; 388 xstcb.remote_tag = stcb->asoc.peer_vtag; 389 xstcb.initial_tsn = stcb->asoc.init_seq_number; 390 xstcb.highest_tsn = stcb->asoc.sending_seq - 1; 391 xstcb.cumulative_tsn = stcb->asoc.last_acked_seq; 392 xstcb.cumulative_tsn_ack = stcb->asoc.cumulative_tsn; 393 xstcb.mtu = stcb->asoc.smallest_mtu; | 33 34#include <netinet/sctp_os.h> 35#include <netinet/sctp_constants.h> 36#include <netinet/sctp_sysctl.h> 37#include <netinet/sctp_pcb.h> 38#include <netinet/sctputil.h> 39#include <netinet/sctp_output.h> 40/* --- 345 unchanged lines hidden (view full) --- 386 xstcb.total_recvs = stcb->total_recvs; 387 xstcb.local_tag = stcb->asoc.my_vtag; 388 xstcb.remote_tag = stcb->asoc.peer_vtag; 389 xstcb.initial_tsn = stcb->asoc.init_seq_number; 390 xstcb.highest_tsn = stcb->asoc.sending_seq - 1; 391 xstcb.cumulative_tsn = stcb->asoc.last_acked_seq; 392 xstcb.cumulative_tsn_ack = stcb->asoc.cumulative_tsn; 393 xstcb.mtu = stcb->asoc.smallest_mtu; |
394 xstcb.refcnt = stcb->asoc.refcnt; |
|
394 SCTP_INP_RUNLOCK(inp); 395 SCTP_INP_INFO_RUNLOCK(); 396 error = SYSCTL_OUT(req, &xstcb, sizeof(struct xsctp_tcb)); 397 if (error) { 398 SCTP_INP_DECR_REF(inp); 399 atomic_add_int(&stcb->asoc.refcnt, -1); 400 return error; 401 } --- 278 unchanged lines hidden --- | 395 SCTP_INP_RUNLOCK(inp); 396 SCTP_INP_INFO_RUNLOCK(); 397 error = SYSCTL_OUT(req, &xstcb, sizeof(struct xsctp_tcb)); 398 if (error) { 399 SCTP_INP_DECR_REF(inp); 400 atomic_add_int(&stcb->asoc.refcnt, -1); 401 return error; 402 } --- 278 unchanged lines hidden --- |