6df24ba7867392a00db476d24fbcee3a558bf1bb
[project/luci.git] / contrib / package / olsrd-luci / patches / 011-olsrd-ip6addr-2.patch
1 diff -urb olsrd-913b11abf7f1.orig/src/unix/ifnet.c olsrd-913b11abf7f1/src/unix/ifnet.c
2 --- olsrd-913b11abf7f1.orig/src/unix/ifnet.c    2008-12-29 17:41:41.000000000 +0100
3 +++ olsrd-913b11abf7f1/src/unix/ifnet.c 2008-12-29 17:43:53.000000000 +0100
4 @@ -214,13 +214,13 @@
5      }
6  
7  #ifdef DEBUG
8 -    OLSR_PRINTF(3, "\tAddress: %s\n", ip6_to_string(&buf, &tmp_saddr6.sin6_addr));
9 +    OLSR_PRINTF(3, "\tAddress: %s\n", ip6_to_string(&buf, &tmp_saddr6));
10  #endif
11  
12      if (ip6equal(&tmp_saddr6.sin6_addr, &ifp->int6_addr.sin6_addr)) {
13        OLSR_PRINTF(1, "New IP address for %s:\n", ifr.ifr_name);
14 -      OLSR_PRINTF(1, "\tOld: %s\n", ip6_to_string(&buf, &ifp->int6_addr.sin6_addr));
15 -      OLSR_PRINTF(1, "\tNew: %s\n", ip6_to_string(&buf, &tmp_saddr6.sin6_addr));
16 +      OLSR_PRINTF(1, "\tOld: %s\n", ip6_to_string(&buf, &ifp->int6_addr));
17 +      OLSR_PRINTF(1, "\tNew: %s\n", ip6_to_string(&buf, &tmp_saddr6));
18  
19        /* Check main addr */
20        if (ip6equal(&olsr_cnf->main_addr.v6, &tmp_saddr6.sin6_addr)) {