mgmt_2022

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

@generated by the gondn_tlv_gen, DO NOT modify manually

Index

Constants

View Source
const (
	FaceScopeNonLocal = uint64(0)
	FaceScopeLocal    = uint64(1)
)
View Source
const (
	FacePersPersistent = uint64(0)
	FacePersOnDemand   = uint64(1)
	FacePersPermanent  = uint64(2)
)
View Source
const (
	FaceLinkPointToPoint = uint64(0)
	FaceLinkMultiAccess  = uint64(1)
	FaceLinkAdHoc        = uint64(2)
)
View Source
const (
	FaceFlagNoFlag                   = uint64(0)
	FaceFlagLocalFieldsEnabled       = uint64(1)
	FaceFlagLpReliabilityEnabled     = uint64(2)
	FaceFlagCongestionMarkingEnabled = uint64(4)
)
View Source
const (
	RouteFlagNoFlag       = uint64(0)
	RouteFlagChildInherit = uint64(1)
	RouteFlagCapture      = uint64(2)
)
View Source
const (
	FaceEventCreated   = uint64(1)
	FaceEventDestroyed = uint64(2)
	FaceEventUp        = uint64(3)
	FaceEventDown      = uint64(4)
)
View Source
const (
	CsFlagNone    = uint64(0)
	CsEnableAdmit = uint64(1)
	CsEnableServe = uint64(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlArgs

type ControlArgs struct {

	//+field:name
	Name enc.Name `tlv:"0x07"`
	//+field:natural:optional
	FaceId *uint64 `tlv:"0x69"`
	//+field:string:optional
	Uri *string `tlv:"0x72"`
	//+field:string:optional
	LocalUri *string `tlv:"0x81"`
	//+field:natural:optional
	Origin *uint64 `tlv:"0x6f"`
	//+field:natural:optional
	Cost *uint64 `tlv:"0x6a"`
	//+field:natural:optional
	Capacity *uint64 `tlv:"0x83"`
	//+field:natural:optional
	Count *uint64 `tlv:"0x84"`
	//+field:natural:optional
	Flags *uint64 `tlv:"0x6c"`
	//+field:natural:optional
	Mask *uint64 `tlv:"0x70"`
	//+field:struct:Strategy
	Strategy *Strategy `tlv:"0x6b"`
	//+field:natural:optional
	ExpirationPeriod *uint64 `tlv:"0x6d"`
	//+field:natural:optional
	FacePersistency *uint64 `tlv:"0x85"`
	//+field:natural:optional
	BaseCongestionMarkInterval *uint64 `tlv:"0x87"`
	//+field:natural:optional
	DefaultCongestionThreshold *uint64 `tlv:"0x88"`
	//+field:natural:optional
	Mtu *uint64 `tlv:"0x89"`
}

+tlv-model:dict

func DictToControlArgs

func DictToControlArgs(dict map[string]any) (*ControlArgs, error)

func ParseControlArgs

func ParseControlArgs(reader enc.ParseReader, ignoreCritical bool) (*ControlArgs, error)

func (*ControlArgs) Bytes

func (value *ControlArgs) Bytes() []byte

func (*ControlArgs) Encode

func (value *ControlArgs) Encode() enc.Wire

func (*ControlArgs) ToDict

func (value *ControlArgs) ToDict() map[string]any

type ControlArgsEncoder

type ControlArgsEncoder struct {
	Name_length uint

	Strategy_encoder StrategyEncoder
	// contains filtered or unexported fields
}

func (*ControlArgsEncoder) Encode

func (encoder *ControlArgsEncoder) Encode(value *ControlArgs) enc.Wire

func (*ControlArgsEncoder) EncodeInto

func (encoder *ControlArgsEncoder) EncodeInto(value *ControlArgs, buf []byte)

func (*ControlArgsEncoder) Init

func (encoder *ControlArgsEncoder) Init(value *ControlArgs)

type ControlArgsParsingContext

type ControlArgsParsingContext struct {
	Strategy_context StrategyParsingContext
}

func (*ControlArgsParsingContext) Init

func (context *ControlArgsParsingContext) Init()

func (*ControlArgsParsingContext) Parse

func (context *ControlArgsParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ControlArgs, error)

type ControlParameters

type ControlParameters struct {
	//+field:struct:ControlArgs
	Val *ControlArgs `tlv:"0x68"`
}

func ParseControlParameters

func ParseControlParameters(reader enc.ParseReader, ignoreCritical bool) (*ControlParameters, error)

func (*ControlParameters) Bytes

func (value *ControlParameters) Bytes() []byte

func (*ControlParameters) Encode

func (value *ControlParameters) Encode() enc.Wire

type ControlParametersEncoder

type ControlParametersEncoder struct {
	Val_encoder ControlArgsEncoder
	// contains filtered or unexported fields
}

func (*ControlParametersEncoder) Encode

func (encoder *ControlParametersEncoder) Encode(value *ControlParameters) enc.Wire

func (*ControlParametersEncoder) EncodeInto

func (encoder *ControlParametersEncoder) EncodeInto(value *ControlParameters, buf []byte)

func (*ControlParametersEncoder) Init

func (encoder *ControlParametersEncoder) Init(value *ControlParameters)

type ControlParametersParsingContext

type ControlParametersParsingContext struct {
	Val_context ControlArgsParsingContext
}

func (*ControlParametersParsingContext) Init

func (context *ControlParametersParsingContext) Init()

func (*ControlParametersParsingContext) Parse

func (context *ControlParametersParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ControlParameters, error)

type ControlResponse

type ControlResponse struct {
	//+field:struct:ControlResponseVal
	Val *ControlResponseVal `tlv:"0x65"`
}

func ParseControlResponse

func ParseControlResponse(reader enc.ParseReader, ignoreCritical bool) (*ControlResponse, error)

func (*ControlResponse) Bytes

func (value *ControlResponse) Bytes() []byte

func (*ControlResponse) Encode

func (value *ControlResponse) Encode() enc.Wire

type ControlResponseEncoder

type ControlResponseEncoder struct {
	Val_encoder ControlResponseValEncoder
	// contains filtered or unexported fields
}

func (*ControlResponseEncoder) Encode

func (encoder *ControlResponseEncoder) Encode(value *ControlResponse) enc.Wire

func (*ControlResponseEncoder) EncodeInto

func (encoder *ControlResponseEncoder) EncodeInto(value *ControlResponse, buf []byte)

func (*ControlResponseEncoder) Init

func (encoder *ControlResponseEncoder) Init(value *ControlResponse)

type ControlResponseParsingContext

type ControlResponseParsingContext struct {
	Val_context ControlResponseValParsingContext
}

func (*ControlResponseParsingContext) Init

func (context *ControlResponseParsingContext) Init()

func (*ControlResponseParsingContext) Parse

func (context *ControlResponseParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ControlResponse, error)

type ControlResponseVal added in v0.0.4

type ControlResponseVal struct {
	//+field:natural
	StatusCode uint64 `tlv:"0x66"`
	//+field:string
	StatusText string `tlv:"0x67"`
	//+field:struct:ControlArgs
	Params *ControlArgs `tlv:"0x68"`
}

+tlv-model:dict

func DictToControlResponseVal added in v0.0.4

func DictToControlResponseVal(dict map[string]any) (*ControlResponseVal, error)

func ParseControlResponseVal added in v0.0.4

func ParseControlResponseVal(reader enc.ParseReader, ignoreCritical bool) (*ControlResponseVal, error)

func (*ControlResponseVal) Bytes added in v0.0.4

func (value *ControlResponseVal) Bytes() []byte

func (*ControlResponseVal) Encode added in v0.0.4

func (value *ControlResponseVal) Encode() enc.Wire

func (*ControlResponseVal) ToDict added in v0.0.4

func (value *ControlResponseVal) ToDict() map[string]any

type ControlResponseValEncoder added in v0.0.4

type ControlResponseValEncoder struct {
	Params_encoder ControlArgsEncoder
	// contains filtered or unexported fields
}

func (*ControlResponseValEncoder) Encode added in v0.0.4

func (encoder *ControlResponseValEncoder) Encode(value *ControlResponseVal) enc.Wire

func (*ControlResponseValEncoder) EncodeInto added in v0.0.4

func (encoder *ControlResponseValEncoder) EncodeInto(value *ControlResponseVal, buf []byte)

func (*ControlResponseValEncoder) Init added in v0.0.4

func (encoder *ControlResponseValEncoder) Init(value *ControlResponseVal)

type ControlResponseValParsingContext added in v0.0.4

type ControlResponseValParsingContext struct {
	Params_context ControlArgsParsingContext
}

func (*ControlResponseValParsingContext) Init added in v0.0.4

func (context *ControlResponseValParsingContext) Init()

func (*ControlResponseValParsingContext) Parse added in v0.0.4

func (context *ControlResponseValParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ControlResponseVal, error)

type CsInfo

type CsInfo struct {
	//+field:natural
	Capacity uint64 `tlv:"0x83"`
	//+field:natural
	Flags uint64 `tlv:"0x6c"`
	//+field:natural
	NCsEntries uint64 `tlv:"0x87"`
	//+field:natural
	NHits uint64 `tlv:"0x81"`
	//+field:natural
	NMisses uint64 `tlv:"0x82"`
}

func ParseCsInfo

func ParseCsInfo(reader enc.ParseReader, ignoreCritical bool) (*CsInfo, error)

func (*CsInfo) Bytes

func (value *CsInfo) Bytes() []byte

func (*CsInfo) Encode

func (value *CsInfo) Encode() enc.Wire

type CsInfoEncoder

type CsInfoEncoder struct {
	// contains filtered or unexported fields
}

func (*CsInfoEncoder) Encode

func (encoder *CsInfoEncoder) Encode(value *CsInfo) enc.Wire

func (*CsInfoEncoder) EncodeInto

func (encoder *CsInfoEncoder) EncodeInto(value *CsInfo, buf []byte)

func (*CsInfoEncoder) Init

func (encoder *CsInfoEncoder) Init(value *CsInfo)

type CsInfoMsg added in v0.0.6

type CsInfoMsg struct {
	//+field:struct:CsInfo
	CsInfo *CsInfo `tlv:"0x80"`
}

func ParseCsInfoMsg added in v0.0.6

func ParseCsInfoMsg(reader enc.ParseReader, ignoreCritical bool) (*CsInfoMsg, error)

func (*CsInfoMsg) Bytes added in v0.0.6

func (value *CsInfoMsg) Bytes() []byte

func (*CsInfoMsg) Encode added in v0.0.6

func (value *CsInfoMsg) Encode() enc.Wire

type CsInfoMsgEncoder added in v0.0.6

type CsInfoMsgEncoder struct {
	CsInfo_encoder CsInfoEncoder
	// contains filtered or unexported fields
}

func (*CsInfoMsgEncoder) Encode added in v0.0.6

func (encoder *CsInfoMsgEncoder) Encode(value *CsInfoMsg) enc.Wire

func (*CsInfoMsgEncoder) EncodeInto added in v0.0.6

func (encoder *CsInfoMsgEncoder) EncodeInto(value *CsInfoMsg, buf []byte)

func (*CsInfoMsgEncoder) Init added in v0.0.6

func (encoder *CsInfoMsgEncoder) Init(value *CsInfoMsg)

type CsInfoMsgParsingContext added in v0.0.6

type CsInfoMsgParsingContext struct {
	CsInfo_context CsInfoParsingContext
}

func (*CsInfoMsgParsingContext) Init added in v0.0.6

func (context *CsInfoMsgParsingContext) Init()

func (*CsInfoMsgParsingContext) Parse added in v0.0.6

func (context *CsInfoMsgParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CsInfoMsg, error)

type CsInfoParsingContext

type CsInfoParsingContext struct {
}

func (*CsInfoParsingContext) Init

func (context *CsInfoParsingContext) Init()

func (*CsInfoParsingContext) Parse

func (context *CsInfoParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CsInfo, error)

type CsQuery

type CsQuery struct {
	Name            enc.Name
	PacketSize      uint64
	FreshnessPeriod uint64
}

No Tlv numbers assigned yet

type FaceEventNotification

type FaceEventNotification struct {
	//+field:struct:FaceEventNotificationValue
	Val *FaceEventNotificationValue `tlv:"0xc0"`
}

func ParseFaceEventNotification

func ParseFaceEventNotification(reader enc.ParseReader, ignoreCritical bool) (*FaceEventNotification, error)

func (*FaceEventNotification) Bytes

func (value *FaceEventNotification) Bytes() []byte

func (*FaceEventNotification) Encode

func (value *FaceEventNotification) Encode() enc.Wire

type FaceEventNotificationEncoder

type FaceEventNotificationEncoder struct {
	Val_encoder FaceEventNotificationValueEncoder
	// contains filtered or unexported fields
}

func (*FaceEventNotificationEncoder) Encode

func (*FaceEventNotificationEncoder) EncodeInto

func (encoder *FaceEventNotificationEncoder) EncodeInto(value *FaceEventNotification, buf []byte)

func (*FaceEventNotificationEncoder) Init

type FaceEventNotificationParsingContext

type FaceEventNotificationParsingContext struct {
	Val_context FaceEventNotificationValueParsingContext
}

func (*FaceEventNotificationParsingContext) Init

func (context *FaceEventNotificationParsingContext) Init()

func (*FaceEventNotificationParsingContext) Parse

func (context *FaceEventNotificationParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FaceEventNotification, error)

type FaceEventNotificationValue

type FaceEventNotificationValue struct {
	//+field:natural
	FaceEventKind uint64 `tlv:"0xc1"`
	//+field:natural
	FaceId uint64 `tlv:"0x69"`
	//+field:string
	Uri string `tlv:"0x72"`
	//+field:string
	LocalUri string `tlv:"0x81"`
	//+field:natural
	FaceScope uint64 `tlv:"0x84"`
	//+field:natural
	FacePersistency uint64 `tlv:"0x85"`
	//+field:natural
	LinkType uint64 `tlv:"0x86"`
	//+field:natural
	Flags uint64 `tlv:"0x6c"`
}

func ParseFaceEventNotificationValue

func ParseFaceEventNotificationValue(reader enc.ParseReader, ignoreCritical bool) (*FaceEventNotificationValue, error)

func (*FaceEventNotificationValue) Bytes

func (value *FaceEventNotificationValue) Bytes() []byte

func (*FaceEventNotificationValue) Encode

func (value *FaceEventNotificationValue) Encode() enc.Wire

type FaceEventNotificationValueEncoder

type FaceEventNotificationValueEncoder struct {
	// contains filtered or unexported fields
}

func (*FaceEventNotificationValueEncoder) Encode

func (*FaceEventNotificationValueEncoder) EncodeInto

func (encoder *FaceEventNotificationValueEncoder) EncodeInto(value *FaceEventNotificationValue, buf []byte)

func (*FaceEventNotificationValueEncoder) Init

type FaceEventNotificationValueParsingContext

type FaceEventNotificationValueParsingContext struct {
}

func (*FaceEventNotificationValueParsingContext) Init

func (*FaceEventNotificationValueParsingContext) Parse

type FaceQueryFilter

type FaceQueryFilter struct {
	//+field:struct:FaceQueryFilterValue
	Val *FaceQueryFilterValue `tlv:"0x96"`
}

func ParseFaceQueryFilter

func ParseFaceQueryFilter(reader enc.ParseReader, ignoreCritical bool) (*FaceQueryFilter, error)

func (*FaceQueryFilter) Bytes

func (value *FaceQueryFilter) Bytes() []byte

func (*FaceQueryFilter) Encode

func (value *FaceQueryFilter) Encode() enc.Wire

type FaceQueryFilterEncoder

type FaceQueryFilterEncoder struct {
	Val_encoder FaceQueryFilterValueEncoder
	// contains filtered or unexported fields
}

func (*FaceQueryFilterEncoder) Encode

func (encoder *FaceQueryFilterEncoder) Encode(value *FaceQueryFilter) enc.Wire

func (*FaceQueryFilterEncoder) EncodeInto

func (encoder *FaceQueryFilterEncoder) EncodeInto(value *FaceQueryFilter, buf []byte)

func (*FaceQueryFilterEncoder) Init

func (encoder *FaceQueryFilterEncoder) Init(value *FaceQueryFilter)

type FaceQueryFilterParsingContext

type FaceQueryFilterParsingContext struct {
	Val_context FaceQueryFilterValueParsingContext
}

func (*FaceQueryFilterParsingContext) Init

func (context *FaceQueryFilterParsingContext) Init()

func (*FaceQueryFilterParsingContext) Parse

func (context *FaceQueryFilterParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FaceQueryFilter, error)

type FaceQueryFilterValue

type FaceQueryFilterValue struct {
	//+field:natural:optional
	FaceId *uint64 `tlv:"0x69"`
	//+field:string:optional
	UriScheme *string `tlv:"0x83"`
	//+field:string:optional
	Uri *string `tlv:"0x72"`
	//+field:string:optional
	LocalUri *string `tlv:"0x81"`
	//+field:natural:optional
	FaceScope *uint64 `tlv:"0x84"`
	//+field:natural:optional
	FacePersistency *uint64 `tlv:"0x85"`
	//+field:natural:optional
	LinkType *uint64 `tlv:"0x86"`
}

func ParseFaceQueryFilterValue

func ParseFaceQueryFilterValue(reader enc.ParseReader, ignoreCritical bool) (*FaceQueryFilterValue, error)

func (*FaceQueryFilterValue) Bytes

func (value *FaceQueryFilterValue) Bytes() []byte

func (*FaceQueryFilterValue) Encode

func (value *FaceQueryFilterValue) Encode() enc.Wire

type FaceQueryFilterValueEncoder

type FaceQueryFilterValueEncoder struct {
	// contains filtered or unexported fields
}

func (*FaceQueryFilterValueEncoder) Encode

func (encoder *FaceQueryFilterValueEncoder) Encode(value *FaceQueryFilterValue) enc.Wire

func (*FaceQueryFilterValueEncoder) EncodeInto

func (encoder *FaceQueryFilterValueEncoder) EncodeInto(value *FaceQueryFilterValue, buf []byte)

func (*FaceQueryFilterValueEncoder) Init

func (encoder *FaceQueryFilterValueEncoder) Init(value *FaceQueryFilterValue)

type FaceQueryFilterValueParsingContext

type FaceQueryFilterValueParsingContext struct {
}

func (*FaceQueryFilterValueParsingContext) Init

func (context *FaceQueryFilterValueParsingContext) Init()

func (*FaceQueryFilterValueParsingContext) Parse

func (context *FaceQueryFilterValueParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FaceQueryFilterValue, error)

type FaceStatus

type FaceStatus struct {
	//+field:natural
	FaceId uint64 `tlv:"0x69"`
	//+field:string
	Uri string `tlv:"0x72"`
	//+field:string
	LocalUri string `tlv:"0x81"`
	//+field:natural:optional
	ExpirationPeriod *uint64 `tlv:"0x6d"`
	//+field:natural
	FaceScope uint64 `tlv:"0x84"`
	//+field:natural
	FacePersistency uint64 `tlv:"0x85"`
	//+field:natural
	LinkType uint64 `tlv:"0x86"`
	//+field:natural:optional
	BaseCongestionMarkInterval *uint64 `tlv:"0x87"`
	//+field:natural:optional
	DefaultCongestionThreshold *uint64 `tlv:"0x88"`
	//+field:natural:optional
	Mtu *uint64 `tlv:"0x89"`

	//+field:natural
	NInInterests uint64 `tlv:"0x90"`
	//+field:natural
	NInData uint64 `tlv:"0x91"`
	//+field:natural
	NInNacks uint64 `tlv:"0x97"`
	//+field:natural
	NOutInterests uint64 `tlv:"0x92"`
	//+field:natural
	NOutData uint64 `tlv:"0x93"`
	//+field:natural
	NOutNacks uint64 `tlv:"0x98"`
	//+field:natural
	NInBytes uint64 `tlv:"0x94"`
	//+field:natural
	NOutBytes uint64 `tlv:"0x95"`

	//+field:natural
	Flags uint64 `tlv:"0x6c"`
}

func ParseFaceStatus

func ParseFaceStatus(reader enc.ParseReader, ignoreCritical bool) (*FaceStatus, error)

func (*FaceStatus) Bytes

func (value *FaceStatus) Bytes() []byte

func (*FaceStatus) Encode

func (value *FaceStatus) Encode() enc.Wire

type FaceStatusEncoder

type FaceStatusEncoder struct {
	// contains filtered or unexported fields
}

func (*FaceStatusEncoder) Encode

func (encoder *FaceStatusEncoder) Encode(value *FaceStatus) enc.Wire

func (*FaceStatusEncoder) EncodeInto

func (encoder *FaceStatusEncoder) EncodeInto(value *FaceStatus, buf []byte)

func (*FaceStatusEncoder) Init

func (encoder *FaceStatusEncoder) Init(value *FaceStatus)

type FaceStatusMsg

type FaceStatusMsg struct {
	//+field:sequence:*FaceStatus:struct:FaceStatus
	Vals []*FaceStatus `tlv:"0x80"`
}

func ParseFaceStatusMsg

func ParseFaceStatusMsg(reader enc.ParseReader, ignoreCritical bool) (*FaceStatusMsg, error)

func (*FaceStatusMsg) Bytes

func (value *FaceStatusMsg) Bytes() []byte

func (*FaceStatusMsg) Encode

func (value *FaceStatusMsg) Encode() enc.Wire

type FaceStatusMsgEncoder

type FaceStatusMsgEncoder struct {
	Vals_subencoder []struct {
		Vals_encoder FaceStatusEncoder
	}
	// contains filtered or unexported fields
}

func (*FaceStatusMsgEncoder) Encode

func (encoder *FaceStatusMsgEncoder) Encode(value *FaceStatusMsg) enc.Wire

func (*FaceStatusMsgEncoder) EncodeInto

func (encoder *FaceStatusMsgEncoder) EncodeInto(value *FaceStatusMsg, buf []byte)

func (*FaceStatusMsgEncoder) Init

func (encoder *FaceStatusMsgEncoder) Init(value *FaceStatusMsg)

type FaceStatusMsgParsingContext

type FaceStatusMsgParsingContext struct {
	Vals_context FaceStatusParsingContext
}

func (*FaceStatusMsgParsingContext) Init

func (context *FaceStatusMsgParsingContext) Init()

func (*FaceStatusMsgParsingContext) Parse

func (context *FaceStatusMsgParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FaceStatusMsg, error)

type FaceStatusParsingContext

type FaceStatusParsingContext struct {
}

func (*FaceStatusParsingContext) Init

func (context *FaceStatusParsingContext) Init()

func (*FaceStatusParsingContext) Parse

func (context *FaceStatusParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FaceStatus, error)

type FibEntry

type FibEntry struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
	//+field:sequence:*NextHopRecord:struct:NextHopRecord
	NextHopRecords []*NextHopRecord `tlv:"0x81"`
}

func ParseFibEntry

func ParseFibEntry(reader enc.ParseReader, ignoreCritical bool) (*FibEntry, error)

func (*FibEntry) Bytes

func (value *FibEntry) Bytes() []byte

func (*FibEntry) Encode

func (value *FibEntry) Encode() enc.Wire

type FibEntryEncoder

type FibEntryEncoder struct {
	Name_length               uint
	NextHopRecords_subencoder []struct {
		NextHopRecords_encoder NextHopRecordEncoder
	}
	// contains filtered or unexported fields
}

func (*FibEntryEncoder) Encode

func (encoder *FibEntryEncoder) Encode(value *FibEntry) enc.Wire

func (*FibEntryEncoder) EncodeInto

func (encoder *FibEntryEncoder) EncodeInto(value *FibEntry, buf []byte)

func (*FibEntryEncoder) Init

func (encoder *FibEntryEncoder) Init(value *FibEntry)

type FibEntryParsingContext

type FibEntryParsingContext struct {
	NextHopRecords_context NextHopRecordParsingContext
}

func (*FibEntryParsingContext) Init

func (context *FibEntryParsingContext) Init()

func (*FibEntryParsingContext) Parse

func (context *FibEntryParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FibEntry, error)

type FibStatus

type FibStatus struct {
	//+field:sequence:*FibEntry:struct:FibEntry
	Entries []*FibEntry `tlv:"0x80"`
}

func ParseFibStatus

func ParseFibStatus(reader enc.ParseReader, ignoreCritical bool) (*FibStatus, error)

func (*FibStatus) Bytes

func (value *FibStatus) Bytes() []byte

func (*FibStatus) Encode

func (value *FibStatus) Encode() enc.Wire

type FibStatusEncoder

type FibStatusEncoder struct {
	Entries_subencoder []struct {
		Entries_encoder FibEntryEncoder
	}
	// contains filtered or unexported fields
}

func (*FibStatusEncoder) Encode

func (encoder *FibStatusEncoder) Encode(value *FibStatus) enc.Wire

func (*FibStatusEncoder) EncodeInto

func (encoder *FibStatusEncoder) EncodeInto(value *FibStatus, buf []byte)

func (*FibStatusEncoder) Init

func (encoder *FibStatusEncoder) Init(value *FibStatus)

type FibStatusParsingContext

type FibStatusParsingContext struct {
	Entries_context FibEntryParsingContext
}

func (*FibStatusParsingContext) Init

func (context *FibStatusParsingContext) Init()

func (*FibStatusParsingContext) Parse

func (context *FibStatusParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*FibStatus, error)

type GeneralStatus

type GeneralStatus struct {
	//+field:string
	NfdVersion string `tlv:"0x80"`
	//+field:natural
	StartTimestamp uint64 `tlv:"0x81"`
	//+field:natural
	CurrentTimestamp uint64 `tlv:"0x82"`
	//+field:natural
	NNameTreeEntries uint64 `tlv:"0x83"`
	//+field:natural
	NFibEntries uint64 `tlv:"0x84"`
	//+field:natural
	NPitEntries uint64 `tlv:"0x85"`
	//+field:natural
	NMeasurementsEntries uint64 `tlv:"0x86"`
	//+field:natural
	NCsEntries uint64 `tlv:"0x87"`
	//+field:natural
	NInInterests uint64 `tlv:"0x90"`
	//+field:natural
	NInData uint64 `tlv:"0x91"`
	//+field:natural
	NInNacks uint64 `tlv:"0x97"`
	//+field:natural
	NOutInterests uint64 `tlv:"0x92"`
	//+field:natural
	NOutData uint64 `tlv:"0x93"`
	//+field:natural
	NOutNacks uint64 `tlv:"0x98"`
	//+field:natural
	NSatisfiedInterests uint64 `tlv:"0x99"`
	//+field:natural
	NUnsatisfiedInterests uint64 `tlv:"0x9a"`

	//+field:natural:optional
	NFragmentationError *uint64 `tlv:"0xc8"`
	//+field:natural:optional
	NOutOverMtu *uint64 `tlv:"0xc9"`
	//+field:natural:optional
	NInLpInvalid *uint64 `tlv:"0xca"`
	//+field:natural:optional
	NReassemblyTimeouts *uint64 `tlv:"0xcb"`
	//+field:natural:optional
	NInNetInvalid *uint64 `tlv:"0xcc"`
	//+field:natural:optional
	NAcknowledged *uint64 `tlv:"0xcd"`
	//+field:natural:optional
	NRetransmitted *uint64 `tlv:"0xce"`
	//+field:natural:optional
	NRetxExhausted *uint64 `tlv:"0xcf"`
	//+field:natural:optional
	NConngestionMarked *uint64 `tlv:"0xd0"`
}

func ParseGeneralStatus

func ParseGeneralStatus(reader enc.ParseReader, ignoreCritical bool) (*GeneralStatus, error)

func (*GeneralStatus) Bytes

func (value *GeneralStatus) Bytes() []byte

func (*GeneralStatus) Encode

func (value *GeneralStatus) Encode() enc.Wire

type GeneralStatusEncoder

type GeneralStatusEncoder struct {
	// contains filtered or unexported fields
}

func (*GeneralStatusEncoder) Encode

func (encoder *GeneralStatusEncoder) Encode(value *GeneralStatus) enc.Wire

func (*GeneralStatusEncoder) EncodeInto

func (encoder *GeneralStatusEncoder) EncodeInto(value *GeneralStatus, buf []byte)

func (*GeneralStatusEncoder) Init

func (encoder *GeneralStatusEncoder) Init(value *GeneralStatus)

type GeneralStatusParsingContext

type GeneralStatusParsingContext struct {
}

func (*GeneralStatusParsingContext) Init

func (context *GeneralStatusParsingContext) Init()

func (*GeneralStatusParsingContext) Parse

func (context *GeneralStatusParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*GeneralStatus, error)

type MgmtConfig

type MgmtConfig struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(local bool, signer ndn.Signer, spec ndn.Spec) *MgmtConfig

func (*MgmtConfig) MakeCmd

func (mgmt *MgmtConfig) MakeCmd(module string, cmd string,
	args *ControlArgs, config *ndn.InterestConfig) (*ndn.EncodedInterest, error)

MakeCmd makes and encodes a NFD mgmt command Interest. Currently NFD and YaNFD supports signed Interest.

func (*MgmtConfig) MakeCmdDict

func (mgmt *MgmtConfig) MakeCmdDict(module string, cmd string, args map[string]any,
	config *ndn.InterestConfig) (*ndn.EncodedInterest, error)

MakeCmdDict is the same as MakeCmd but receives a map[string]any as arguments.

type NextHopRecord

type NextHopRecord struct {
	//+field:natural
	FaceId uint64 `tlv:"0x69"`
	//+field:natural
	Cost uint64 `tlv:"0x6a"`
}

func ParseNextHopRecord

func ParseNextHopRecord(reader enc.ParseReader, ignoreCritical bool) (*NextHopRecord, error)

func (*NextHopRecord) Bytes

func (value *NextHopRecord) Bytes() []byte

func (*NextHopRecord) Encode

func (value *NextHopRecord) Encode() enc.Wire

type NextHopRecordEncoder

type NextHopRecordEncoder struct {
	// contains filtered or unexported fields
}

func (*NextHopRecordEncoder) Encode

func (encoder *NextHopRecordEncoder) Encode(value *NextHopRecord) enc.Wire

func (*NextHopRecordEncoder) EncodeInto

func (encoder *NextHopRecordEncoder) EncodeInto(value *NextHopRecord, buf []byte)

func (*NextHopRecordEncoder) Init

func (encoder *NextHopRecordEncoder) Init(value *NextHopRecord)

type NextHopRecordParsingContext

type NextHopRecordParsingContext struct {
}

func (*NextHopRecordParsingContext) Init

func (context *NextHopRecordParsingContext) Init()

func (*NextHopRecordParsingContext) Parse

func (context *NextHopRecordParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NextHopRecord, error)

type RibEntry

type RibEntry struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
	//+field:sequence:*Route:struct:Route
	Routes []*Route `tlv:"0x81"`
}

