[Olsr-dev] httpinfo IPv6 patch

Alina Friedrichsen (spam-protected)
Tue Nov 18 16:48:56 CET 2008


Hi Bernd!

> FWIW I pushed it into http://gredler.at/hg/olsrd/rev/7780d067b05e (and
> got the name correct:-).

Can you please replace:

+ if(ip_version != olsr_cnf->ip_version) {
+ if(ip_version == AF_INET) {
+ memmove(&net.v6.s6_addr[12], &net.v4.s_addr, sizeof(in_addr_t));
+ memset(&net.v6.s6_addr[0], 0x00, 10 * sizeof(uint8_t));
+ memset(&net.v6.s6_addr[10], 0xff, 2 * sizeof(uint8_t));
+ prefix_len += 96;
+ }
+ else return 1; 

with:

+ if(ip_version != olsr_cnf->ip_version) {
+ if(ip_version == AF_INET) {
+ memmove(&net.v6.s6_addr[12], &net.v4.s_addr, sizeof(in_addr_t));
+ memset(&net.v6.s6_addr[0], 0x00, 10 * sizeof(uint8_t));
+ memset(&net.v6.s6_addr[10], 0xff, 2 * sizeof(uint8_t));
+ prefix_len += 96;
+ }
+ else return 0; /* <-- */

like in my last patch?

Or a Host6 or Net6 in the config of the IPv4 instance of the olsrd will break it down.

Think after a test on *BSD the unique-local patch can in the repository, too.

cu
Alina

-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a




More information about the Olsr-dev mailing list