Files
webrtc/internal/sctp/error_cause_invalid_mandatory_parameter.go
Sean DuBois 2d57c5856c Implement Abort + ErrorCause handling
Add all the boilerplate for handling this implement
InvalidMandatoryParameter and UnrecognizedChunkType
2018-07-21 12:27:38 -07:00

17 lines
504 B
Go

package sctp
// ErrorCauseInvalidMandatoryParameter represents an SCTP error cause
type ErrorCauseInvalidMandatoryParameter struct {
ErrorCauseHeader
}
// Marshal populates a []byte from a struct
func (e *ErrorCauseInvalidMandatoryParameter) Marshal() ([]byte, error) {
return e.ErrorCauseHeader.Marshal()
}
// Unmarshal populates a ErrorCauseUnrecognizedChunkType from raw data
func (e *ErrorCauseInvalidMandatoryParameter) Unmarshal(raw []byte) error {
return e.ErrorCauseHeader.Unmarshal(raw)
}