Age | Commit message (Collapse) | Author |
|
Signed-off-by: Robel Kitaba <krobel@meta.com>
|
|
Signed-off-by: Emanuele Fia <name29@meta.com>
|
|
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
|
|
|
|
* Adding support for Ciena DHCPv4
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
empty (#444)
* Adding check for empty serial number in opt 61
|
|
* Adding support to parse vendor data for cisco firepower
|
|
* Add dhcp Opt 124(vivc) parsing to ztp
Signed-off-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
|
|
Signed-off-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
Co-authored-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
|
|
* Adding xe interface format for Juniper qfx to list of circuit regexes
Signed-off-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
* Consolidating regexes for et and xe into one entry
Signed-off-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
Co-authored-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
|
|
Simple, nit-picky typo fixes.
|
|
|
|
|
|
|
|
Now the CI will also run golangci-lint
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
|
|
|
|
From:
r := GetRouter(d.Options)
To:
r := d.Router()
|
|
From:
r := d.GetOneOption(OptionRouter).(*OptRouter).Routers
d.UpdateOption(&OptRouter{Routers: []net.IP{net.IP{192, 168, 0, 1}}})
To:
r := GetRouter(d.Options)
d.UpdateOption(OptRouter(net.IP{192, 168, 0, 1}, ...))
|
|
Removes AddOption and GetOption.
RFC 2131 specifies that options may only appear once (Section 4.1). If
an option does appear more than once, its byte values must be
concatenated.
RFC 3396 further specifies that to send options longer than 255 bytes,
one option may be split into multiple option codes, which must be
concatenated back together by the receiver.
Both of these are concerned with the byte representation of options.
Fact is, based on both RFCs one can say that an option may only appear
once, but may be composed of multiple values.
Because an option may appear only once logically in any case, we remove
the AddOption and GetOption functions and leave only UpdateOption and
GetOneOption.
Also remove all additions & checks of the End option - the marshaling
and unmarshaling code is exclusively responsible for that now.
|
|
|
|
|
|
|