func ParseRibEntry

func ParseRibEntry(reader enc.ParseReader, ignoreCritical bool) (*RibEntry, error)

func (*RibEntry) Bytes

func (value *RibEntry) Bytes() []byte

func (*RibEntry) Encode

func (value *RibEntry) Encode() enc.Wire

type RibEntryEncoder

type RibEntryEncoder struct {
	Name_length       uint
	Routes_subencoder []struct {
		Routes_encoder RouteEncoder
	}
	// contains filtered or unexported fields
}

func (*RibEntryEncoder) Encode

func (encoder *RibEntryEncoder) Encode(value *RibEntry) enc.Wire

func (*RibEntryEncoder) EncodeInto

func (encoder *RibEntryEncoder) EncodeInto(value *RibEntry, buf []byte)

func (*RibEntryEncoder) Init

func (encoder *RibEntryEncoder) Init(value *RibEntry)

type RibEntryParsingContext

type RibEntryParsingContext struct {
	Routes_context RouteParsingContext
}

func (*RibEntryParsingContext) Init

func (context *RibEntryParsingContext) Init()

func (*RibEntryParsingContext) Parse

func (context *RibEntryParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*RibEntry, error)

type RibStatus

type RibStatus struct {
	//+field:sequence:*RibEntry:struct:RibEntry
	Entries []*RibEntry `tlv:"0x80"`
}

