John R. Bradley
22e98b0dfb
Refactor chunk marshal, fix many marshaling bugs
2018-07-21 12:27:38 -07:00
Sean DuBois
5849e549a7
Implement Marshal for multiple structs, with some tests
...
* Add test for Packet marshal
* Implement Packet, ChunkHeader, ChunkInitAck
* Improve error messages, and de-dupe some comments
2018-07-21 12:27:38 -07:00
John R. Bradley
29dc3df8e2
WIP, Moved Init to common, added more pre-checks
2018-07-21 12:27:38 -07:00
Sean DuBois
51e669e1d8
Improve error handling and enums in SCTP
...
* Make sure errors in SCTP make it all the way back
* Move structs into files with proper names in SCTP
* Add String() for AssociationState enum
* Add callbacks to Association to that we can handle
DATA in the DataChannel package and send outbound SCTP
2018-07-21 12:27:38 -07:00
John R. Bradley
93fa676740
Add more association logic, RFC stuff
2018-07-21 12:27:38 -07:00
John R. Bradley
e8b58bf959
Add all params sent from init chunk
2018-07-21 12:27:38 -07:00
Sean DuBois
f2b9791623
Implement SCTP Init chunk, and start InitAck
2018-07-21 12:27:38 -07:00
Sean DuBois
cca92b5dd7
Fix lint, vet and cyclo errors
2018-07-21 12:27:38 -07:00
Sean DuBois
766b1c2d3f
Add early return to SCTP chunk parsing when invalid length
2018-07-21 12:27:38 -07:00
Sean DuBois
5ec9022685
SCTP Packet+Chunk Unmarshalling with tests
2018-07-21 12:27:38 -07:00