Skip to content

Commit

Permalink
dhcpsvc: imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 7, 2023
1 parent cdb1915 commit 593e9ed
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions internal/dhcpsvc/v6.go
Expand Up @@ -62,7 +62,7 @@ type iface6 struct {
// name is the name of the interface.
name string

// implicitOpts are the options listed in Appendix A of RFC 2131 and
// implicitOpts are the DHCPv6 options listed in RFC 8415 (and others) and
// initialized with default values. It must not have intersections with
// explicitOpts.
implicitOpts layers.DHCPv6Options
Expand Down Expand Up @@ -106,15 +106,12 @@ func newIface6(name string, conf *IPv6Config) (i *iface6) {
// options returns the implicit and explicit options for the interface. The two
// lists are disjoint and the implicit options are initialized with default
// values.
//
// TODO(e.burkov): Add implicit options according to RFC.
func (conf *IPv6Config) options() (implicit, explicit layers.DHCPv6Options) {
// Set default values of host configuration parameters listed in Appendix A
// of RFC-2131. Keep the list sorted by option code for using the binary
// search.
implicit = layers.DHCPv6Options{
// Values From Configuration

// TODO(e.burkov): Add implicit options according to RFC.
}
// Set default values of host configuration parameters listed in RFC 8415.
// Keep the list sorted by option code for using the binary search.
implicit = layers.DHCPv6Options{}

// Set values for explicitly configured options.
for _, exp := range conf.Options {
Expand Down

0 comments on commit 593e9ed

Please sign in to comment.