Page MenuHomeFreeBSD

roy_marples.name (Roy Marples)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 27 2016, 2:23 AM (428 w, 3 d)

Recent Activity

Oct 6 2023

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

dhcpcd-10.0.3 just released which also fixes some important stuff.

Oct 6 2023, 9:21 AM

Jul 19 2023

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

I just pushed out dhcpcd-10.0.2 which fixes some privsep issues.

Jul 19 2023, 3:19 PM

Apr 23 2023

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

dhcpcd-10 will be released in the next few week or so. Following that, I intend to update this diff to target importing dhcpcd into base ahead of the FreeBSD-14 code slush.

Apr 23 2023, 9:12 AM

Jan 6 2023

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

Thank you for the clarification! Just to check: the relevant change Is commit @ 30 Aug, right? This looks like a regression, but the commit description looks a bit vague. I wasn't able to find any bug report or message in the ML. Did you / @roy_marples.name reported it? If that's a regression, maybe something can be change on the kernel side, so dhcp 10 is not exactly a blocker.

Jan 6 2023, 11:48 AM

Aug 31 2022

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

I've addressed the IFF_UP and REBOOT comments with hopefully suitable answers but not marked them as done as I think the asker needs to be satisified and close themselves?

Aug 31 2022, 9:42 AM

Aug 30 2022

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

I'd suggest updating this review to be a diff against the copy of dhcpcd now in vendor/ merged into contrib/, so that changes if any to existing dhcpcd files are clear

Aug 30 2022, 10:46 PM

Aug 23 2022

roy_marples.name added a comment to D36306: inet6: manally added addresses manage their own prefix.

You've addressed my concerns, thanks.
If it lands, this revision no longer fixes anything as such but interestingly should still apply if anyone wants to go down the route of seperating this in the future.

Aug 23 2022, 7:32 PM
roy_marples.name accepted D36312: netinet6: fix SIOCSPFXFLUSH_IN6 by skipping manually-configured prefixes.

Looks good to me now, thanks.

Aug 23 2022, 7:14 PM
roy_marples.name added a comment to D36312: netinet6: fix SIOCSPFXFLUSH_IN6 by skipping manually-configured prefixes.

The linklocal address is not derived from RA and should be marked as manual.

Aug 23 2022, 3:39 PM
roy_marples.name added reviewers for D36306: inet6: manally added addresses manage their own prefix: bz, hrs, melifaro.
Aug 23 2022, 1:08 PM
roy_marples.name updated the diff for D36306: inet6: manally added addresses manage their own prefix.
  • Fix a minor issue with prior.
Aug 23 2022, 11:20 AM
roy_marples.name updated the diff for D36306: inet6: manally added addresses manage their own prefix.
  • Fix a minor issue managing the prefix with prior.
Aug 23 2022, 11:12 AM
roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

I did a little research and it turns out that SIOCSPFXFLUSH_IN6 is only supported on FreeBSD and derivatives like DragonflyBSD so the check if it's defined is practically check if it's running on FreeBSD. As NetBSD removed it and OpenBSD doesn't have it, what will happen if we remove the SIOCSPFXFLUSH_IN6 call from dhcpcd?

Aug 23 2022, 10:38 AM
roy_marples.name requested review of D36306: inet6: manally added addresses manage their own prefix.
Aug 23 2022, 10:31 AM

Aug 9 2022

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..
In D22012#819198, @bz wrote:

Can you quickly explain how this works along with RS/RA handling for DHCPv6? What does dhcpc do in this case and what does it not do?

This is mainly triggered by the fact that network.subr for dhcpif has an unconditional call for IPv6 duplicating the IPv4 logic but that's not how it works in IPv6 land so I am confused...

Aug 9 2022, 8:51 AM

Aug 8 2022

roy_marples.name added inline comments to D22012: Import dhcpcd(8) into FreeBSD base..
Aug 8 2022, 11:26 AM

Oct 23 2021

roy_marples.name added inline comments to D22012: Import dhcpcd(8) into FreeBSD base..
Oct 23 2021, 7:34 AM

Oct 22 2021

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..
In D22012#735892, @driesm.michiels_gmail.com wrote:

@roy_marples.name what I would suggest is that you try to work to 9.4.1 release which fixes a few bugs in the database.

Oct 22 2021, 1:11 PM
roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

ISC DHCP client/relay end of maintenance:

Note that we use OpenBSD's dhclient version, not ISC's. There's common ancestry, but OpenBSD's has been developed independently for some time. Using dhcpcd may well be the right thing to do for the FreeBSD base system, but ISC's announcement has no real weight on that.

Oct 22 2021, 12:21 PM

Oct 20 2021

