On Mon, Sep 22, 2025 at 10:52:21PM +0200, Bernhard Übelacker wrote:
> Am 22.09.25 um 16:30 schrieb Nicolas Schier:
> > Thanks a lot!
> > 
> > According to Linux's kernels netif_set_alias() [1,2], it would make
> > sense to increase it even to IFALIASZ (currently: 256).
> > 
> > I am planning to forward a patch to upstream within this week; or do
> > you want to do it yourself?
> > 
> > Kind regards,
> > Nicolas
> 
> 
> Hello Nicolas,
> thanks for taking a look.
> If kernel allows names that long I guess this tool should
> also use this length, yes.
> Would be great if you could forward it to upstream,
> I am not really sure where to send it.

Joeys (upstream) mail is to be found in README and debian/copyright.  
But I have to correct my own reply: IFALIASZ is irrelevant, as ifdata 
only parses /proc/net/dev, thus the POSIX default IFNAMSIZ is the 
maximum string lenght (including NULL terminator).  I have not yet 
found a fscanf() format string that incorporates the compile-time 
variable string length that still looks kind of beautiful.

Hard-coding to a concrete integer (like 10 as it is or 20 as you 
suggested) is for sure still possible but does not look "right" to me.  
I'll try to find a nicer solution...

Kind regards,
Nicolas

Attachment: signature.asc
Description: PGP signature

Reply via email to