Documentation ¶
Index ¶
- Constants
- type GREPacket
- func (p *GREPacket) GetKeyField() uint32
- func (p *GREPacket) GetKeyFlag() bool
- func (p *GREPacket) GetPayload() ([]byte, uint16)
- func (p *GREPacket) GetQFI() uint8
- func (p *GREPacket) GetRQI() bool
- func (p *GREPacket) Marshal() []byte
- func (p *GREPacket) SetPayload(payload []byte, protocolType uint16)
- func (p *GREPacket) SetQoS(qfi uint8, rqi bool)
- func (p *GREPacket) Unmarshal(b []byte) error
Constants ¶
View Source
const ( GREHeaderFieldLength = 8 GREHeaderKeyFieldLength = 4 )
[TS 24.502] 9.3.3 GRE encapsulated user data packet
View Source
const ( IPv4 uint16 = 0x0800 IPv6 uint16 = 0x86DD )
Ethertypes Specified by the IETF
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GREPacket ¶
type GREPacket struct {
// contains filtered or unexported fields
}
func (*GREPacket) GetKeyField ¶
func (*GREPacket) GetKeyFlag ¶
func (*GREPacket) GetPayload ¶
func (*GREPacket) SetPayload ¶
Click to show internal directories.
Click to hide internal directories.