nbp

package
v0.0.0-...-fda5957 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 7 Imported by: 0

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:

server4:

  • plugins:
  • nbp: tftp://10.0.0.254/nbp

Index

Constants

This section is empty.

Variables

View Source
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.

Jump to

Keyboard shortcuts

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