[openib-general] [PATCH] [RFC] ofed_1_2 - SLES9SP3 Backport -IWCM workaround for ip_dev_find() bug.

Steve Wise swise at opengridcomputing.com
Tue Feb 6 13:34:03 PST 2007


How shall I fix this?  

I think the correct scope is RT_SCOPE_HOST.

Anyone know why RT_SCOPE_LINK was chosen?



On Tue, 2007-02-06 at 15:17 -0600, Steve Wise wrote:
> > Try copying inet_select_addr source in from some upstream kernel,
> > look at that.
> > 
> 
> It appears that xxx_ip_find_dev() should be calling inet_select_addr
> with RT_SCOPE_HOST and not RT_SCOPE_LINK.  Everything works fine for me
> if I change xxx_ip_find_dev() to use RT_SCOPE_HOST.  
> 
> 
> >From the header file linux/rtnetlink.h.  Note the comment on HOST vs
> LINK:
> 
> 
> /* rtm_scope
> 
>    Really it is not scope, but sort of distance to the destination.
>    NOWHERE are reserved for not existing destinations, HOST is our
>    local addresses, LINK are destinations, located on directly attached
>    link and UNIVERSE is everywhere in the Universe.
> 
>    Intermediate values are also possible f.e. interior routes
>    could be assigned a value between UNIVERSE and LINK.
> */
> 
> enum rt_scope_t
> {
>         RT_SCOPE_UNIVERSE=0,
> /* User defined values  */
>         RT_SCOPE_SITE=200,
>         RT_SCOPE_LINK=253,
>         RT_SCOPE_HOST=254,
>         RT_SCOPE_NOWHERE=255
> };
> 
> 
> 
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> 





More information about the general mailing list