Date: Wed, 17 Sep 2008 00:09:37 +0530 From: "Debarshi Ray" <debarshi.ray@gmail.com> To: "Chris Inacio" <nacho319@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: help with code to determine external IP address on FreeBSD gateway machine Message-ID: <3170f42f0809161139k44b67895id412832aafe0568f@mail.gmail.com> In-Reply-To: <900019150809160829n7bf785ddn9ee2a86f11174885@mail.gmail.com> References: <900019150809160401v316682fdt4cf8a95bfcb48dc2@mail.gmail.com> <3170f42f0809160433x78d6637odc58da304cf3e19e@mail.gmail.com> <900019150809160829n7bf785ddn9ee2a86f11174885@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3170f42f0809161139k44b67895id412832aafe0568f>