I've been using the command /bin/ip:
ip addr add 10.10.10.0 dev eth0
I would like to see the source code of how the ip command works. Is it available?
I've been using the command /bin/ip:
ip addr add 10.10.10.0 dev eth0
I would like to see the source code of how the ip command works. Is it available?
The ip program is part of the iproute2 software package, and can be downloaded from www.kernel.org. N.b. Unlike the old ipconfig program, which uses ioctls to do its job, the iproute2 utilities use Netlink sockets to communicate with the kernel. It helps understanding how the ip program works if you are familiarised with Netlink sockets.
iputility is part of the iproute2 suite. – countermode Aug 04 '17 at 06:55ipcomes from (admitted, you have to be more careful with the query). U&L is a knowledge base for solving problems and in this sense I still claim that neither the question nor the answers to it contribute to U&L. This has nothing to do with enlightened or not enlightened, this has to do with the concept of U&L. You may want to have a look at http://www.catb.org/esr/faqs/smart-questions.html, especially the Section "Before You Ask" (inspired by Jeff Schaller here on U&L). – countermode Aug 08 '17 at 07:20