summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-12 22:00:41 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-12 22:00:41 +0000
commit556052777711b5969986fc06ba862548f7c04912 (patch)
treea19954aee90e82a74376027d58b62bcb28d1f2cf /src/uanytun.c
parentbugfix @ BSD tunDevice (diff)
moved hex-dump function to log_*
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c17
1 files changed, 0 insertions, 17 deletions
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();