aboutsummaryrefslogtreecommitdiff
path: root/ptunnel.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-17 15:23:23 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-17 15:26:00 +0100
commitfb7af94ba14fcb19bc35d44e9178d4bb55a93e2f (patch)
tree94d2ee0763120b146c8358a18146e75713319007 /ptunnel.h
parent0c2b8553eec966e5a96a3c42347674c90e100da2 (diff)
ptunnel-ng:
* source refactoring * utils functions pt_log, time_as_double * handle_pkt moved to pkt.c
Diffstat (limited to 'ptunnel.h')
-rw-r--r--ptunnel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ptunnel.h b/ptunnel.h
index 22313b0..4f81b39 100644
--- a/ptunnel.h
+++ b/ptunnel.h
@@ -64,7 +64,6 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <sys/time.h>
#include <signal.h>
#include <stdint.h>
#include <stdbool.h>
@@ -75,9 +74,11 @@
#include "challenge.h"
extern pthread_mutex_t chain_lock;
-extern int num_tunnels;
+extern uint32_t num_tunnels;
extern const int icmp_receive_buf_len;
extern proxy_desc_t *chain;
+extern uint32_t *seq_expiry_tbl;
+extern const char *state_name[kNum_proto_types];
/* pt_thread_info_t: A simple (very simple, in fact) structure that allows us
to pass an arbitrary number of params to the threads we create. Currently,
@@ -132,7 +133,6 @@ typedef struct {
// Prototypes (sorry about the long lines..)
void* pt_proxy(void *args);
void pcap_packet_handler(u_char *refcon, const struct pcap_pkthdr *hdr, const u_char* pkt);
- void handle_packet(char *buf, int bytes, int is_pcap, struct sockaddr_in *addr, int icmp_sock);
void pt_forwarder(void);