Maja Piechotka
Maja Piechotka

Reputation: 7216

Query and modify advanced information about interfaces

I need to do following tasks:

AFAIK I cannot use ioctl I need to use netlink. The problem is that I couldn't find good description how to use it (most netlink tutorials concentrate on how to create connection). strace also didn't prove useful.

Upvotes: 0

Views: 116

Answers (1)

schot
schot

Reputation: 11268

I recommend you look at the sources of iproute2. It has all the functionality you describe and uses netlink.

Upvotes: 1

Related Questions