Comments (7)
hey @begetan , we know of this limitation. The same problem has been addressed for the client, and I have a local branch with a partial solution implemented for the server, too. The binding is implemented in https://github.com/insomniacslk/dhcp/blob/master/dhcpv4/bindtodevice_linux.go (same goes for darwin
), so this is just matter of time.
Issue #231 can be prioritized - the only thing to decide is whether to have this structure:
dhcp/client/{Client6,Client4}
or this structure:
dhcp/dhcpv6/client/Client
dhcp/dhcpv4/client/Client
Both have advantages and disadvantages. The same has to be done for server code.
I would like some input from @pmazzini and @hugelgupf on which structure to use, we can discuss it on #231.
from dhcp.
I think it would be better to have:
dhcp/dhcpv6/client/Client
dhcp/dhcpv4/client/Client
from dhcp.
A little update. With local addr = 0.0.0.0 server able to capture broadcast packets, but not able to send. Here is a failed code:
if _, err := conn.WriteTo(r.ToBytes(), peer); err != nil {
glog.Infof("Cannot reply to client: %v", err)
}
There is no error message nor packet replied to requestor. For that reason I've update my proposal and focused it on final separation of Server code: #190
from dhcp.
Is this still an issue after PR #260?
from dhcp.
If you set localAddr = 0.0.0.0 it can capture packets, but from all system's interfaces of course, which isn't acceptable for real operation.
This is being looked at in #310
from dhcp.
@begetan Is this still an issue?
from dhcp.
I think this is done. Otherwise, feel free to reopen it.
from dhcp.
Related Issues (20)
- No support for non-apple boot menus? HOT 10
- can you release a version? HOT 5
- Merge insomniacslk/exdhcp into dhcp/examples
- dhcpv4: Where is method `NewOffer` HOT 1
- how to create a dhcp4 server and assign IP address to clients based on subnetmask? HOT 4
- dhcpv4 malformed packet HOT 3
- Existing check that c.ifaceHWAddr == msg.ClientHWAddr HOT 2
- Implement NewIPv6UDPConn for Windows HOT 1
- 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
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.