[Asterisk-bsd] Re: ast_lookup_iface in acl.c

Tom Ivar Helbekkmo tih at eunetnorge.no
Mon Nov 15 02:59:57 CST 2004


"Dr. Rich Murphey" <Rich at WhiteOakLabs.com> writes:

> It looks like ast_ouraddrfor() doesn't call ast_lookup_iface() on 
> FreeBSD, but rather searches through the routing tables.

...which is correct, and should not be changed.  Under BSD, when you
don't bind to a specific source address, the routing table is where
the choice of source address for a specific destination address is
made.  The address chosen as source need not be the primary address on
the interface the traffic is routed out through.  In fact, it need not
even reside on that interface -- it might, for instance, be configured
on a loopback interface instead.  (You use the -ifa flag with route(8)
to create a routing table entry to handle this situation.)

-tih
-- 
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
www.eunet.no  T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145


More information about the Asterisk-BSD mailing list