Page MenuHomeFreeBSD

dave_freedave.net (David Marker)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 3 2021, 2:16 PM (194 w, 1 d)

Recent Activity

Mon, Jun 2

dave_freedave.net added a comment to D50244: create netgraph ng_wormhole node type.
In D50244#1156230, @bz wrote:

I do understand the problem. I just think the name is a bit futuristic and not very descriptive for what it is doing.

Mon, Jun 2, 3:41 PM
dave_freedave.net added a comment to D50244: create netgraph ng_wormhole node type.

I'm calling this "done" but I'm still open to a name change.

Mon, Jun 2, 2:17 PM
dave_freedave.net updated the diff for D50244: create netgraph ng_wormhole node type.

remove NG_WORMHOLE_WARP from ng_wormhole.h as its not needed and in fact can't be referred to this way.

Mon, Jun 2, 2:16 PM
dave_freedave.net added a comment to D50244: create netgraph ng_wormhole node type.

Marking changes addressed done. Just realized I still need to get "warp" and its define moved to C file.

Mon, Jun 2, 1:58 PM
dave_freedave.net updated the diff for D50244: create netgraph ng_wormhole node type.

Just using VIMAGE in the Makefile didn't work but I noticed sys/modules/Makefile had an example that does work for wtap. I also stole the assert from sys/dev/wtap/if_wtap.c.

Mon, Jun 2, 1:56 PM

Fri, May 30

dave_freedave.net updated the test plan for D50244: create netgraph ng_wormhole node type.
Fri, May 30, 1:05 PM

Thu, May 29

dave_freedave.net added a comment to D50241: Teach ngctl to attach and run itself in a jail..

I didn't think the empty string would be passed along, but @kevans had it right. I moved the check to later before switching to jail.

Thu, May 29, 12:31 PM
dave_freedave.net updated the diff for D50241: Teach ngctl to attach and run itself in a jail..

Remove check for NULL from -j option not required. Check for empty string before attempting to switch to jail.
New output:

root@fbsd15:~ # ngctl -j
ngctl: option requires an argument -- j
usage: ngctl [-j jail] [-d] [-f filename] [-n nodename] [command [argument ...]]
root@fbsd15:~ # ngctl -j ''
ngctl: invalid jail name
usage: ngctl [-j jail] [-d] [-f filename] [-n nodename] [command [argument ...]]
Thu, May 29, 12:30 PM

Wed, May 28

dave_freedave.net added inline comments to D50244: create netgraph ng_wormhole node type.
Wed, May 28, 7:28 PM
dave_freedave.net added inline comments to D50241: Teach ngctl to attach and run itself in a jail..
Wed, May 28, 7:22 PM
dave_freedave.net added inline comments to D50244: create netgraph ng_wormhole node type.
Wed, May 28, 7:21 PM
dave_freedave.net updated the diff for D50245: add utility to simplify use of ng_wormhole.

Document that you must leave the jail empty to indicate the jail where you run ngportal.

Wed, May 28, 4:51 PM
dave_freedave.net updated the diff for D50244: create netgraph ng_wormhole node type.

Allow a jail to be specified numerically to the "open" command.

Wed, May 28, 4:45 PM
dave_freedave.net updated the diff for D50241: Teach ngctl to attach and run itself in a jail..

Be consistent with other commands and have [-j jail] first. Clean up other issues in man page. Importantly the usage string and the man page synopsis agree now.

Wed, May 28, 4:41 PM

Tue, May 27

dave_freedave.net added inline comments to D50244: create netgraph ng_wormhole node type.
Tue, May 27, 8:58 PM
dave_freedave.net added a comment to D50244: create netgraph ng_wormhole node type.
In D50244#1153881, @imp wrote:

What is the use case for this?

Tue, May 27, 2:57 PM
dave_freedave.net updated the diff for D50245: add utility to simplify use of ng_wormhole.