func ParseRibStatus

func ParseRibStatus(reader enc.ParseReader, ignoreCritical bool) (*RibStatus, error)

func (*RibStatus) Bytes

func (value *RibStatus) Bytes() []byte

func (*RibStatus) Encode

func (value *RibStatus) Encode() enc.Wire

type RibStatusEncoder

type RibStatusEncoder struct {
	Entries_subencoder []struct {
		Entries_encoder RibEntryEncoder
	}
	// contains filtered or unexported fields
}

func (*RibStatusEncoder) Encode

func (encoder *RibStatusEncoder) Encode(value *RibStatus) enc.Wire

func (*RibStatusEncoder) EncodeInto

func (encoder *RibStatusEncoder) EncodeInto(value *RibStatus, buf []byte)

func (*RibStatusEncoder) Init

func (encoder *RibStatusEncoder) Init(value *RibStatus)

type RibStatusParsingContext

type RibStatusParsingContext struct {
	Entries_context RibEntryParsingContext
}

func (*RibStatusParsingContext) Init

func (context *RibStatusParsingContext) Init()

func (*RibStatusParsingContext) Parse

func (context *RibStatusParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*RibStatus, error)

type Route

type Route struct {
	//+field:natural
	FaceId uint64 `tlv:"0x69"`
	//+field:natural
	Origin uint64 `tlv:"0x6f"`
	//+field:natural
	Cost uint64 `tlv:"0x6a"`
	//+field:natural
	Flags uint64 `tlv:"0x6c"`
	//+field:natural:optional
	ExpirationPeriod *uint64 `tlv:"0x6d"`
}

