Version: v1.12.10 Latest Latest

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0




View Source
const DeviceIdentifierPos = 3


This section is empty.


func AppendAdditionalMEs added in v1.12.8

func AppendAdditionalMEs(srcSlice []byte, reportedMeHdr string, attributes string) ([]byte, error)

func ComputeDownloadSectionsCount added in v1.5.2

func ComputeDownloadSectionsCount(pkt gopacket.Packet) uint32

func CreateActivateSoftwareResponse added in v1.5.2

func CreateActivateSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateCommitSoftwareResponse added in v1.5.2

func CreateCommitSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateCreateResponse added in v1.5.0

func CreateCreateResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)

func CreateDeleteResponse added in v1.5.0

func CreateDeleteResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateDownloadSectionResponse added in v1.5.2

func CreateDownloadSectionResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateEndSoftwareDownloadResponse added in v1.5.2

func CreateEndSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, status me.Results) ([]byte, error)

func CreateGetAllAlarmsNextResponse added in v1.5.2

func CreateGetAllAlarmsNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]byte, error)

func CreateGetAllAlarmsResponse added in v1.5.2

func CreateGetAllAlarmsResponse(tid uint16, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]byte, error)

func CreateGetResponse added in v1.5.0

func CreateGetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, onuSn *openolt.SerialNumber, mds uint8,
	activeImageEntityId uint16, committedImageEntityId uint16, standbyImageVersion string, activeImageVersion string,
	committedImageVersion string, onuDown bool) ([]byte, error)

func CreateMibResetRequest

func CreateMibResetRequest(tid uint16) ([]byte, error)

func CreateMibResetResponse added in v1.5.0

func CreateMibResetResponse(tid uint16) ([]byte, error)

func CreateMibUploadNextRequest

func CreateMibUploadNextRequest(tid uint16, seqNumber uint16) ([]byte, error)

func CreateMibUploadNextResponse added in v1.5.0

func CreateMibUploadNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, mibDb *MibDb) ([]byte, error)

func CreateMibUploadRequest

func CreateMibUploadRequest(tid uint16) ([]byte, error)

func CreateMibUploadResponse added in v1.5.0

func CreateMibUploadResponse(omciMsg *omci.OMCI, mibDb *MibDb) ([]byte, error)

func CreateRebootResponse added in v1.5.0

func CreateRebootResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateSetRequest added in v1.8.0

func CreateSetRequest(managedEntity *me.ManagedEntity, tid uint16) ([]byte, error)

func CreateSetResponse added in v1.5.0

func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)

func CreateStartSoftwareDownloadResponse added in v1.5.2

func CreateStartSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateSyncTimeResponse added in v1.5.1

func CreateSyncTimeResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateTestResponse added in v1.6.1

func CreateTestResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error, me.ClassID, uint16, me.Results)

func CreateTestResult added in v1.6.1

func CreateTestResult(classID me.ClassID, instID uint16, tid uint16) ([]byte, error)

func CreateUniStatusAlarm added in v1.5.0

func CreateUniStatusAlarm(raiseAlarm bool, entityId uint16, sequenceNo uint8) ([]byte, [28]byte)

CreateUniStatusAlarm will generate an Alarm packet to report that the Link is UP or DOWN as a consequence of a SetRequest on PhysicalPathTerminationPointEthernetUniClassID

func HexDecode added in v1.5.2

func HexDecode(pkt []byte) []byte

HexDecode converts the hex encoding to binary

func HexEncode added in v1.5.1

func HexEncode(omciPkt []byte) ([]byte, error)

HexEncode convert binary to hex

func ParseActivateSoftwareRequest added in v1.5.2

func ParseActivateSoftwareRequest(omciPkt gopacket.Packet) (*omci.ActivateSoftwareRequest, error)

func ParseCommitSoftwareRequest added in v1.5.2

func ParseCommitSoftwareRequest(omciPkt gopacket.Packet) (*omci.CommitSoftwareRequest, error)

func ParseCreateRequest added in v1.5.0

func ParseCreateRequest(omciPkt gopacket.Packet) (*omci.CreateRequest, error)

func ParseDeleteRequest added in v1.5.0