Fixed man page to be mandoc -Tlint compliant.
Saw a style issue in Usage() and fixed it.
parse_spec() was giving errors about "component[x]" which has no meaning at all to users of ngportal and was changed to display the component with an error which should be much more helpful.

Tue, May 27, 1:14 PM
dave_freedave.net updated the diff for D50244: create netgraph ng_wormhole node type.

I saw that other man pages used the simplified license so I changed this to do the same.

Tue, May 27, 1:10 PM

Sun, May 25

dave_freedave.net added a comment to D50241: Teach ngctl to attach and run itself in a jail..

Not sure if this is the time, but I also noticed that the command usage and man page synopsis differ. The man page synopsis uses [-n nodename] and the command usage uses [-n name] the usage should be changed to match the man page.

Sun, May 25, 11:32 AM

May 22 2025

dave_freedave.net added inline comments to D50241: Teach ngctl to attach and run itself in a jail..
May 22 2025, 6:04 PM

May 9 2025

dave_freedave.net added inline comments to D50244: create netgraph ng_wormhole node type.
May 9 2025, 2:35 PM

May 8 2025

dave_freedave.net updated the test plan for D50245: add utility to simplify use of ng_wormhole.
May 8 2025, 7:45 PM
dave_freedave.net updated the test plan for D50244: create netgraph ng_wormhole node type.
May 8 2025, 7:45 PM
dave_freedave.net updated the diff for D50245: add utility to simplify use of ng_wormhole.

Fix source file license per @ziaee (comment was in D50241).

May 8 2025, 7:21 PM
dave_freedave.net updated the diff for D50244: create netgraph ng_wormhole node type.

Fix source file license per @ziaee (comment was in D50241).

May 8 2025, 7:19 PM
dave_freedave.net added a comment to D50241: Teach ngctl to attach and run itself in a jail..

marking changes done.

May 8 2025, 7:13 PM
dave_freedave.net updated the diff for D50241: Teach ngctl to attach and run itself in a jail..

Address comments so far from @kevans and @zlei
The man page ordering was -f then -j but I had to refactor for correct behaviour as @zlei pointed out and so I added to manpage in the same way as sysctl so user knows file is not in jail even with -j option.

May 8 2025, 7:11 PM
dave_freedave.net added inline comments to D50241: Teach ngctl to attach and run itself in a jail..
May 8 2025, 8:49 AM

May 7 2025

dave_freedave.net added a comment to D50241: Teach ngctl to attach and run itself in a jail..

@imp has historically said we should avoid changing it for existing files without signoff from copyright holders.

May 7 2025, 9:13 PM
dave_freedave.net added inline comments to D50241: Teach ngctl to attach and run itself in a jail..
May 7 2025, 9:10 PM
dave_freedave.net added a comment to D50241: Teach ngctl to attach and run itself in a jail..

Check out https://docs.freebsd.org/en/articles/license-guide/ or style.9 from current, there is a much shorter text you can use now. EDIT: This was for your other review, sorry.

May 7 2025, 9:05 PM
dave_freedave.net updated the test plan for D50245: add utility to simplify use of ng_wormhole.
May 7 2025, 8:07 PM
dave_freedave.net updated the test plan for D50241: Teach ngctl to attach and run itself in a jail..
May 7 2025, 7:19 PM
dave_freedave.net requested review of D50245: add utility to simplify use of ng_wormhole.
May 7 2025, 7:10 PM
dave_freedave.net requested review of D50244: create netgraph ng_wormhole node type.
May 7 2025, 6:44 PM
dave_freedave.net updated the summary of D50241: Teach ngctl to attach and run itself in a jail..
May 7 2025, 5:46 PM
dave_freedave.net requested review of D50241: Teach ngctl to attach and run itself in a jail..
May 7 2025, 5:30 PM

Apr 4 2025

dave_freedave.net abandoned D49405: netgraph: optionally print node id of newly created node.

As author I don't think this provides enough new utility to make it worth pursuing.

Apr 4 2025, 11:45 AM
dave_freedave.net added a comment to D49405: netgraph: optionally print node id of newly created node.