func ParseRoute

func ParseRoute(reader enc.ParseReader, ignoreCritical bool) (*Route, error)

func (*Route) Bytes

func (value *Route) Bytes() []byte

func (*Route) Encode

func (value *Route) Encode() enc.Wire

type RouteEncoder

type RouteEncoder struct {
	// contains filtered or unexported fields
}

func (*RouteEncoder) Encode

func (encoder *RouteEncoder) Encode(value *Route) enc.Wire

func (*RouteEncoder) EncodeInto

func (encoder *RouteEncoder) EncodeInto(value *Route, buf []byte)

func (*RouteEncoder) Init

func (encoder *RouteEncoder) Init(value *Route)

type RouteParsingContext

type RouteParsingContext struct {
}

func (*RouteParsingContext) Init

func (context *RouteParsingContext) Init()

func (*RouteParsingContext) Parse

func (context *RouteParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Route, error)

type Strategy

type Strategy struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
}

+tlv-model:dict

func DictToStrategy

func DictToStrategy(dict map[string]any) (*Strategy, error)

func ParseStrategy

func ParseStrategy(reader enc.ParseReader, ignoreCritical bool) (*Strategy, error)

func (*Strategy) Bytes

func (value *Strategy) Bytes() []byte

func (*Strategy) Encode

