I̴̅ͣȌ̴ͥ ̈́͐ͬ̀̚C̴̀͊̓ͧor̡r̋̒̄̽̊u̡p̷ͥ̅̓ͪ̊ţ͛io̓̍ͩ̾̎҉ṅͨ ‮✨💻☕ is a user on social.wxcafe.net. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
I̴̅ͣȌ̴ͥ ̈́͐ͬ̀̚C̴̀͊̓ͧor̡r̋̒̄̽̊u̡p̷ͥ̅̓ͪ̊ţ͛io̓̍ͩ̾̎҉ṅͨ ‮✨💻☕ @wxcafe

"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??

utcc.utoronto.ca/~cks/space/bl

· MastodonToTwitter · 0 · 2

@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

@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

@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"