I think if I had seen this post (1st reply by PMc) showing the "echo trick" I wouldn't have put this up for review.

Apr 4 2025, 11:43 AM

Mar 18 2025

dave_freedave.net added a comment to D49405: netgraph: optionally print node id of newly created node.
Mar 18 2025, 6:17 PM
dave_freedave.net requested review of D49405: netgraph: optionally print node id of newly created node.
Mar 18 2025, 6:06 PM

Feb 27 2025

dave_freedave.net added a comment to D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I vastly under appreciated that folks rely upon the ng_eiface not moving with the struct ifnet. Probably because I've been using them in jails for over a decade and only recently noticed myself.

Feb 27 2025, 8:34 PM · Jails, network
dave_freedave.net abandoned D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).

I think I'll just accept my understanding is flawed now to save time and withdraw this. Thank you.

Feb 27 2025, 6:32 PM · Jails, network
dave_freedave.net updated the test plan for D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).
Feb 27 2025, 5:25 PM · Jails, network
dave_freedave.net requested review of D49158: ng_eiface(4) and ng_iface(4) should play better with vnet(9).
Feb 27 2025, 4:56 PM · Jails, network

Apr 21 2024

dave_freedave.net added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 21 2024, 7:18 PM
dave_freedave.net added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 21 2024, 2:42 PM

Apr 4 2024

dave_freedave.net updated the diff for D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

add asserts as suggested.

Apr 4 2024, 4:58 PM
dave_freedave.net added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 4 2024, 1:59 PM
dave_freedave.net updated the diff for D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

I removed the "black magic" I added of relying upon alloc_unr_specific to return -1 when a user requested uplink0.
What was there before is more obvious and reads almost like english:

if (linkNum == 0 && isUplink)
        return (EINVAL);

That says exactly why we return EINVAL. Also I still get benefit of initializing unr(9) to start at 1 in the code. No longer have to grab a number and make sure its at least 1 for uplink.

Apr 4 2024, 1:55 PM
dave_freedave.net added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 4 2024, 6:01 AM

Apr 3 2024

dave_freedave.net added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

I'm not sure how to clear the comments as they are often on wrong line numbers now. Sorry about that.

Apr 3 2024, 9:48 PM
dave_freedave.net updated the diff for D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

I have incorporated all the suggestions and uplink has a separate unr(9) now. Note the bhyve change is removed entirely as it is not necessary, you can still use peerhook=link with bhyve though for it to auto assign.

Apr 3 2024, 9:46 PM
dave_freedave.net added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

I have to clean up my patch and figure out how to update (I'm new to this). I will be removing bhyve from this so apologies to all the bhyve folks that got tagged on this.

Apr 3 2024, 9:16 PM
dave_freedave.net added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

Actually before I go move things to newhook can I ask do we have consensus that I should just have a separate unr(9) for uplink?
Also, the bhyve works without having it "figure out" it has an ng_bridge(4). You can pass "link" to it and it does the right thing. Given that should I pull bhyve change out so the patch is more focused on ng_bridge(4) which is my main concern?

Apr 3 2024, 6:06 PM
dave_freedave.net added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

Now more fundamental question, that you probably have answer for, cause you did it the way you did: why can't we alloc_unr() and possible return EEXIST in the (almost) synchronous newhook method? Why do we postpone that to later connect method?

Apr 3 2024, 5:58 PM
dave_freedave.net added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..

My main objection is that backward compatibility is broken. We can no longer have uplink[N] and link[N] at the same time. This may break existing software.

I had the same concern and point this out in the bug report. I am still not sure why uplink0 was never allowed, but kept that restriction. uplink is for when you attach a real network interface, an ng_ether(4) and although netgraph makes just about anything possible, I wonder if anybody does have more than one uplink on an ng_bridge(4)?

Apr 3 2024, 5:53 PM
dave_freedave.net updated the test plan for D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 3 2024, 2:29 PM
dave_freedave.net requested review of D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 3 2024, 2:25 PM