+static void
+ipc_print_mid(void)
+{
+ olsr_u8_t index;
+ unsigned short is_first;
+ struct mid_entry *entry;
+ struct mid_address *alias;
+
+ ipc_sendf("Table: MID\nIP\tAliases\n");
+
+ /* MID */
+ for( index = 0; index < HASHSIZE; index++ )
+ {
+ entry = mid_set[index].next;
+
+ while( entry != &mid_set[index] )
+ {
+ ipc_sendf( olsr_ip_to_string( &entry->main_addr ) );
+ alias = entry->aliases;
+ is_first = 1;
+
+ while( alias )
+ {
+ ipc_sendf( "%s%s",
+ ( is_first ? "\t" : ";" ),
+ olsr_ip_to_string( &alias->alias )
+ );
+
+ alias = alias->next_alias;
+ is_first = 0;
+ }
+
+ entry = entry->next;
+ ipc_sendf("\n");
+ }
+ }
+
+ ipc_sendf("\n");
+}
+