diff options
author | rrs <rrs@FreeBSD.org> | 2007-05-02 12:50:13 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-05-02 12:50:13 +0000 |
commit | 803b9be8be0827d6f2fde839f6dcd9225a2609be (patch) | |
tree | 93ea4f957056813b10463b788259dc0304a365e3 /sys/netinet/sctp_header.h | |
parent | 78898ea5a86dc4f5a06f63d1f2c50c2c6497bef9 (diff) | |
download | FreeBSD-src-803b9be8be0827d6f2fde839f6dcd9225a2609be.zip FreeBSD-src-803b9be8be0827d6f2fde839f6dcd9225a2609be.tar.gz |
- Somehow the disable fragment option got lost. We could
set/clear it but would not do it. Now we will.
- Moved to latest socket api for extended sndrcv info struct.
- Moved to support all new levels of fragment interleave (0-2).
- Codenomicon security test updates - length checks and such.
- Bug in stream reset (2 actually).
- setpeerprimary could unlock a null pointer, fixed.
- Added a flag in the pcb so netstat can see if we are listening easier.
Obtained from: (some of the Listen changes from Weongyo Jeong)
Diffstat (limited to 'sys/netinet/sctp_header.h')
-rw-r--r-- | sys/netinet/sctp_header.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netinet/sctp_header.h b/sys/netinet/sctp_header.h index 4b2a758..d2013ff 100644 --- a/sys/netinet/sctp_header.h +++ b/sys/netinet/sctp_header.h @@ -64,13 +64,17 @@ struct sctp_cookie_perserve_param { }; #define SCTP_ARRAY_MIN_LEN 1 - /* Host Name Address */ struct sctp_host_name_param { struct sctp_paramhdr ph;/* type=SCTP_HOSTNAME_ADDRESS */ char name[SCTP_ARRAY_MIN_LEN]; /* host name */ }; +/* + * This is the maximum padded size of a s-a-p + * so paramheadr + 3 address types (6 bytes) + 2 byte pad = 12 + */ +#define SCTP_MAX_ADDR_PARAMS_SIZE 12 /* supported address type */ struct sctp_supported_addr_param { struct sctp_paramhdr ph;/* type=SCTP_SUPPORTED_ADDRTYPE */ @@ -121,6 +125,8 @@ struct sctp_asconf_addrv4_param { /* an ASCONF address (v4) parameter */ struct sctp_ipv4addr_param addrp; /* max storage size */ }; +#define SCTP_MAX_SUPPORTED_EXT 256 + struct sctp_supported_chunk_types_param { struct sctp_paramhdr ph;/* type = 0x8008 len = x */ uint8_t chunk_types[0]; @@ -490,6 +496,9 @@ struct sctp_stream_reset_resp_tsn { /* * Authenticated chunks support draft-ietf-tsvwg-sctp-auth */ + +/* Should we make the max be 32? */ +#define SCTP_RANDOM_MAX_SIZE 256 struct sctp_auth_random { struct sctp_paramhdr ph;/* type = 0x8002 */ uint8_t random_data[0]; |