Documentation ¶
Overview ¶
Package nbp implements handling of an NBP (Network Boot Program) using an URL, e.g. http://[fe80::abcd:efff:fe12:3456]/my-nbp or tftp://10.0.0.1/my-nbp . The NBP information is only added if it is requested by the client.
Note that for DHCPv4 the URL will be split into TFTP server name (option 66) and Bootfile name (option 67), so the scheme will be stripped out, and it will be treated as a TFTP URL. Anything other than host name and file path will be ignored (no port, no query string, etc).
For DHCPv6 OPT_BOOTFILE_URL (option 59) is used, and the value is passed unmodified. If the query string is specified and contains a "param" key, its value is also passed as OPT_BOOTFILE_PARAM (option 60), so it will be duplicated between option 59 and 60.
Example usage:
server6:
- plugins:
- nbp: http://[2001:db8:a::1]/nbp
server4:
- plugins:
- nbp: tftp://10.0.0.254/nbp
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Plugin = plugins.Plugin{
Name: "nbp",
Setup6: setup6,
Setup4: setup4,
}
Plugin wraps plugin registration information
Functions ¶
This section is empty.
Types ¶
This section is empty.