roy_marples.name added a comment to D32563: net: Allow binding of unspecified address without address existance.

I'll take care of this
--author=Roy Marples <roy@marples.name> yes?

Oct 20 2021, 4:22 PM
roy_marples.name added a comment to D32563: net: Allow binding of unspecified address without address existance.
In D32563#735249, @bz wrote:

So why do we think this is broken now? To me this initially (without looking at that code again after years) seems to be there to save us a lot of work if we cannot find the address later. So maybe this need a better explanation than just "it's broken because someone left a comment that says so"?

Oct 20 2021, 12:38 PM
roy_marples.name added a comment to D32563: net: Allow binding of unspecified address without address existance.
In D32563#735219, @bz wrote:

Has anyone checked what this was before the epoch work came in?

Oct 20 2021, 10:27 AM

Oct 19 2021

roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..

Oh wow ... time flies. I've now been "testing" this patch for over two years. We should just do this.

Oct 19 2021, 5:01 PM
roy_marples.name requested review of D32563: net: Allow binding of unspecified address without address existance.
Oct 19 2021, 4:49 PM

Jul 29 2021

roy_marples.name added a comment to D26652: Implement SO_RERROR.

Adjust to latest git head.

@roy_marples.name, I can't tell why this was so circuitous. It's a straight forward change and LGTM. There are people running full routes on FreeBSD like Netflix and FRR users like Netgate so this is a really desirable improvement. I appreciate your work and would be happy to funnel in other improvements if you add me to the reviewers or PRs in the future!

Jul 29 2021, 9:15 AM

Feb 9 2021

roy_marples.name added a comment to rG924d1c9a050d: Revert "SO_RERROR indicates that receive buffer overflows should be handled as….

Attribution via git commit --author= would be nice next time please.

Feb 9 2021, 8:51 AM

Feb 8 2021

roy_marples.name updated the diff for D26652: Implement SO_RERROR.

Adjust to latest git head.

Feb 8 2021, 5:11 AM

Feb 7 2021

roy_marples.name added a comment to D26652: Implement SO_RERROR.

wpa_supplicant now supports SO_RERROR upstream:
https://w1.fi/cgit/hostap/commit/?id=a579642bc3c92c98daabadb5bb36c2da26ab893f

Feb 7 2021, 6:50 AM

Feb 1 2021

roy_marples.name added a comment to D26652: Implement SO_RERROR.

Now dealing with FreeBSD bugzilla routing socket overflow reports
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253166

Feb 1 2021, 8:47 PM

Jan 30 2021

roy_marples.name added inline comments to D22012: Import dhcpcd(8) into FreeBSD base..
Jan 30 2021, 12:34 PM

Jan 7 2021

roy_marples.name added inline comments to D22012: Import dhcpcd(8) into FreeBSD base..
Jan 7 2021, 6:45 PM
roy_marples.name added a comment to D22012: Import dhcpcd(8) into FreeBSD base..
In D22012#480886, @imp wrote:

I didn't see you address Brooks' objection in the posted thread. given the extreme level of exposure here, it needs to be answered satisfactorily

Jan 7 2021, 4:50 PM

Jan 1 2021

roy_marples.name added a comment to D26652: Implement SO_RERROR.

SO_RERROR for ntpd, which FreeBSD also uses.
https://bugs.ntp.org/show_bug.cgi?id=3714

Jan 1 2021, 5:11 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.

All changes requested to the SO_RERROR approach have been made.
I have done as asked and queried this approach on the freebsd-arch mailing list. No replies which I read as no-one has anything bad to say about the approach, but sadly nothing positive either.
I would really like to see some traction here in 2021 :)

Jan 1 2021, 3:06 PM

Oct 8 2020

roy_marples.name updated the diff for D26636: Implement SIOCGIFALIAS.

Break out of the loop early on matching an address.

Oct 8 2020, 8:14 PM
roy_marples.name added inline comments to D26636: Implement SIOCGIFALIAS.
Oct 8 2020, 3:09 PM

Oct 5 2020

roy_marples.name updated the diff for D26652: Implement SO_RERROR.

Move SO_RERROR so it sits within the correct place.

Oct 5 2020, 7:31 AM

Oct 4 2020

roy_marples.name added a comment to D5469: Announce INET6 address flag changes to userland.

@melifaro any update on this?

Oct 4 2020, 8:50 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.
In D26652#593989, @pi wrote:

I had cases where quagga missed routing updates, which caused inconsistent routing between different bgp speakers. This is probably still possible with frr7, and therefore I would welcome a way to at least get some indication that data was lost.

Oct 4 2020, 7:35 PM
roy_marples.name updated the diff for D26652: Implement SO_RERROR.

