diff options
Diffstat (limited to 'sys/netinet/sctputil.h')
-rw-r--r-- | sys/netinet/sctputil.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/sctputil.h b/sys/netinet/sctputil.h index a9e72625c5e3..559daa3764fa 100644 --- a/sys/netinet/sctputil.h +++ b/sys/netinet/sctputil.h @@ -286,10 +286,10 @@ do { \ } \ if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \ (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \ - if (stcb->sctp_socket->so_snd.sb_ccc >= tp1->book_size) { \ - atomic_subtract_int(&((stcb)->sctp_socket->so_snd.sb_ccc), tp1->book_size); \ + if (stcb->sctp_socket->so_snd.sb_cc >= tp1->book_size) { \ + atomic_subtract_int(&((stcb)->sctp_socket->so_snd.sb_cc), tp1->book_size); \ } else { \ - stcb->sctp_socket->so_snd.sb_ccc = 0; \ + stcb->sctp_socket->so_snd.sb_cc = 0; \ } \ } \ } \ @@ -307,10 +307,10 @@ do { \ } \ if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \ (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \ - if (stcb->sctp_socket->so_snd.sb_ccc >= sp->length) { \ - atomic_subtract_int(&stcb->sctp_socket->so_snd.sb_ccc,sp->length); \ + if (stcb->sctp_socket->so_snd.sb_cc >= sp->length) { \ + atomic_subtract_int(&stcb->sctp_socket->so_snd.sb_cc,sp->length); \ } else { \ - stcb->sctp_socket->so_snd.sb_ccc = 0; \ + stcb->sctp_socket->so_snd.sb_cc = 0; \ } \ } \ } \ @@ -322,7 +322,7 @@ do { \ if ((stcb->sctp_socket != NULL) && \ ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \ (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \ - atomic_add_int(&stcb->sctp_socket->so_snd.sb_ccc,sz); \ + atomic_add_int(&stcb->sctp_socket->so_snd.sb_cc,sz); \ } \ } while (0) |