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, tag int, gemPortId uint32, ...) error
- type DHCPServer
- type DHCPServerIf
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 ¶
type DHCPServer ¶ added in v1.4.0
type DHCPServer struct {
DHCPServerMacAddress net.HardwareAddr
}
func NewDHCPServer ¶ added in v1.4.0
func NewDHCPServer() *DHCPServer
func (DHCPServer) HandleServerPacket ¶ added in v1.4.0
HandleServerPacket is a very simple implementation of a DHCP server that only replies to DHCPDiscover and DHCPRequest packets
Click to show internal directories.
Click to hide internal directories.