summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ifw/report_list.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/ifw/report_list.c b/src/plugins/ifw/report_list.c
index 290746c..ed2f3c2 100644
--- a/src/plugins/ifw/report_list.c
+++ b/src/plugins/ifw/report_list.c
@@ -3,6 +3,10 @@
#include <stdio.h>
#include <stdlib.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
void report_list_init(report_list_t *list) {
INIT_LIST_HEAD(list);
}
@@ -73,8 +77,10 @@ void report_list_print(report_list_t *list) {
printf("* report list {\n");
__list_for_each(entry, list) {
report_list_cell_t *cell;
+ struct in_addr addr;
cell = list_entry(entry, report_list_cell_t, list);
- printf("%d,\n", cell->seq);
+ addr.s_addr = cell->info.s_addr;
+ printf("%s (%d),\n", inet_ntoa(addr), cell->seq);
}
printf("} report list *\n");
}