From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/include/tcpto.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/include/tcpto.h') diff --git a/src/include/tcpto.h b/src/include/tcpto.h index 678d12a..010dd1b 100644 --- a/src/include/tcpto.h +++ b/src/include/tcpto.h @@ -1,25 +1,27 @@ #ifndef TCPTO_H #define TCPTO_H +#include "ipalloc.h" + #define TCPTO_BUFSIZ 1024 -/* persistency structure: record -struct tcpto { +/* persistency structure: record +struct tcpto { unsigned char af; -- 1 byte -- IPv4: x'2' / IPv6: x'a' (10) unsigned char nul[3]; -- 3 byte unsigned char errorcount -- 1 byte -- if err_timeout || err_conrefused || err_proto (TLS) unsigned char nul[3]; -- 3 byte - unsigned long when; -- 8 byte + unsigned long when; -- 8 byte union { struct ip_address ip; struct ip6_address ip6; unsigned char nul[16]; -- 16 byte -- IPv4: filled up with '.' = x'2e' - } addr; + } addr; }; total: 32 byte */ -int tcpto(); -void tcpto_err(); -void tcpto_clean(); +int tcpto(struct ip_mx *); +void tcpto_err(struct ip_mx *ix, int flagerr); +void tcpto_clean(void); #endif -- cgit v1.2.3