"the real reason to switch from ifconfig and netstat to ip and ss is that ifconfig reads from /proc, which is not efficient"
just. update ifconfig. to use netlink sockets. if it's so important??
https://utcc.utoronto.ca/~cks/space/blog/linux/ReplacingNetstatNotBad
@wxcafe j'ai jamais compris pourquoi on nous fait chier avec "ip", quand je tape "ifconfig" en cli j'ai toutes les informations qui m'intéresse tandis qu'avec ip je dois retenir une série de lettres à la con que j'oublie tout le temps et y a moins d'informations >_>
@bram nan, tu peux avoir plusieurs ips sur une interface et comme personne a fait le taff d'updater ifconfig sous linux tu vois que la première
@bram par ailleurs tu es pas obligé de retenir les lettres, c'est juste des raccourcis, tu peux très bien taper ip address show ...
@wxcafe ouais sauf que tout le monde utilise les lettres donc je capte jamais (et j'ai la grosse flemme, avant une commande == exactement ce que je veux, ip est une regression pour mon UX) et j'ai jamais ce problème de plusieurs ips tbh
@bram oui enfin c'est un vrai problème pour plein de gens, sur les routeurs, sur les serveurs, etc. Mais la solution c'est d'updater ifconfig effectivement
@wxcafe
I gotta say `ifconfig` is way easier than `ip`
@jordyd I mean I don't even have any opinion one way or the other, it's just one's been the standard for 40 years and is interoperable and one is linux only unportable garbage
@wxcafe I'd say implement `ifconfig` as a compatible/friendly interface to `ip` and include them both
@jordyd I don't see the point of IP if ifconfig works as it should, honestly
@wxcafe Actually, implementing it the way you described (use netlink sockets) would be even better I'm just tired
@wxcafe but idk why a configuration tool needs to be fast, it's not like you have to reconfigure your interfaces at light speed
@wxcafe Also regarding scripts, I think the article says it best " you're parsing ifconfig output on my machine to generate a list of all of the local IP addresses, you're already wrong"
@wxcafe imagine that quote started with "if"
@jordyd there are some use cases on servers with 100s of interfaces
@wxcafe oh that's scary please say no more
@wxcafe et la hype voyons, il faut de la hype