Unknown grabbed packets are now displayed with type, size and originator
authorAndreas Tonnesen <andreto@olsr.org>
Sun, 14 Nov 2004 13:33:55 +0000 (13:33 +0000)
committerAndreas Tonnesen <andreto@olsr.org>
Sun, 14 Nov 2004 13:33:55 +0000 (13:33 +0000)
gui/linux-gtk/bin/olsrd-gui
gui/linux-gtk/src/ipc.c

index 4c8322e..7c18deb 100755 (executable)
Binary files a/gui/linux-gtk/bin/olsrd-gui and b/gui/linux-gtk/bin/olsrd-gui differ
index bae1857..348de58 100644 (file)
@@ -360,8 +360,11 @@ ipc_evaluate_message(union olsr_message *olsr_in)
       break;
     default:
       if(!freeze_packets)
-       packet_list_add("UNKNOWN", "?", "?");
-
+       {
+         char unk_label[8];
+         sprintf(unk_label, "%d", type);
+         packet_list_add(unk_label, ip_to_string(originator), itoa_buf);
+       }
        printf("Unknown packet type %d\n", type);
       
     }