From: James Chapman <jchapman@katalix.com>
To: linux-ppp@vger.kernel.org
Subject: Re: howto setup a route by netlink socket
Date: Fri, 30 May 2008 08:13:00 +0000 [thread overview]
Message-ID: <483FB70C.9020401@katalix.com> (raw)
In-Reply-To: <200805300937396564081@gmail.com>
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
next prev parent reply other threads:[~2008-05-30 8:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 1:37 howto setup a route by netlink socket C.J
2008-05-30 3:36 ` James Cameron
2008-05-30 8:13 ` James Chapman [this message]
2008-05-31 13:26 ` C.J
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=483FB70C.9020401@katalix.com \
--to=jchapman@katalix.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.