MIB

package
v0.0.0-...-bad66ea Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CONTROLLER_ADDRESS = "controller.address"
View Source
const CONTROLLER_GATEWAY = "controller.gateway"
View Source
const CONTROLLER_ID = "controller.id"
View Source
const CONTROLLER_MAC = "controller.MAC"
View Source
const CONTROLLER_NETMASK = "controller.netmask"
View Source
const CONTROLLER_RELEASED = "controller.released"
View Source
const CONTROLLER_VERSION = "controller.version"
View Source
const SYSTEM_SERIALNO = "system.serialno"

Variables

View Source
var OIDs = map[string]types.OID{
	SYSTEM_SERIALNO:     []uint32{1, 3, 6, 1, 4, 1, 65536, 1, 1},
	CONTROLLER_ID:       []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 1},
	CONTROLLER_VERSION:  []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 2},
	CONTROLLER_RELEASED: []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 3},
	CONTROLLER_ADDRESS:  []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 4},
	CONTROLLER_NETMASK:  []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 5},
	CONTROLLER_GATEWAY:  []uint32{1, 3, 6, 1, 4, 1, 65536, 2, 6},
}

Functions

func Get

func Get[T V](tag string, defval T) T

func Init

func Init(address netip.Addr, netmask net.IPMask, gateway netip.Addr, MAC net.HardwareAddr) error

Types

type V

type V interface {
	uint32 | uint16 | string | netip.Addr | net.HardwareAddr
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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