diff options
-rw-r--r-- | curvetun.c | 3 | ||||
-rw-r--r-- | stun.c | 9 | ||||
-rw-r--r-- | stun.h | 6 |
3 files changed, 8 insertions, 10 deletions
@@ -28,6 +28,7 @@ #include "die.h" #include "str.h" #include "sig.h" +#include "stun.h" #include "cookie.h" #include "ioexact.h" #include "xmalloc.h" @@ -44,8 +45,6 @@ #define CURVETUN_ENTROPY_SOURCE "/dev/random" -extern void print_stun_probe(char *server, uint16_t sport, uint16_t tunport); - enum working_mode { MODE_UNKNOW, MODE_KEYGEN, @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2011 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #include <stdio.h> #include <stdlib.h> #include <stdint.h> @@ -21,8 +15,7 @@ #include "xmalloc.h" #include "die.h" #include "sock.h" - -extern int print_stun_probe(char *server, int sport, int tport); +#include "stun.h" #define BINDING_REQUEST 0x0001 #define BINDING_RESPONSE 0x0101 @@ -0,0 +1,6 @@ +#ifndef STUN_H +#define STUN_H + +extern int print_stun_probe(char *server, int sport, int tport); + +#endif /* STUN_H */ |