From 556052777711b5969986fc06ba862548f7c04912 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 12 Mar 2009 22:00:41 +0000 Subject: moved hex-dump function to log_* --- src/uanytun.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/uanytun.c') diff --git a/src/uanytun.c b/src/uanytun.c index 396903d..5c81dc9 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -308,23 +308,6 @@ int main_loop(tun_device_t* dev, udp_socket_t* sock, options_t* opt) return return_value; } -void print_hex_dump(const u_int8_t* buf, u_int32_t len) -{ - if(!buf) { - printf("(NULL)"); - } - - u_int32_t i; - for(i=0; i < len; i++) { - printf("%02X ", buf[i]); - if(!((i+1)%8)) - printf(" "); - if(!((i+1)%16)) - printf("\n"); - } - printf("\n"); -} - int main(int argc, char* argv[]) { log_init(); -- cgit v1.2.3