busybox
coredhcp
busybox | coredhcp | |
---|---|---|
9 | 2 | |
1,533 | 903 | |
1.7% | 0.7% | |
1.7 | 6.3 | |
4 months ago | about 2 months ago | |
C | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
busybox
-
Ash: A Gentle Primer
Also known as Dash in Debian (it's satandard POSIX shell) and sh in Busybox that sadly tainted the original BSD source file with GPL2.
https://github.com/mirror/busybox/blob/master/shell/ash.c
-
Everything I wish I knew when learning C
More Good projects to learn from:
- Busybox (https://github.com/mirror/busybox)
-
what are some tiny c programs I can play about with?
Also, it's barebones POSIX, and not the Linux extensions you commonly think of. But, that means the processes are a lot simpler, and the code is often less complex. So it's a good place for a beginner to dip into to see how .e.g mv works, compared to GNU mv.
-
Looking for a simpler version of BusyBox for educational purposes
Sure... There are symlinks in the installation, and there's a small main() function that dispatches execution to the appropriate function based on argv[0], but that doesn't significantly impact the C implementation of each individual tool. Those seem pretty straightforward, to me. A developer reading.. e.g. chmod.c isn't going to see any evidence of symlinks, and minimal impact from the external main() function.
-
Any good resources on making a C implementation of the Unix ls command?
BusyBox: https://github.com/mirror/busybox/blob/master/coreutils/ls.c
-
/* Act like "true" by default; false.c overrides this. */
true false
-
ISC DHCP Server has reached EOL
Ok here is my followup. I didn't go into detail about kea hooks [0] because I didn't write any kea hook before, but from what I can tell it should cover all your needs. You have to write c code which I find absurd tbh, but if it has the functionality you are looking for it could be a solution.
I already posted my dnsmasq "solution" so I will skip this. If you want a code example I could whip you one up.
Then there is coredhcp [1] and you can write plugins written in go for it.
From time to time some hobby dhcp server pop up, but most fade away since (I guess) the existing solutions are "good enough". I for instance implement a automatic provisioning and configurating dhcp setup with tftp and pxe boot using dnsmasq. It automatically creates pxe configs based on the mac address and some other stuff (tm). Kea seemed overkill for this usecase and I'm quite happy with what I got.
Your use case of automatically fixing hostnames through ISC seems a bit overkill to me as well to be frank. My home network has a few VLANs and every device in it is managed manually. It's a one time setup and most automation is unnecessary (and some devices in my network flatout ignore some dhcp options....). Aaaaanyway I still think that most dhcp servers out there support some form of scripting (heck even udhcpcd has a lease notify script that could be hacked to offer some of that functionality even though this gets only executed after the fact so a bit useless [2]).
> oh wait, I wonder how much ISC was paid … to do exactly this EOL … by these major ISPs?
I don't know. Nothing?
> Plausible future: I can envision a special DHCP vendor-specific OPTION to use time-based blockchain hash to further solidify their hold.
Reading your cynic banter I'm quite happy of not having your DHCP problems. Looking through your github repositories I can find a bunch of configuration files for dhclient, but not much in form of ISC configs (only the nintendo fix you posted in your first post). Would be really interested in your setup.
[0] https://kea.readthedocs.io/en/latest/arm/hooks.html
[1] https://github.com/coredhcp/coredhcp
[2] https://github.com/mirror/busybox/blob/master/examples/udhcp...
- A Little Story About the `Yes` Unix Command
-
How good is a router without a hardware clock as a NTP server?
https://github.com/mirror/busybox/blob/121b02d6b6c9f276e7f8da560e5996d3e389cd63/networking/ntpd.c#L175
coredhcp
-
ISC DHCP Server has reached EOL
Ok here is my followup. I didn't go into detail about kea hooks [0] because I didn't write any kea hook before, but from what I can tell it should cover all your needs. You have to write c code which I find absurd tbh, but if it has the functionality you are looking for it could be a solution.
I already posted my dnsmasq "solution" so I will skip this. If you want a code example I could whip you one up.
Then there is coredhcp [1] and you can write plugins written in go for it.
From time to time some hobby dhcp server pop up, but most fade away since (I guess) the existing solutions are "good enough". I for instance implement a automatic provisioning and configurating dhcp setup with tftp and pxe boot using dnsmasq. It automatically creates pxe configs based on the mac address and some other stuff (tm). Kea seemed overkill for this usecase and I'm quite happy with what I got.
Your use case of automatically fixing hostnames through ISC seems a bit overkill to me as well to be frank. My home network has a few VLANs and every device in it is managed manually. It's a one time setup and most automation is unnecessary (and some devices in my network flatout ignore some dhcp options....). Aaaaanyway I still think that most dhcp servers out there support some form of scripting (heck even udhcpcd has a lease notify script that could be hacked to offer some of that functionality even though this gets only executed after the fact so a bit useless [2]).
> oh wait, I wonder how much ISC was paid … to do exactly this EOL … by these major ISPs?
I don't know. Nothing?
> Plausible future: I can envision a special DHCP vendor-specific OPTION to use time-based blockchain hash to further solidify their hold.
Reading your cynic banter I'm quite happy of not having your DHCP problems. Looking through your github repositories I can find a bunch of configuration files for dhclient, but not much in form of ISC configs (only the nintendo fix you posted in your first post). Would be really interested in your setup.
[0] https://kea.readthedocs.io/en/latest/arm/hooks.html
[1] https://github.com/coredhcp/coredhcp
[2] https://github.com/mirror/busybox/blob/master/examples/udhcp...
-
Can an AC-M run a DHCP server?
If it were me I'd compile a Go DHCP daemon because they're fully static. All you'd theoretically need is the compiled binary and a config file. Copy (scp) those to the AP and run it. No idea if it would really work, but it seems like it could. Something like this: https://github.com/coredhcp/coredhcp - README even provides example compile and run commands and a simple 8 line config file. If you've never setup Go it might take you a bit, but it's gotten a lot easier in recent years.
What are some alternatives?
u-boot - "Das U-Boot" Source Tree
dhcp - DHCPv6 and DHCPv4 packet library, client and server written in Go
hush - Hush is a unix shell based on the Lua programming language
bofied - Modern network boot server.
coreutils - upstream mirror
xDhcpServer - This module contains DSC resources for deployment and configuration of Microsoft DHCP Server.
barebox - The barebox bootloader - Mirror of ssh://[email protected]/barebox
go - The Go programming language
gcc
ldhcpd - Light DHCPd -- a DHCP server with a small feature set and a remotely programmable control plane
lash - A modern, robust glue language
dhcp - Jagornet DHCP Server - An open source DHCPv4/DHCPv6 Server for Java