Comments (1)
Nice finding, thanks!
For how ugly it may look, I would rather prepend OptionCode
before each line.
The reason is that iota
should not be used for cases like this, when defining constants from some spec, they should only be used for internal use (like enums, but different). Unfortunately this is something I learned only after writing this code. This means that also MessageTypeDiscover
and OpcodeBootRequest
in the same file (and their blocks), should be converted to stop using iota
and prepend the type before the assignment.
Same thing for dhcpv6/types.go
from dhcp.
Related Issues (20)
- Construction of offer message by DHCP server HOT 1
- panic parsing UDP packet HOT 2
- Why are we sorting options during Marshal ? HOT 1
- DHCP Options to support RFC8572 SZTP HOT 2
- RFC 1035 Labels: Support Partial Domain Names as per RFC 4704 Section 4.2 HOT 1
- Panic on DiscoverOffer HOT 1
- Writing a DHCPv4 server on Windows. Is it supported? HOT 7
- OptClientArchType does not get the arch field value HOT 3
- IsOptionRequested does not work with GenericOptionCode HOT 4
- 2 byte code length
- Support Windows HOT 3
- Rapid Solicit not working HOT 2
- Build-scoping issue in dhcpv4/nclient4/conn_unix.go (also: BSD support for nclient4) HOT 1
- dhcpv6 mask and gateway HOT 3
- What does the NumSeconds option stand for? HOT 4
- Add Tinkerbell/smee as project using this project HOT 1
- Missed DHCP Offer packet HOT 2
- Can DHCP Server detect client windows version? HOT 4
- Dynamic DNS Update Support (RFC 2136) HOT 1
- Allow customized MSZ Option 57 instead of hard-coded 1500
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhcp.