2 ms·
One slightly off-topic note: > ifdata: get network interface info without parsing ifconfi If it's Linux, ifconfig isn't maintained anymore and might actually
by nailer 14y ago
One slightly off-topic note:
> ifdata: get network interface info without parsing ifconfi
If it's Linux, ifconfig isn't maintained anymore and might actually be lying (eg, virtual IPs on vlans on bonded NICs - sounds exotic but almost every trading house uses this config). Use the 'ip' command for most things you would have done with 'ifconfig'.
If it's BSD, ignore that and ifconfig away.
- dfc 14y agoIt does not actually parse the ifconfig output. On linux and freebsd it uses system calls to get the required information. https://github.com/madx/moreutils/blob/master/ifdata.c https://github.com/madx/moreutils/blob/master/ifdata.c
- X-Istence 14y agoThank god for the Linux people innovating and replacing a perfectly functional tool that could be properly extended to add support for that configuration, and instead requiring people to learn yet another command. It's about as bad as Solaris with their ifconfig/ipadm stuff and changing everything around so that configuration exists in multiple places and one tool doesn't handle the other. ipadm doesn't properly deal with /etc/<hostname>.<interface> files and the two will conflict. Ugh.
- eps 14y agoJudging by the amount of righteous sarcasm dripping from your comment you clearly have no idea what ip is.