dhcp

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetGemPortId = omci.GetGemPortId

Functions

func GetDhcpLayer added in v0.0.2

func GetDhcpLayer(pkt gopacket.Packet) (*layers.DHCPv4, error)

func GetDhcpMessageType added in v0.0.2

func GetDhcpMessageType(dhcp *layers.DHCPv4) (layers.DHCPMsgType, error)

func GetDhcpPacketType added in v0.0.2

func GetDhcpPacketType(pkt gopacket.Packet) (string, error)

returns the DHCP Layer type or error if it's not a DHCP Packet

func HandleNextBbrPacket added in v0.0.2

func HandleNextBbrPacket(onuId uint32, ponPortId uint32, serialNumber string, sTag int, macAddress net.HardwareAddr, doneChannel chan bool, pkt gopacket.Packet, client openolt.OpenoltClient) error

This method handle the BBR DHCP Packets BBR does not need to do anything but forward the packets in the correct direction

func HandleNextPacket added in v0.0.2

func HandleNextPacket(onuId uint32, ponPortId uint32, serialNumber string, portNo uint32, onuHwAddress net.HardwareAddr, cTag int, onuStateMachine *fsm.FSM, pkt gopacket.Packet, stream openolt.Openolt_EnableIndicationServer) error

FIXME cTag is not used here

func SendDHCPDiscovery added in v0.0.2

func SendDHCPDiscovery(ponPortId uint32, onuId uint32, serialNumber string, portNo uint32, onuStateMachine *fsm.FSM, onuHwAddress net.HardwareAddr, cTag int, stream bbsim.Stream) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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