Documentation
¶
Index ¶
- Constants
- Variables
- func Protocol() protocol.Payload
- type AVPType
- type ExtensionAVP
- type ExtensionPayload
- func (ep *ExtensionPayload) Decode(raw []byte) error
- func (ep *ExtensionPayload) Encode() ([]byte, error)
- func (ep *ExtensionPayload) Handle(protocol.Context) protocol.Payload
- func (ep *ExtensionPayload) Offerable() bool
- func (ep *ExtensionPayload) String() string
- func (ep *ExtensionPayload) Type() protocol.Type
- type Payload
- func (p *Payload) Decode(raw []byte) error
- func (p *Payload) Encode() ([]byte, error)
- func (p *Payload) GetEAPSettings() protocol.Settings
- func (p *Payload) GetEAPState(key string) *protocol.State
- func (p *Payload) Handle(ctx protocol.Context) protocol.Payload
- func (p *Payload) HasInner() protocol.Payload
- func (p *Payload) Offerable() bool
- func (p *Payload) SetEAPState(key string, st *protocol.State)
- func (p *Payload) String() string
- func (p *Payload) Type() protocol.Type
- type Settings
- type State
Constants ¶
View Source
const ExtensionHeaderSize = 4
View Source
const TypePEAP protocol.Type = 25
View Source
const TypePEAPExtension protocol.Type = 33
Variables ¶
View Source
var (
ErrorReservedBitSet = errors.New("PEAP-Extension: Reserved bit is not 0")
)
Functions ¶
Types ¶
type ExtensionAVP ¶
func (*ExtensionAVP) Decode ¶
func (eavp *ExtensionAVP) Decode(raw []byte) error
func (ExtensionAVP) Encode ¶
func (eavp ExtensionAVP) Encode() []byte
type ExtensionPayload ¶
type ExtensionPayload struct {
AVPs []ExtensionAVP
}
func (*ExtensionPayload) Decode ¶
func (ep *ExtensionPayload) Decode(raw []byte) error
func (*ExtensionPayload) Encode ¶
func (ep *ExtensionPayload) Encode() ([]byte, error)
func (*ExtensionPayload) Handle ¶
func (ep *ExtensionPayload) Handle(protocol.Context) protocol.Payload
func (*ExtensionPayload) Offerable ¶
func (ep *ExtensionPayload) Offerable() bool
func (*ExtensionPayload) String ¶
func (ep *ExtensionPayload) String() string
func (*ExtensionPayload) Type ¶
func (ep *ExtensionPayload) Type() protocol.Type
type Payload ¶
func (*Payload) Encode ¶
Inner EAP packets in PEAP may not include the header, hence we need a custom decoder https://datatracker.ietf.org/doc/html/draft-kamath-pppext-peapv0-00.txt#section-1.1
func (*Payload) GetEAPSettings ¶
Click to show internal directories.
Click to hide internal directories.