Commit Graph

13 Commits

Author SHA1 Message Date
Sean DuBois
13b02984e3 Fix all linting errors
Disabled gocylco for now, need to use gometalinter to disable
conditionally. There are also a lot more linters we could use, but they
cause too many issues to start today.
2018-07-21 12:27:38 -07:00
John Bradley
f5228fc930 Refactor exported SCTP symbols to unexported 2018-07-21 12:27:38 -07:00
Sean DuBois
09f5f8c879 Implement PayloadData Chunk
Add failing test with SCTP Packet from Google Chrome when unpacking
packet. Contents of packet is a valid DCEP! If we respond to this ACK,
we should be able to start getting packets from the browser
2018-07-21 12:27:38 -07:00
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