[Asterisk-Dev] [patch] ast_ouraddrfor replacement using netlink

Karl Brose khb at brose.com
Mon Nov 29 20:47:42 MST 2004


Ah, yes.  you are very correct. ourraddrfor only works for rather 
trivial things
I also replaced this, but still looking for better solutions.  Will give 
yours a tryout
and use it if it works better.
Thanks.


Angus Lees wrote:

>On our boxes we use a lot of policy routing, etc so the naive
>/proc/net/route implementation of ast_ouraddrfor completely fails for
>us.  Here's the "proper" implementation for Linux, using netlink --
>similar to "ip route get".  The code is based on findsaddr-linux.c
>from traceroute and used with permission from the original author
>(Herbert Xu).
>  
>




More information about the asterisk-dev mailing list