All of lore.kernel.org
 help / color / mirror / Atom feed
From: "C.J" <c.james.cj@gmail.com>
To: linux-ppp@vger.kernel.org
Subject: Re: Re: howto setup a route by netlink socket
Date: Sat, 31 May 2008 13:26:40 +0000	[thread overview]
Message-ID: <200805312126335933518@gmail.com> (raw)
In-Reply-To: <200805300937396564081@gmail.com>

Hi James Chapman

>>
>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.

Thanks a lot, I'll try.

Reg

--
c.j


      parent reply	other threads:[~2008-05-31 13:26 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
2008-05-31 13:26 ` C.J [this message]

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=200805312126335933518@gmail.com \
    --to=c.james.cj@gmail.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.