Re: howto setup a route by netlink socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Cameron wrote:
You could look at the ip(8) command source to find out how it is done,
/sbin/ip or /bin/ip is part of the iproute package on Red Hat and Debian
based Linux distributions.

The ip command uses libnetlink, but there's a new netlink library that is much easier to use. It's called libnl, at http://people.suug.ch/~tgr/libnl/. It includes simple apps that do common things like add routes. Binary packages are available for modern distros.

Latest version of pptp has a hack that uses system(3) to execute ip(8).
If you can figure a way to do this without using system(3) then I'm
quite interested.


--
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux