Giter VIP home page Giter VIP logo

tools's People

Contributors

dependabot[bot] avatar stapelberg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

n3tg88 mikispag

tools's Issues

rtr7-recovery-init does not boot?!

Not quite sure what’s happening. The router loads bootx64.efi, ldlinux.e64, vmlinuz and the initrd, but then the screen stays black (haven’t checked serial output yet) and eventually the router reboots.

rtr7-recover: incorrect error reporting

This use of errgroups silently swallows errors:

eg.Go(func() error { return dhcp4.Serve(cn, handler) })
cn4011, err := conn.NewUDP4BoundListener(*ifname, ":4011")
if err != nil {
return fmt.Errorf("NewUDP4BoundListener(%q, %q): %v", *ifname, ":67", err)
}
eg.Go(func() error { return dhcp4.Serve(cn4011, handler) })

The problem is that eg.Wait() “blocks until all function calls from the Go method have returned”, even if any of the methods returned an error.

One way to fix this is to use errgroup.WithContext and thereby cancel the other goroutines.

rtr7-recover: hands out DHCP leases to other devices after initial PXE lease

Looks like the MAC address filter is still not quite right:

2022/06/24 08:49:50 [dhcp] dc:a6:32:02:ba:2f DHCPDISCOVER → ignore (PXEClient vendor class option not found)
2022/06/24 08:49:51 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → ignore (PXEClient vendor class option not found)
2022/06/24 08:49:52 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:52 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:53 [tftp] bootx64.efi: sending block 0: code=8, error: User aborted the transfer
2022/06/24 08:49:53 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:53 [tftp] bootx64.efi: success
2022/06/24 08:49:53 [dhcp] a8:a1:59:3a:9c:55 DHCPDISCOVER → DHCPOFFER
2022/06/24 08:49:56 [dhcp] dc:a6:32:02:ba:14 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:56 [dhcp] dc:a6:32:02:ba:2f DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:57 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:57 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:57 [tftp] ldlinux.e64: success
2022/06/24 08:49:57 [tftp] pxelinux.cfg/01-a8-a1-59-3a-9c-55: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A000001: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A00000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A0000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A00: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A0: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/default: success
2022/06/24 08:49:59 [tftp] vmlinuz: success
2022/06/24 08:50:01 [dhcp] 5c:96:66:4e:be:ea DHCPDISCOVER → DHCPOFFER
2022/06/24 08:50:01 [dhcp] 5c:96:66:4e:be:ea DHCPREQUEST → DHCPACK

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.