lkml.org 
[lkml]   [2003]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectquestion:source address selection
Hi all,
If the current code with Linux kernel 2.4.18 will also pick up the first one
address it finds ?
Assume that I have 2 IPv6 addresses (3ffe:3600:1b::1999, 3ffe:3600:1c:2999)
on eth0

I tried it on my RedHat 8.0, it always choose the same ipv6 address
(3ffe:3600:1b::1999) to internet,
but when I check the soure code, it shows as below

/*
* Choose an apropriate source address
* should do:
* i) get an address with an apropriate scope
* ii) see if there is a specific route for the destination and use
* an address of the attached interface
* iii) don't use deprecated addresses
*/
int ipv6_get_saddr(struct dst_entry *dst,
struct in6_addr *daddr, struct in6_addr *saddr)


Why this does not work ? or when it will work ?
Suggestion is needed. Thanks.

Regards,
PC


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.508 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site