[Olsr-cvs] olsrd-current/lib/dot_draw/src olsrd_dot_draw.c, 1.28, 1.29

Bernd Petrovitsch (spam-protected)
Sun Nov 4 00:11:42 CET 2007


Update of /cvsroot/olsrd/olsrd-current/lib/dot_draw/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13246/lib/dot_draw/src

Modified Files:
	olsrd_dot_draw.c 
Log Message:
PATCH by John Hay <(spam-protected)>:
- also printout our own HNAs in the dotdraw plugin.


Index: olsrd_dot_draw.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/dot_draw/src/olsrd_dot_draw.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** olsrd_dot_draw.c	2 Nov 2007 20:58:07 -0000	1.28
--- olsrd_dot_draw.c	3 Nov 2007 23:11:40 -0000	1.29
***************
*** 299,302 ****
--- 299,305 ----
    struct hna_entry *tmp_hna;
    struct hna_net *tmp_net;
+   struct hna4_entry *hna4;
+   struct hna6_entry *hna6;
+   union hna_netmask hna_msk;
  
    res = 0;
***************
*** 349,352 ****
--- 352,380 ----
  	}
  
+       /* Local HNA entries */
+       if (olsr_cnf->ip_version == AF_INET)
+        {
+        hna4 = olsr_cnf->hna4_entries;
+        while(hna4)
+         {
+          hna_msk.v4 = hna4->netmask.v4;
+          ipc_print_net(&olsr_cnf->interfaces->interf->ip_addr,
+                        &hna4->net,
+                        &hna_msk);
+          hna4 = hna4->next;
+         }
+        }
+       else
+        {
+        hna6 = olsr_cnf->hna6_entries;
+        while(hna6)
+         {
+          hna_msk.v6 = hna6->prefix_len;
+          ipc_print_net(&olsr_cnf->interfaces->interf->ip_addr,
+                        &hna6->net,
+                        &hna_msk);
+          hna6 = hna6->next;
+         }
+       }
  
        ipc_send_str("}\n\n");
***************
*** 362,366 ****
  }
  
- 
  static void
  ipc_print_tc_link(struct tc_entry *entry, struct tc_edge_entry *dst_entry)
--- 390,393 ----





More information about the Olsr-cvs mailing list