Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Franco Fichtner
> On 20. Nov 2023, at 23:06, Mike Karels wrote: > > On 20 Nov 2023, at 15:16, Franco Fichtner wrote: > >> All that is really missing is a way to print it via ifconfig command. > > That is trivial to add; I just tested it. It also has problems with > epair. Maybe that isn't an issue for this

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Mike Karels
On 20 Nov 2023, at 15:16, Franco Fichtner wrote: >> On 20. Nov 2023, at 21:56, Kristof Provost wrote: >> >> I’d look in the direction of just adding a field to struct ifnet with the >> original interface name (likely easily done in if_attach()), along with a >> new ioctl to retrieve that field.

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Mike Karels
On 20 Nov 2023, at 14:56, Kristof Provost wrote: > On 20 Nov 2023, at 21:29, Mike Karels wrote: >> On 19 Nov 2023, at 15:35, Mina Galić wrote: >>> Hi Zhenlei, >>> >>> Since it is just for physical devices, may I propose to have the driver name in their groups ? So an if_ure in

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Franco Fichtner
FWIW, here is the relevant ifinfo output of a sample machine: # ifinfo | grep ^Interface Interface igb0 (igb0): Interface igb1 (igb1): Interface igb2 (igb2): Interface igb3 (igb3): Interface enc0 (enc0): Interface lo0 (lo0): Interface pflog0 (pflog0): Interface pfsync0 (pfsync0): Interface lagg0 (

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Franco Fichtner
> On 20. Nov 2023, at 21:56, Kristof Provost wrote: > > I’d look in the direction of just adding a field to struct ifnet with the > original interface name (likely easily done in if_attach()), along with a new > ioctl to retrieve that field. ifconfig_get_orig_name() already exists, but apart

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Kristof Provost
On 20 Nov 2023, at 21:29, Mike Karels wrote: > On 19 Nov 2023, at 15:35, Mina Galić wrote: >> Hi Zhenlei, >> >> >>> Since it is just for physical devices, may I propose to have the driver >>> name in their groups ? >>> >>> So an if_ure interface ue0 will look like: >>> >>> ``` >>> ue0: flags=10088

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Mina Galić
> I have a proof of concept that makes the presumed original name > (driver name + unit number) available to ifconfig, which prints > the string with everything else in the standard output format. > I don't think that is the right solution, but the other details > should be easy. I'm tempted to

Re: How to tell if a network interface was renamed (and from what)

2023-11-20 Thread Mike Karels
On 19 Nov 2023, at 15:35, Mina Galić wrote: > Hi Zhenlei, > > >> Since it is just for physical devices, may I propose to have the driver name >> in their groups ? >> >> So an if_ure interface ue0 will look like: >> >> ``` >> ue0: flags=1008843 metric 0 >> mtu 1500 >> >> options=60009b >> >> ethe

[Bug 194485] Userland cannot add IPv6 prefix routes

2023-11-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194485 Dries Michiels changed: What|Removed |Added Status|In Progress |Closed Resolution|---