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

2023-11-21 Thread Mina Galić
Hi Mike, > Mina, do you care about epair, or is the behavior I described sufficient > for your purposes? I do deeply care about epair, but for me, ifinfo does the right thing for me: root@irc:~ # ifinfo | grep Interface Interface vnet0 (epair30): Interface lo0 (lo0): for one. For the other.

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-19 Thread Mina Galić
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 > > ether 00:e0:4c:xx:xx:xx > media: Ethernet autoselect

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

2023-11-19 Thread Mina Galić
Hi Mike, > The kernel has a driver name for each interface, which looks like it > doesn't change currently in most cases. There is a kernel accessor > function, but I don't think it is exported to user space now. It could > be, though. Would this be sufficient for your purposes? There is also > a

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

2023-11-19 Thread Mina Galić
Hi Özkan, > It would be better if FreeBSD could have "interface altname feature" > like Linux has. even tho I'm writing this email from a Linux laptop, and often have to understand Linux specific code to see how I can (or if I need to) replicate that on FreeBSD, I'm not familiar enough with

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

2023-11-19 Thread Mina Galić
> > FreeBSD currently does not preserve the old ( original ) name of > > interfaces if it is renamed ( either physical or cloned ones ). > > While there's an attempt https://reviews.freebsd.org/D28247 > > to get the device name (physical > > ones) but it is not perfect and not completed. > > >

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

2023-11-18 Thread Mina Galić
sily accessible from Python, and which we already use to figure out the uptime (or rather, the boottime): https://github.com/canonical/cloud-init/blob/5496745b394f9b7b9eaf57fd619330d484ce2da8/cloudinit/util.py#L2073-L2105 Looking forward to reading your ideas. Kind regards, Mina Galić

Re: Ifconfig limitations

2023-04-18 Thread Mina Galić
> On 4/18/23 11:44, Mina Galić wrote: > > > Hi HPS, > > > > i don't see those sysctl entries for regular devices? > > is this infiniband specific? > > or is there anything I need to enable to get these sysctls? > > > > Kind regards, > &

Re: Ifconfig limitations

2023-04-18 Thread Mina Galić
Hi HPS, i don't see those sysctl entries for regular devices? is this infiniband specific? or is there anything I need to enable to get these sysctls? Kind regards, Mina Original Message On 18 Apr 2023, 10:32, Hans Petter Selasky wrote: > Hi, All the `/sys/class/net//*`

Re: Ifconfig limitations: renames

2023-04-17 Thread Mina Galić
and, speaking of ifconfig limitations… …why is it so hard to tell what if a device has been renamed? and what its original name was? at least we have this Diff trying to reconcile some of that… https://reviews.freebsd.org/D28247 Kind regards, Mina

Ifconfig limitations

2023-04-17 Thread Mina Galić
? Kind regards, Mina Galić Don't Try *my* PkgBase Repository: https://alpha.pkgbase.live/ — until i have a new hardware sponsor…