Use SO_RERROR in route(8).
Warn on any errors returned by read(2) rather than assuming we always get a route message.

Oct 4 2020, 4:30 PM
roy_marples.name updated the diff for D26652: Implement SO_RERROR.

Adjusted man page as requested.

Oct 4 2020, 4:04 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.

So, it looks like even the feature has been present in Linux for 8+ years, it hasn't been adopted by the relevant software.

Oct 4 2020, 3:50 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.
In D26652#593926, @gnn wrote:

While I applaud this idea for route(4)ing sockets I think that applying it broadly to other socket types has issues that need to be considered.

Oct 4 2020, 2:16 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.

Why would you want to limit the scope?

Because an application writer might get the impression that he/she will be notified if an incoming packet was dropped. This is not true since this patch only covers one of many reasons. If any application wants to detect this, it should add some sequence numbers to the data and it will know.

Oct 4 2020, 1:55 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.

what other OSes share this API now?

Oct 4 2020, 3:51 AM

Oct 3 2020

roy_marples.name added a comment to D26652: Implement SO_RERROR.

what other OSes share this API now?

I originally implemented on NetBSD and ported it to DragonFly BSD.
OpenBSD has an API which dhcpcd also uses which is specific to the route(4) API where it sends a RTM_DESYNC message.
The irony being it has to send a message on a socket which has already overflowed.

Maybe one can force that such a message (only one) is appended to the socket buffer even if it is full.

Oct 3 2020, 9:14 PM
roy_marples.name added a comment to D26652: Implement SO_RERROR.

what other OSes share this API now?

Oct 3 2020, 8:31 PM
roy_marples.name requested review of D26652: Implement SO_RERROR.
Oct 3 2020, 6:53 PM

Oct 2 2020

roy_marples.name updated the diff for D26636: Implement SIOCGIFALIAS.

Use NET_EPOCH_{ENTER,EXIT}

Oct 2 2020, 4:24 PM
roy_marples.name added inline comments to D26636: Implement SIOCGIFALIAS.
Oct 2 2020, 8:15 AM
roy_marples.name requested review of D26636: Implement SIOCGIFALIAS.
Oct 2 2020, 2:50 AM

Sep 24 2020

roy_marples.name added a comment to D26538: Add SIOCGIFDATA.

Looks ok to me, thanks. This seems like it would be useful for programs that run under Capsicum.

Sep 24 2020, 2:24 AM

Sep 23 2020

roy_marples.name added a comment to D26538: Add SIOCGIFDATA.

Hrm, @markj pointed out on IRC https://people.freebsd.org/~emaste/patches/SIOCGIFDATA.diff

One downside of this approach (vs NetBSD) is that we'll have trouble if we want to grow if_data in the future, although we could deal with that if/when it happens.

Sep 23 2020, 10:43 PM
roy_marples.name added a comment to D26538: Add SIOCGIFDATA.

it looks like OpenBSD and NetBSD implemented this differently:

Sep 23 2020, 10:02 PM
roy_marples.name updated the diff for D26538: Add SIOCGIFDATA.

_IOW is fine.

Sep 23 2020, 9:29 PM
roy_marples.name added inline comments to D26538: Add SIOCGIFDATA.
Sep 23 2020, 9:28 PM
roy_marples.name updated the diff for D26538: Add SIOCGIFDATA.

Ensure no uninitialised padding is leaked.

Sep 23 2020, 9:06 PM
roy_marples.name updated the diff for D26538: Add SIOCGIFDATA.

Hopefully this is now enough context.

Sep 23 2020, 8:46 PM
roy_marples.name requested review of D26538: Add SIOCGIFDATA.
Sep 23 2020, 8:31 PM

May 11 2020

roy_marples.name added a comment to D5469: Announce INET6 address flag changes to userland.

Generally looking good, though my primary concern is interaction with the existing applications.

Both bird and frr ignore value of ifam_flags.

Will update the patch and look at the behaviour for both of them.

May 11 2020, 9:19 PM

Jul 12 2016

roy_marples.name added a comment to D5469: Announce INET6 address flag changes to userland.

Let me clarify.

Jul 12 2016, 7:42 PM
roy_marples.name added a comment to D5469: Announce INET6 address flag changes to userland.
In D5469#149446, @hrs wrote:

Looks reasonable to add notification when ia6_flags is changed, but why is RTM_ADD used instead of RTM_CHANGE? rt_addrmsg() is for addition/removal of an address and RTM_ADD is translated to RTM_NEWADDR there.

Jul 12 2016, 8:30 AM

Feb 27 2016

roy_marples.name retitled D5469: Announce INET6 address flag changes to userland from to Announce INET6 address flag changes to userland.
Feb 27 2016, 2:30 AM