Debian Codegraph @

param_forward_tsn_supported.go

raw
1 // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
2 // SPDX-License-Identifier: MIT
3
4 package sctp
5
6 // At the initialization of the association, the sender of the INIT or
7 // INIT ACK chunk MAY include this OPTIONAL parameter to inform its peer
8 // that it is able to support the Forward TSN chunk
9 //
10 // 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
11 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
12 // | Parameter Type = 49152 | Parameter Length = 4 |
13 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14
15 type paramForwardTSNSupported struct {
16 paramHeader
17 }
18
19 func (f *paramForwardTSNSupported) marshal() ([]byte, error) {
20 f.typ = forwardTSNSupp
21 f.raw = []byte{}
22
23 return f.paramHeader.marshal()
24 }
25
26 func (f *paramForwardTSNSupported) unmarshal(raw []byte) (param, error) {
27 err := f.paramHeader.unmarshal(raw)
28 if err != nil {
29 return nil, err
30 }
31
32 return f, nil
33 }