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

2008-09-16 Thread Chris Inacio
Debarshi,

Yes, I would be interested in seeing the code.  I would hope that this task
isn't too complicated, but I have my suspicions that it will be a fair
number of steps.
Thanks,
Chris


On Tue, Sep 16, 2008 at 7:33 AM, Debarshi Ray [EMAIL PROTECTED]wrote:

 I have some PF_ROUTE based code, which shows the routing table of a
 FreeBSD system. If you are interested, I can show it to you once I get
 back home tonight.

 Happy hacking,
 Debarshi

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to [EMAIL PROTECTED]


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,
Debarshi
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to [EMAIL PROTECTED]