Giter Club home page Giter Club logo

Comments (7)

insomniacslk avatar insomniacslk commented on June 12, 2024

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.

pmazzini avatar pmazzini commented on June 12, 2024

I think it would be better to have:

dhcp/dhcpv6/client/Client
dhcp/dhcpv4/client/Client

from dhcp.

begetan avatar begetan commented on June 12, 2024

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.

pmazzini avatar pmazzini commented on June 12, 2024

Is this still an issue after PR #260?

from dhcp.

pmazzini avatar pmazzini commented on June 12, 2024

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.

pmazzini avatar pmazzini commented on June 12, 2024

@begetan Is this still an issue?

from dhcp.

pmazzini avatar pmazzini commented on June 12, 2024

I think this is done. Otherwise, feel free to reopen it.

from dhcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.