func (value *Strategy) Encode() enc.Wire

func (*Strategy) ToDict

func (value *Strategy) ToDict() map[string]any

type StrategyChoice

type StrategyChoice struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
	//+field:struct:Strategy
	Strategy *Strategy `tlv:"0x6b"`
}

func ParseStrategyChoice

func ParseStrategyChoice(reader enc.ParseReader, ignoreCritical bool) (*StrategyChoice, error)

func (*StrategyChoice) Bytes

func (value *StrategyChoice) Bytes() []byte

func (*StrategyChoice) Encode

func (value *StrategyChoice) Encode() enc.Wire

type StrategyChoiceEncoder

type StrategyChoiceEncoder struct {
	Name_length      uint
	Strategy_encoder StrategyEncoder
	// contains filtered or unexported fields
}

func (*StrategyChoiceEncoder) Encode

func (encoder *StrategyChoiceEncoder) Encode(value *StrategyChoice) enc.Wire

func (*StrategyChoiceEncoder) EncodeInto

func (encoder *StrategyChoiceEncoder) EncodeInto(value *StrategyChoice, buf []byte)

func (*StrategyChoiceEncoder) Init

func (encoder *StrategyChoiceEncoder) Init(value *StrategyChoice)

type StrategyChoiceMsg

type StrategyChoiceMsg struct {
	//+field:sequence:*StrategyChoice:struct:StrategyChoice
	StrategyChoices []*StrategyChoice `tlv:"0x80"`
}