func ParseDeleteRequest(omciPkt gopacket.Packet) (*omci.DeleteRequest, error)

func ParseDownloadSectionRequest added in v1.5.2

func ParseDownloadSectionRequest(omciPkt gopacket.Packet) (*omci.DownloadSectionRequest, error)

func ParseEndSoftwareDownloadRequest added in v1.5.2

func ParseEndSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.EndSoftwareDownloadRequest, error)

func ParseGetAllAlarmsNextRequest added in v1.5.2

func ParseGetAllAlarmsNextRequest(omciPkt gopacket.Packet) (*omci.GetAllAlarmsNextRequest, error)

func ParseGetRequest added in v1.5.0

func ParseGetRequest(omciPkt gopacket.Packet) (*omci.GetRequest, error)

func ParseMibUploadNextRequest added in v1.5.0

func ParseMibUploadNextRequest(omciPkt gopacket.Packet) (*omci.MibUploadNextRequest, error)

func ParseOpenOltOmciPacket added in v1.5.0

func ParseOpenOltOmciPacket(pkt []byte) (gopacket.Packet, *omci.OMCI, error)

ParseOpenOltOmciPacket receive an OMCI packet in the openolt format and returns an OMCI Layer as per omci-lib-go

func ParseOpticalLineSupervisionRequest added in v1.6.1

func ParseOpticalLineSupervisionRequest(omciPkt gopacket.Packet) (*omci.OpticalLineSupervisionTestRequest, error)

func ParseRebootRequest added in v1.5.0

func ParseRebootRequest(omciPkt gopacket.Packet) (*omci.RebootRequest, error)

func ParseSetRequest added in v1.5.0

func ParseSetRequest(omciPkt gopacket.Packet) (*omci.SetRequest, error)

func ParseStartSoftwareDownloadRequest added in v1.5.2

func ParseStartSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.StartSoftwareDownloadRequest, error)

func ParseSyncTimeRequest added in v1.5.1

func ParseSyncTimeRequest(omciPkt gopacket.Packet) (*omci.SynchronizeTimeRequest, error)

func Serialize added in v1.5.1

func Serialize(msgType omci.MessageType, request gopacket.SerializableLayer, tid uint16) ([]byte, error)

NOTE this is basically the same as we should probably move it in "omci-lib-go"

func SetTxIdInEncodedPacket added in v1.12.0

func SetTxIdInEncodedPacket(packet []byte, txId uint16) []byte

func ToOctets added in v1.8.0

func ToOctets(str string, size int) []byte


type EntityID added in v1.8.0

type EntityID []byte

func GenerateUniPortEntityId added in v1.8.0

func GenerateUniPortEntityId(id uint32) EntityID

func (EntityID) Equals added in v1.8.0

func (e EntityID) Equals(i EntityID) bool

func (EntityID) FromUint16 added in v1.8.0

func (e EntityID) FromUint16(id uint16) EntityID

func (EntityID) ToString added in v1.8.0

func (e EntityID) ToString() string

func (EntityID) ToUint16 added in v1.8.0

func (e EntityID) ToUint16() uint16

func (EntityID) ToUint32 added in v1.8.0

func (e EntityID) ToUint32() uint32

type MibDb added in v1.8.0

type MibDb struct {
	NumberOfBaselineCommands uint16
	NumberOfExtendedCommands uint16
	// contains filtered or unexported fields

func GenerateMibDatabase added in v1.8.0

func GenerateMibDatabase(ethUniPortCount int, potsUniPortCount int, technology common.PonTechnology) (*MibDb, error)

creates a MIB database for a ONU CircuitPack and CardHolder are static, everything else can be configured

type MibDbEntry added in v1.8.0

type MibDbEntry struct {
	// contains filtered or unexported fields

MibDbEntry contains all the information needed to build a MibUploadNextResponse packet. if Packet has a value all the other fields are ignored and the packet is sent as is.

type OnuAlarmInfo added in v1.5.2

type OnuAlarmInfo struct {
	SequenceNo  uint8
	AlarmBitMap [28]byte

type OnuAlarmInfoMapKey added in v1.5.2

type OnuAlarmInfoMapKey struct {
	MeInstance uint16
	MeClassID  me.ClassID

Jump to

Keyboard shortcuts

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