diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 11:58:51 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 11:58:51 +0200 |
commit | b1d59d3eda7ee4f09b30f807d72aac2af58409ac (patch) | |
tree | 1131681dd1b0aaf6d4d01ae6c7504422097d43ce | |
parent | 83ef345503943cc6f7c2f02381f71113601e8261 (diff) |
stun: add header file
Add a header file for stun functions.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-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 */ |