[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:17:43 PST 2007


> 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
};






More information about the general mailing list