diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2007-08-06 15:46:46 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2007-08-06 15:46:46 +0000 |
commit | 63981c2b40be9eddd141974e16437ec735e9b95c (patch) | |
tree | c921bd8428184a6766eefb361eecbb050ab5d3ff /sys/netinet/sctp_uio.h | |
parent | 0bf686c1257e2e7944a4cee9d9d628280facaa3d (diff) | |
download | src-63981c2b40be9eddd141974e16437ec735e9b95c.tar.gz src-63981c2b40be9eddd141974e16437ec735e9b95c.zip |
- change number assignments for SHA225-512 (match artisync
for bakeoff.. using the next sequential ones)
- In cookie processing 1-2-1, we did not increment the stcb
refcnt before releasing the tcb lock. We need to do this
to keep the tcb from being freed by a abort or ?? unlikely
but worth doing. Also get rid of unneed INP_WLOCK.
- extra receive info included the rcvinfo which killed the
padding/alignment. We now redefine all the fields properly
so they both align properly both to 128 bytes.
- A peeled off socket would not close without an error due to
its misguided idea that sctp_disconnect() was not supported
on it. This fixes it so it goes through the proper path.
- When an assoc was being deleted after abort (via a timer) a
small race condition exists where we might take a packet for
the old assoc (since we are waiting for a cleanup timer). This
state especially happens in mac. We now add a state in the asoc
so these can properly handle the packet as OOTB.
Approved by: re@freebsd.org(Ken Smith)
Notes
Notes:
svn path=/head/; revision=171745
Diffstat (limited to 'sys/netinet/sctp_uio.h')
-rw-r--r-- | sys/netinet/sctp_uio.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/netinet/sctp_uio.h b/sys/netinet/sctp_uio.h index e0c8441d75b0..1689a7cc93e9 100644 --- a/sys/netinet/sctp_uio.h +++ b/sys/netinet/sctp_uio.h @@ -105,7 +105,15 @@ struct sctp_sndrcvinfo { }; struct sctp_extrcvinfo { - struct sctp_sndrcvinfo sreinfo_sinfo; + uint16_t sinfo_stream; + uint16_t sinfo_ssn; + uint16_t sinfo_flags; + uint32_t sinfo_ppid; + uint32_t sinfo_context; + uint32_t sinfo_timetolive; + uint32_t sinfo_tsn; + uint32_t sinfo_cumtsn; + sctp_assoc_t sinfo_assoc_id; uint16_t sreinfo_next_flags; uint16_t sreinfo_next_stream; uint32_t sreinfo_next_aid; @@ -504,9 +512,9 @@ struct sctp_hmacalgo { #define SCTP_AUTH_HMAC_ID_SHA1 0x0001 /* default, mandatory */ #define SCTP_AUTH_HMAC_ID_MD5 0x0002 /* deprecated */ #define SCTP_AUTH_HMAC_ID_SHA256 0x0003 -#define SCTP_AUTH_HMAC_ID_SHA224 0x8001 -#define SCTP_AUTH_HMAC_ID_SHA384 0x8002 -#define SCTP_AUTH_HMAC_ID_SHA512 0x8003 +#define SCTP_AUTH_HMAC_ID_SHA224 0x0004 +#define SCTP_AUTH_HMAC_ID_SHA384 0x0005 +#define SCTP_AUTH_HMAC_ID_SHA512 0x0006 /* SCTP_AUTH_ACTIVE_KEY / SCTP_AUTH_DELETE_KEY */ |