From 94bb92925c8afd0f426f2afdd3521516e9cbdc3b Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 31 Oct 2008 14:33:32 +0000 Subject: added initial ttl support, need testing git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@430 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'radsecproxy.h') diff --git a/radsecproxy.h b/radsecproxy.h index 0ba9db0..c891ba5 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -22,6 +22,9 @@ #define STATUS_SERVER_PERIOD 25 #define IDLE_TIMEOUT 300 +/* 27262 is vendor DANTE Ltd. */ +#define DEFAULT_TTL_ATTR "27262:1" + #define RAD_UDP 0 #define RAD_TLS 1 #define RAD_TCP 2 @@ -30,11 +33,11 @@ struct options { char **listenargs[RAD_PROTOCOUNT]; - char *sourceudp; - char *sourcetcp; - char *sourcetls; - char *sourcedtls; + char *sourcearg[RAD_PROTOCOUNT]; char *logdestination; + char *ttlattr; + uint32_t ttlattrtype[2]; + uint8_t addttl; uint8_t loglevel; uint8_t loopprevention; }; @@ -185,7 +188,6 @@ struct protodefs { uint8_t retryintervalmax; uint8_t duplicateintervaldefault; void *(*listener)(void*); - char **srcaddrport; int (*connecter)(struct server *, struct timeval *, int, char *); void *(*clientconnreader)(void*); int (*clientradput)(struct server *, unsigned char *); -- cgit v1.1