summaryrefslogtreecommitdiff
path: root/src/pam_radius_auth.h
diff options
context:
space:
mode:
authorMiquel van Smoorenburg <mikevs@xs4all.net>2017-03-17 00:36:08 +0100
committerMiquel van Smoorenburg <mikevs@xs4all.net>2017-03-21 00:42:33 +0100
commitde3a47e7275d7078c0b089a964ed0f3dd186af72 (patch)
treef9d575bfab62047823289cc8b0bdffa7a6d5244c /src/pam_radius_auth.h
parenta581c2149d1218b11a6a0b8a25ceec78b0a1db08 (diff)
downloadlibpam-radius-auth-de3a47e7275d7078c0b089a964ed0f3dd186af72.tar.gz
libpam-radius-auth-de3a47e7275d7078c0b089a964ed0f3dd186af72.zip
add IPv6 support
Diffstat (limited to 'src/pam_radius_auth.h')
-rw-r--r--src/pam_radius_auth.h5
1 files changed, 3 insertions, 2 deletions
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];