sctp_var.h (171440) | sctp_var.h (171477) |
---|---|
1/*- 2 * Copyright (c) 2001-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. --- 17 unchanged lines hidden (view full) --- 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/* $KAME: sctp_var.h,v 1.24 2005/03/06 16:04:19 itojun Exp $ */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-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. --- 17 unchanged lines hidden (view full) --- 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/* $KAME: sctp_var.h,v 1.24 2005/03/06 16:04:19 itojun Exp $ */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_var.h 171440 2007-07-14 09:36:28Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_var.h 171477 2007-07-17 20:58:26Z rrs $"); |
35 36#ifndef _NETINET_SCTP_VAR_H_ 37#define _NETINET_SCTP_VAR_H_ 38 39#include <netinet/sctp_uio.h> 40 41#if defined(_KERNEL) 42 --- 198 unchanged lines hidden (view full) --- 241 stcb->asoc.fs_index = 0;\ 242 stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \ 243 stcb->asoc.fslog[stcb->asoc.fs_index].tsn = tp1->rec.data.TSN_seq; \ 244 stcb->asoc.fslog[stcb->asoc.fs_index].book = tp1->book_size; \ 245 stcb->asoc.fslog[stcb->asoc.fs_index].sent = tp1->sent; \ 246 stcb->asoc.fslog[stcb->asoc.fs_index].incr = 0; \ 247 stcb->asoc.fslog[stcb->asoc.fs_index].decr = 1; \ 248 stcb->asoc.fs_index++; \ | 35 36#ifndef _NETINET_SCTP_VAR_H_ 37#define _NETINET_SCTP_VAR_H_ 38 39#include <netinet/sctp_uio.h> 40 41#if defined(_KERNEL) 42 --- 198 unchanged lines hidden (view full) --- 241 stcb->asoc.fs_index = 0;\ 242 stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \ 243 stcb->asoc.fslog[stcb->asoc.fs_index].tsn = tp1->rec.data.TSN_seq; \ 244 stcb->asoc.fslog[stcb->asoc.fs_index].book = tp1->book_size; \ 245 stcb->asoc.fslog[stcb->asoc.fs_index].sent = tp1->sent; \ 246 stcb->asoc.fslog[stcb->asoc.fs_index].incr = 0; \ 247 stcb->asoc.fslog[stcb->asoc.fs_index].decr = 1; \ 248 stcb->asoc.fs_index++; \ |
249 tp1->window_probe = 0; \ |
|
249 if (stcb->asoc.total_flight >= tp1->book_size) { \ 250 stcb->asoc.total_flight -= tp1->book_size; \ 251 if (stcb->asoc.total_flight_count > 0) \ 252 stcb->asoc.total_flight_count--; \ 253 } else { \ 254 stcb->asoc.total_flight = 0; \ 255 stcb->asoc.total_flight_count = 0; \ 256 } \ --- 77 unchanged lines hidden --- | 250 if (stcb->asoc.total_flight >= tp1->book_size) { \ 251 stcb->asoc.total_flight -= tp1->book_size; \ 252 if (stcb->asoc.total_flight_count > 0) \ 253 stcb->asoc.total_flight_count--; \ 254 } else { \ 255 stcb->asoc.total_flight = 0; \ 256 stcb->asoc.total_flight_count = 0; \ 257 } \ --- 77 unchanged lines hidden --- |