> Yep, I'm interested. :)
Awesome. Clone the Git tree start hacking.
Ashish is working on a patch to add IPv6 support to BSD's show
function (see bsd_show.c), while I am reworking the Linux backend to
use libnl instead of mucking with PF_NETLINK directly.
The immediate TODO items are to implemen
> I was thinking about porting it, because I really need this thing on
> my laptop and to have some programming experience. I just wanted to
> have a companion, because I'm not sure I can handle this by myself and
> because I'm pretty lazy these days, so I need to feel responsibility
Myself and As
So I got something working for FreeBSD now:
http://rishi.fedorapeople.org/gnu/inetutils-1.5.tar.gz
I have been using a combination of sysctl and PF_ROUTE to retrieve the
routing table, much like the approach taken by the NetBSD
implementation. Support for modifying the routing table is yet to be
i
Here is the code: http://rishi.fedorapeople.org/gnu/inetutils-1.5.tar.gz
You will be interested in route/bsd_show.c and the function in that
file named bsd_show. It uses a combination of sysctl and PF_ROUTE to
retrieve the information.
Please ask if you encounter any problem. :-)
Happy hacking,
> unfortunatly netstat -rn uses /dev/kmem
Yes. I also found that FreeBSD's route(8) implementation does not have
an equivalent of 'netstat -r'. NetBSD and GNU/Linux implementations
have such an option. Any reason for this? Is it because you did not
want to muck with /dev/kmem in route(8) and wante
> Why don't you just use XORP's FEA code?
> It already does all this under a BSD-type license.
Nice stuff. However, it looks like a full blown routing platform. In
that case it would be easier to re-write those portions using the
relevant set of APIs.
Happy hacking,
Debarshi
_
> Why don't you just use XORP's FEA code?
> It already does all this under a BSD-type license.
I was not aware of it. What does it do? Is it portable across other
OSes or is it *BSD specific?
Thanks,
Debarshi
___
freebsd-net@freebsd.org mailing list
htt
> You want 'netstat -rn' to dump them, this is a very common command which
> should be present in a number of online resources on using and administering
> FreeBSD so I am somewhat surprised that you didn't find it.
I know about netstat. I did mention having gone through its
implementation. :-) Wh
I am implementing a library/utility which basically encompasses the
features of the traditional route utilities and those of newer tools
(like ip from iproute2), which are mostly specific to a particular
kernel. The overpowering objective is to make the library/utility work
uniformly across all dif