blob: 62de155700935a771adee2711b3073ed451f4531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package sctp
// At the initialization of the association, the sender of the INIT or
// INIT ACK chunk MAY include this OPTIONAL parameter to inform its peer
// that it is able to support the Forward TSN chunk
//
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// | Parameter Type = 49152 | Parameter Length = 4 |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
type paramForwardTSNSupported struct {
paramHeader
}
func (f *paramForwardTSNSupported) marshal() ([]byte, error) {
f.typ = forwardTSNSupp
f.raw = []byte{}
return f.paramHeader.marshal()
}
func (f *paramForwardTSNSupported) unmarshal(raw []byte) (param, error) {
err := f.paramHeader.unmarshal(raw)
if err != nil {
return nil, err
}
return f, nil
}
|