From d0c9e04d128e1696dcff089978cf823e0316389e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 4 Jul 2019 19:42:07 +0200 Subject: handle_extended_options should use proxy_desc_t* instead of a incomplete void* as 1st argument Signed-off-by: Toni Uhlig --- src/pkt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pkt.h') diff --git a/src/pkt.h b/src/pkt.h index 8002f78..3953adb 100644 --- a/src/pkt.h +++ b/src/pkt.h @@ -133,6 +133,7 @@ typedef struct { typedef struct forward_desc_t forward_desc_t; typedef struct icmp_desc_t icmp_desc_t; +typedef struct proxy_desc_t proxy_desc_t; void handle_packet(char *buf, unsigned bytes, int is_pcap, struct sockaddr_in *addr, int icmp_sock); @@ -140,7 +141,7 @@ void handle_packet(char *buf, unsigned bytes, int is_pcap, struct sockaddr_in *a 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 *vcur, uint16_t window_size); -void handle_extended_options(void *vcur); +void handle_extended_options(proxy_desc_t *cur); 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, -- cgit v1.2.3