func ParseStrategyChoiceMsg

func ParseStrategyChoiceMsg(reader enc.ParseReader, ignoreCritical bool) (*StrategyChoiceMsg, error)

func (*StrategyChoiceMsg) Bytes

func (value *StrategyChoiceMsg) Bytes() []byte

func (*StrategyChoiceMsg) Encode

func (value *StrategyChoiceMsg) Encode() enc.Wire

type StrategyChoiceMsgEncoder

type StrategyChoiceMsgEncoder struct {
	StrategyChoices_subencoder []struct {
		StrategyChoices_encoder StrategyChoiceEncoder
	}
	// contains filtered or unexported fields
}

func (*StrategyChoiceMsgEncoder) Encode

func (encoder *StrategyChoiceMsgEncoder) Encode(value *StrategyChoiceMsg) enc.Wire

func (*StrategyChoiceMsgEncoder) EncodeInto

func (encoder *StrategyChoiceMsgEncoder) EncodeInto(value *StrategyChoiceMsg, buf []byte)

func (*StrategyChoiceMsgEncoder) Init

func (encoder *StrategyChoiceMsgEncoder) Init(value *StrategyChoiceMsg)

type StrategyChoiceMsgParsingContext

type StrategyChoiceMsgParsingContext struct {
	StrategyChoices_context StrategyChoiceParsingContext
}

