handler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler4

type Handler4 func(req, resp *dhcpv4.DHCPv4) (*dhcpv4.DHCPv4, bool)

Handler4 behaves like Handler6, but for DHCPv4 packets.

type Handler6

type Handler6 func(req, resp dhcpv6.DHCPv6) (dhcpv6.DHCPv6, bool)

Handler6 is a function that is called on a given DHCPv6 packet. It returns a DHCPv6 packet and a boolean. If the boolean is true, this will be the last handler to be called. The two input packets are the original request, and a response packet. The response packet may or may not be modified by the function, and the result will be returned by the handler. If the returned boolean is true, the returned packet may be nil or invalid, in which case no response will be sent.

Jump to

Keyboard shortcuts

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