Re: [X-POST] Anyone porting NetworkManager to FreeBSD ?

2008-09-24 Thread Debarshi Ray
> 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

Re: [X-POST] Anyone porting NetworkManager to FreeBSD ?

2008-09-24 Thread Debarshi Ray
> 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

Re: reading routing table

2008-09-18 Thread Debarshi Ray
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

Re: help with code to determine external IP address on FreeBSD gateway machine

2008-09-16 Thread Debarshi Ray
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,

Re: reading routing table

2008-09-02 Thread Debarshi Ray
> 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

Re: reading routing table

2008-09-01 Thread Debarshi Ray
> 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 _

Re: reading routing table

2008-09-01 Thread Debarshi Ray
> 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

Re: reading routing table

2008-09-01 Thread Debarshi Ray
> 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

reading routing table

2008-09-01 Thread Debarshi Ray
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