Posted: Sun Nov 14, 2004 9:03 am Post subject: [Asterisk-bsd] ast_lookup_iface in acl.c
I think I need ast_lookup_iface to work on FreeBSD. It seems it can pickup normal
interfaces, but not FreeBSD aliases. It seems that this function is only used on
Linux in acl.c today. I would like to be able to lookup IP address on each FreeBSD
interface if possible - and it doesn't work today.
This is way beyond my knowledge, so if anyone here has time and interest in this
area I would really appreciate a working function ;-)
Posted: Sun Nov 14, 2004 12:35 pm Post subject: [Asterisk-bsd] ast_lookup_iface in acl.c
It looks like ast_ouraddrfor() doesn't call ast_lookup_iface() on
FreeBSD, but rather searches through the routing tables.
Even so, here's a patch that to ast_lookup_iface() that searches through
a list of interface/name/address bindings. As it stands, it still
returns the first match, which won't help for aliased interfaces, since
on FreeBSD the alias doesn't have a separate interface name.
I think this doesn't fix what you're describing, but I'm not certain
what the nature of the failure is.
Cheers,
Rich
Olle E. Johansson wrote:
Quote:
I think I need ast_lookup_iface to work on FreeBSD. It seems it can
pickup normal
interfaces, but not FreeBSD aliases. It seems that this function is
only used on
Linux in acl.c today. I would like to be able to lookup IP address on
each FreeBSD
interface if possible - and it doesn't work today.
This is way beyond my knowledge, so if anyone here has time and
interest in this
area I would really appreciate a working function ;-)
Posted: Sun Nov 14, 2004 10:20 pm Post subject: [Asterisk-bsd] ast_lookup_iface in acl.c
Dr. Rich Murphey wrote:
Quote:
It looks like ast_ouraddrfor() doesn't call ast_lookup_iface() on
FreeBSD, but rather searches through the routing tables.
Even so, here's a patch that to ast_lookup_iface() that searches through
a list of interface/name/address bindings. As it stands, it still
returns the first match, which won't help for aliased interfaces, since
on FreeBSD the alias doesn't have a separate interface name.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum