Documentation ¶
Index ¶
- func GetDhcpLayer(pkt gopacket.Packet) (*layers.DHCPv4, error)
- func GetDhcpMessageType(dhcp *layers.DHCPv4) (layers.DHCPMsgType, error)
- func GetDhcpPacketType(pkt gopacket.Packet) (string, error)
- func HandleNextBbrPacket(onuId uint32, ponPortId uint32, serialNumber string, doneChannel chan bool, ...) error
- func HandleNextPacket(onuId uint32, ponPortId uint32, serviceName string, serialNumber string, ...) error
- func SendDHCPDiscovery(ponPortId uint32, onuId uint32, serviceName string, cTag int, gemPortId uint32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDhcpMessageType ¶ added in v0.0.2
func GetDhcpMessageType(dhcp *layers.DHCPv4) (layers.DHCPMsgType, error)
func GetDhcpPacketType ¶ added in v0.0.2
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, 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.