aboutsummaryrefslogtreecommitdiff
path: root/ptunnel.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-18 14:50:34 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-18 14:50:34 +0100
commitb28291e23ea09b55f564acef9e265395e23bd2c1 (patch)
tree61f95c3caed8446397c895d321b33f286d153b02 /ptunnel.h
parent6e8b336c950fa0af7d45e0d3933fd3d74e7c246b (diff)
ptunnel-ng:
* source refactoring * moved functions to modules
Diffstat (limited to 'ptunnel.h')
-rw-r--r--ptunnel.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/ptunnel.h b/ptunnel.h
index d0714e3..e1afc33 100644
--- a/ptunnel.h
+++ b/ptunnel.h
@@ -133,24 +133,10 @@ void pt_forwarder(void);
void print_statistics(xfer_stats_t *xfer, int is_continuous);
-int queue_packet(int icmp_sock, uint8_t type, char *buf, int num_bytes,
- uint16_t id_no, uint16_t icmp_id, uint16_t *seq, icmp_desc_t ring[],
- int *insert_idx, int *await_send, uint32_t ip, uint32_t port,
- uint32_t state, struct sockaddr_in *dest_addr, uint16_t next_expected_seq,
- int *first_ack, uint16_t *ping_seq);
-
-void handle_data(icmp_echo_packet_t *pkt, int total_len, forward_desc_t *ring[],
- int *await_send, int *insert_idx, uint16_t *next_expected_seq);
-
-void handle_ack(uint16_t seq_no, icmp_desc_t ring[], int *packets_awaiting_ack,
- int one_ack_only, int insert_idx, int *first_ack, uint16_t *remote_ack,
- int is_pcap);
-
void init_ip_packet(ip_packet_t *packet, uint16_t id, uint16_t frag_offset,
uint16_t pkt_len, uint8_t ttl, uint32_t src_ip, uint32_t dst_ip,
bool is_last_frag, bool dont_frag);
-uint16_t calc_ip_checksum(ip_packet_t *pkt);
uint16_t calc_icmp_checksum(uint16_t *data, int bytes);
void send_termination_msg(proxy_desc_t *cur, int icmp_sock);