Commit 07854bb
committed
Add comprehensive SCTP protocol support
Implement full SCTP (Stream Control Transmission Protocol) layer with support for:
Core Protocol (RFC 9260):
- All standard chunk types (DATA, INIT, INIT-ACK, SACK, HEARTBEAT, ABORT,
SHUTDOWN, ERROR, COOKIE-ECHO, COOKIE-ACK, ECNE, CWR, SHUTDOWN-COMPLETE)
- CRC32c checksum calculation and validation
- Chunk and parameter action bits helpers
- Bundling validation per RFC 9260
- Host Name Address deprecation detection
Extensions:
- AUTH chunk with HMAC-SHA1/SHA256 computation and verification (RFC 4895)
- ASCONF/ASCONF-ACK for dynamic address reconfiguration (RFC 5061)
- RE-CONFIG for stream reconfiguration (RFC 6525)
- FORWARD-TSN for partial reliability (RFC 3758)
- I-DATA and I-FORWARD-TSN for message interleaving (RFC 8260)
- PAD chunk (RFC 4820)
- NR-SACK experimental support (IANA registered, draft-based)
- Zero Checksum Acceptable parameter (RFC 9653)
Additional features:
- Parameter iterators for INIT, RE-CONFIG, and ASCONF chunks
- Error cause iterator for ABORT/ERROR chunks
- Extended PPID enum with 70+ protocol identifiers from IANA registry
- Chunk creation APIs for building SCTP packets
Includes 72 test cases covering parsing, creation, and validation.1 parent 9e03913 commit 07854bb
File tree
22 files changed
+8842
-27
lines changed- Packet++
- header
- src
- Tests/Packet++Test
- PacketExamples
- Tests
22 files changed
+8842
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
0 commit comments