func (*StrategyChoiceMsgParsingContext) Init

func (context *StrategyChoiceMsgParsingContext) Init()

func (*StrategyChoiceMsgParsingContext) Parse

func (context *StrategyChoiceMsgParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*StrategyChoiceMsg, error)

type StrategyChoiceParsingContext

type StrategyChoiceParsingContext struct {
	Strategy_context StrategyParsingContext
}

func (*StrategyChoiceParsingContext) Init

func (context *StrategyChoiceParsingContext) Init()

func (*StrategyChoiceParsingContext) Parse

func (context *StrategyChoiceParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*StrategyChoice, error)

type StrategyEncoder

type StrategyEncoder struct {
	Name_length uint
	// contains filtered or unexported fields
}

func (*StrategyEncoder) Encode

func (encoder *StrategyEncoder) Encode(value *Strategy) enc.Wire

func (*StrategyEncoder) EncodeInto

func (encoder *StrategyEncoder) EncodeInto(value *Strategy, buf []byte)

func (*StrategyEncoder) Init

func (encoder *StrategyEncoder) Init(value *Strategy)

type StrategyParsingContext

type StrategyParsingContext struct {
}

func (*StrategyParsingContext) Init

func (context *StrategyParsingContext) Init()

func (*StrategyParsingContext) Parse

func (context *StrategyParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Strategy, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL