summaryrefslogtreecommitdiff
path: root/ot_accesslist.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r--ot_accesslist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 9163ea9..2465ada 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -22,11 +22,11 @@
22#endif 22#endif
23 23
24/* Libowfat */ 24/* Libowfat */
25#include "ip6.h"
26 25
27/* Opentracker */ 26/* Opentracker */
28#include "ot_accesslist.h" 27#include "ot_accesslist.h"
29#include "ot_hex.h" 28#include "ot_hex.h"
29#include "ot_ip.h"
30#include "ot_vector.h" 30#include "ot_vector.h"
31#include "trackerlogic.h" 31#include "trackerlogic.h"
32 32
@@ -556,10 +556,10 @@ int accesslist_bless_net(ot_net *net, ot_permissions permissions) {
556 { 556 {
557 char _debug[512]; 557 char _debug[512];
558 int off = snprintf(_debug, sizeof(_debug), "Blessing ip net "); 558 int off = snprintf(_debug, sizeof(_debug), "Blessing ip net ");
559 off += fmt_ip6c(_debug + off, net->address); 559 off += ip_format(_debug + off, net->address);
560 if (net->bits < 128) { 560 if (net->bits < 128) {
561 _debug[off++] = '/'; 561 _debug[off++] = '/';
562 if (ip6_isv4mapped(net->address)) 562 if (ip_is_v4mapped(net->address))
563 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits - 96); 563 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits - 96);
564 else 564 else
565 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits); 565 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits);