Re: Guidance to implement io_select on network devices
Joan Lledó <[email protected]> Fri, 12 Jun 2026 20:16:41 +0200
| Newsgroups | gmane.os.hurd.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi El 7/6/26 a les 19:55, Roy Marples ha escrit: > I have ported what I need into bpf-hurd.c for dhcpcd. > > As I can't get lwip working yet I have concentrated on getting it to > work with pfinet. > This has been achieved with starting pfinet with the 0.0.0.0 address so > dhcpcd has something to work with. > I have created a 10-pfinet hook script to configure pfinet using fsysopts. I made some changes to pfinet recently that included setting the default address to 0.0.0.0 https://lists.gnu.org/archive/html/bug-hurd/2026-04/msg00060.html If your pfinet doesn't set 0.0.0.0 as default, it's probably outdated and I would expect you to face some other problems like not being able to read the control block from packets. > > My Gentoo hurd VM now starts and gets a working ssh connection > automatically. > Happy days. > > So where are we now? > I'm waiting for a Gentoo bug to be solved in glibc to remove the AF_LINK > and SIOCAIFADDR defines to reduce the changes I need to make in dhcpcd. > I need to work out why IN_PKTINFO is not present in the CMSG for DHCP > messages (unsure if pfinet bug or something I've done wrong, pfinet does > have code for it). Yeah, that's what I meant. See the last changes in pfinet. Those problems are solved: https://cgit.git.savannah.gnu.org/cgit/hurd/hurd.git/log/?qt=grep&q=pfinet Also you would need a recent glibc to have IN_PKTINFO https://lists.gnu.org/archive/html/bug-hurd/2026-01/msg00041.html > I need to add a mechanism for handling gethostname(2) in dhcpcd's > privilege separation code. I can work on privilege separation if you want to use your time in other matters. Tell me how can I be useful. I can also spend my time trying to hack gnumach to get notifications on ports, but that will take me much more time for sure.