Giter Site home page Giter Site logo

Comments (6)

hangxie avatar hangxie commented on August 19, 2024

Here are logs:

2017/01/04 23:17:25 [DHCP] Offering to boot 80:e0:1d:d7:2a:5c
2017/01/04 23:17:25 [DHCP] Ignore request from unexpected NIC enp21s0/10.10.10.86
2017/01/04 23:17:25 [DHCP] Offering to boot 80:e0:1d:d7:2a:5c
2017/01/04 23:17:29 [TFTP] Sent "80:e0:1d:d7:2a:5c/0" to 172.16.10.15:2070
2017/01/04 23:17:29 [TFTP] clamping blocksize to "172.16.10.15:2071": 1456 -> 1450
2017/01/04 23:17:29 [TFTP] Sent "80:e0:1d:d7:2a:5c/0" to 172.16.10.15:2071
2017/01/04 23:17:29 [DHCP] Offering to boot 80:e0:1d:d7:2a:5c
2017/01/04 23:17:29 [DHCP] Ignore request from unexpected NIC enp21s0/10.10.10.86
2017/01/04 23:17:29 [DHCP] Offering to boot 80:e0:1d:d7:2a:5c
2017/01/04 23:17:29 [HTTP] Sending ipxe boot script to 172.16.10.15:15471

And netstat:

tcp        0      0 172.16.10.30:18081      0.0.0.0:*               LISTEN      28791/pixiecore
udp        0      0 172.16.10.30:69         0.0.0.0:*                           28791/pixiecore
udp        0      0 172.16.10.30:4011       0.0.0.0:*                           28791/pixiecore
raw        0      0 0.0.0.0:17              0.0.0.0:*               7           28791/pixiecore

from netboot.

panchoh avatar panchoh commented on August 19, 2024

I think this bit me a while a go, but I failed to report it here. Thanks for reporting and fixing it!

i suggest that you create a pull request with your changes, so that danderson can process it more easily. Also, note that you will have to sign a "Contributor License Agreement' (CLA). Don't worry, the googlebot will guide you through it.

Cheers!

from netboot.

danderson avatar danderson commented on August 19, 2024

Thanks for the report! I need to debug some more and figure out why the raw socket behavior is weird. Your patch seems fine, although I will probably write my own by adding more logic to the BPF program, if I can't make the socket work properly.

from netboot.

danderson avatar danderson commented on August 19, 2024

Ah, I suspect I know. My guess is that binding the raw socket to a specific IP filters out broadcast packets, so the dhcp4 package never receives the DHCPDISCOVER. Fortunately, that's easy to fix with a small extension of the BPF program. I'll test that now.

from netboot.

danderson avatar danderson commented on August 19, 2024

@hangxie I think the commit I just pushed fixes -l to work correctly. I've tested both with and without --dhcp-no-bind, and now I can boot machines with a pixiecore listening on a specific address. Can you confirm?

from netboot.

hangxie avatar hangxie commented on August 19, 2024

It works, thanks for the quick fix.

from netboot.

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.