diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-07-31 17:12:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 17:12:40 +0100 |
commit | bcf643be1286495de75817fd1edf731ddbd2195a (patch) | |
tree | 945d12ed3d8a11ebc55dd2f8d6ee1304ecd2b20f /dhcpv6/modifiers.go | |
parent | c6894ea160d82b4a326ebab94faaebd090192a7b (diff) | |
parent | 7319b8f8a1a601b5e69c5bcaa33914c0f85b92e6 (diff) |
DHCPv6: Rename Option constants to CamelCase (#106)
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 54285cd..32d11ac 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -29,15 +29,15 @@ func WithNetboot(d DHCPv6) DHCPv6 { log.Printf("WithNetboot: not a DHCPv6Message") return d } - // add OPT_BOOTFILE_URL and OPT_BOOTFILE_PARAM - opt := msg.GetOneOption(OPTION_ORO) + // add OptionBootfileURL and OptionBootfileParam + opt := msg.GetOneOption(OptionORO) if opt == nil { opt = &OptRequestedOption{} } // TODO only add options if they are not there already oro := opt.(*OptRequestedOption) - oro.AddRequestedOption(OPT_BOOTFILE_URL) - oro.AddRequestedOption(OPT_BOOTFILE_PARAM) + oro.AddRequestedOption(OptionBootfileURL) + oro.AddRequestedOption(OptionBootfileParam) msg.UpdateOption(oro) return d } |