From de3a47e7275d7078c0b089a964ed0f3dd186af72 Mon Sep 17 00:00:00 2001 From: Miquel van Smoorenburg Date: Fri, 17 Mar 2017 00:36:08 +0100 Subject: add IPv6 support --- src/pam_radius_auth.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pam_radius_auth.h') diff --git a/src/pam_radius_auth.h b/src/pam_radius_auth.h index b3f7839..887b8ad 100644 --- a/src/pam_radius_auth.h +++ b/src/pam_radius_auth.h @@ -130,8 +130,8 @@ typedef struct attribute_t { typedef struct radius_server_t { struct radius_server_t *next; - struct in_addr ip; - uint16_t port; + struct sockaddr_storage ip_storage; + struct sockaddr *ip; char *hostname; char *secret; int timeout; @@ -147,6 +147,7 @@ typedef struct radius_conf_t { int force_prompt; int max_challenge; int sockfd; + int sockfd6; int debug; CONST char *conf_file; char prompt[MAXPROMPT]; -- cgit v1.2.3