Documentation ¶
Index ¶
- func RecycleFragElement(elem *FragElement)
- type FragElement
- type FragElementGroup
- func (t *FragElementGroup) AddCurrentLen(val uint16) uint16
- func (t *FragElementGroup) AddHighest(val uint16) uint16
- func (t *FragElementGroup) CheckFinalElementExists() bool
- func (t *FragElementGroup) GetAllElementsPayloadLen() uint16
- func (t *FragElementGroup) GetCreateTimestamp() int64
- func (t *FragElementGroup) GetCurrentLen() uint16
- func (t *FragElementGroup) GetElementListLen() int
- func (t *FragElementGroup) GetFinalElement() *FragElement
- func (t *FragElementGroup) GetHighest() uint16
- func (t *FragElementGroup) GetID() def.FragGroupID
- func (t *FragElementGroup) GetNextProtocol() interface{}
- func (t *FragElementGroup) InsertElementToBefore(elem *FragElement, mark *list.Element) *list.Element
- func (t *FragElementGroup) IterElementList(f func(elem *list.Element) bool)
- func (t *FragElementGroup) PushElementToBack(elem *FragElement)
- func (t *FragElementGroup) Release() (clenListLen int)
- func (t *FragElementGroup) SetFinalElement(elem *FragElement)
- func (t *FragElementGroup) SetHighest(val uint16)
- func (t *FragElementGroup) SetNextProtocol(proto interface{})
- type SharedLayers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecycleFragElement ¶ added in v1.0.1
func RecycleFragElement(elem *FragElement)
Types ¶
type FragElement ¶ added in v1.0.1
type FragElement struct { GroupID def.FragGroupID Type def.FragType InterfaceId def.InterfaceId SrcMAC, DstMAC []byte SrcIP, DstIP []byte TOS uint8 TrafficClass uint8 FlowLabel uint32 IPProtocol layers.IPProtocol FragOffset uint16 MoreFrags bool Identification uint32 PayloadBuf *bytes.Buffer Grouped bool }
func NewFragElement ¶ added in v1.0.1
func NewFragElement() *FragElement
type FragElementGroup ¶ added in v1.0.1
type FragElementGroup struct {
// contains filtered or unexported fields
}
func NewFragElementGroup ¶ added in v1.0.1
func NewFragElementGroup(fragGroupID def.FragGroupID) *FragElementGroup
func (*FragElementGroup) AddCurrentLen ¶ added in v1.0.1
func (t *FragElementGroup) AddCurrentLen(val uint16) uint16
func (*FragElementGroup) AddHighest ¶ added in v1.0.1
func (t *FragElementGroup) AddHighest(val uint16) uint16
func (*FragElementGroup) CheckFinalElementExists ¶ added in v1.0.1
func (t *FragElementGroup) CheckFinalElementExists() bool
func (*FragElementGroup) GetAllElementsPayloadLen ¶ added in v1.0.1
func (t *FragElementGroup) GetAllElementsPayloadLen() uint16
func (*FragElementGroup) GetCreateTimestamp ¶ added in v1.0.1
func (t *FragElementGroup) GetCreateTimestamp() int64
func (*FragElementGroup) GetCurrentLen ¶ added in v1.0.1
func (t *FragElementGroup) GetCurrentLen() uint16
func (*FragElementGroup) GetElementListLen ¶ added in v1.0.1
func (t *FragElementGroup) GetElementListLen() int
func (*FragElementGroup) GetFinalElement ¶ added in v1.0.1
func (t *FragElementGroup) GetFinalElement() *FragElement
func (*FragElementGroup) GetHighest ¶ added in v1.0.1
func (t *FragElementGroup) GetHighest() uint16
func (*FragElementGroup) GetID ¶ added in v1.0.1
func (t *FragElementGroup) GetID() def.FragGroupID
func (*FragElementGroup) GetNextProtocol ¶ added in v1.0.1
func (t *FragElementGroup) GetNextProtocol() interface{}
func (*FragElementGroup) InsertElementToBefore ¶ added in v1.0.1
func (t *FragElementGroup) InsertElementToBefore(elem *FragElement, mark *list.Element) *list.Element
func (*FragElementGroup) IterElementList ¶ added in v1.0.1
func (t *FragElementGroup) IterElementList(f func(elem *list.Element) bool)
func (*FragElementGroup) PushElementToBack ¶ added in v1.0.1
func (t *FragElementGroup) PushElementToBack(elem *FragElement)
func (*FragElementGroup) Release ¶ added in v1.0.1
func (t *FragElementGroup) Release() (clenListLen int)
func (*FragElementGroup) SetFinalElement ¶ added in v1.0.1
func (t *FragElementGroup) SetFinalElement(elem *FragElement)
func (*FragElementGroup) SetHighest ¶ added in v1.0.1
func (t *FragElementGroup) SetHighest(val uint16)
func (*FragElementGroup) SetNextProtocol ¶ added in v1.0.1
func (t *FragElementGroup) SetNextProtocol(proto interface{})
type SharedLayers ¶
type SharedLayers struct { // contains filtered or unexported fields }
func NewSharedLayers ¶
func NewSharedLayers() *SharedLayers
func (*SharedLayers) GetReferencesNum ¶
func (t *SharedLayers) GetReferencesNum() uint32
func (*SharedLayers) Reset ¶
func (t *SharedLayers) Reset()
func (*SharedLayers) UpdateReferences ¶
func (t *SharedLayers) UpdateReferences()
Click to show internal directories.
Click to hide internal directories.