diff options
author | rrs <rrs@FreeBSD.org> | 2007-03-19 06:53:02 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-03-19 06:53:02 +0000 |
commit | af970e3016805a81bd955a154f67086cd68daaa0 (patch) | |
tree | f1e1b2a5f87feb92e42f13f0cbbd9dc84f4c596b /sys/netinet/sctp_os_bsd.h | |
parent | 40843dd888818f89cbcb66dac8c424df851f6e7b (diff) | |
download | FreeBSD-src-af970e3016805a81bd955a154f67086cd68daaa0.zip FreeBSD-src-af970e3016805a81bd955a154f67086cd68daaa0.tar.gz |
- errno -> becomes error in sctp_output.c and sctputil.c
- SB_CLEAR macro defined and used for sb clearing.
- Fix for CMT express_sack_handling did not do proper
pseudo-cumack updates.
- Get rid of extraneous function that was never used ip_2_ip6_hdr()
- Fixed source address selection bug (initialization problem).
- Source address selection debug added.
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r-- | sys/netinet/sctp_os_bsd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 945161b..87c17f1 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -249,6 +249,13 @@ typedef struct callout sctp_os_timer_t; #define SCTP_CLEAR_SO_NBIO(so) ((so)->so_state &= ~SS_NBIO) /* get the socket type */ #define SCTP_SO_TYPE(so) ((so)->so_type) +/* reserve sb space for a socket */ +#define SCTP_SORESERVE(so, send, recv) soreserve(so, send, recv) +/* clear the socket buffer state */ +#define SCTP_SB_CLEAR(sb) \ + (sb).sb_cc = 0; \ + (sb).sb_mb = NULL; \ + (sb).sb_mbcnt = 0; /* * SCTP AUTH |