diff options
author | Alan T. DeKok <aland@freeradius.org> | 2015-09-08 14:33:15 -0400 |
---|---|---|
committer | Alan T. DeKok <aland@freeradius.org> | 2015-09-08 14:33:15 -0400 |
commit | c47a78f9c3f6d41de93db8bd572e985ed1c0878d (patch) | |
tree | 850e8ed9b87fbdf64df5825a879ad74ea15d6519 /src/pam_radius_auth.h | |
parent | 222e95312cb12febaa8f793d77f139de46f73ea3 (diff) | |
download | libpam-radius-auth-c47a78f9c3f6d41de93db8bd572e985ed1c0878d.tar.gz libpam-radius-auth-c47a78f9c3f6d41de93db8bd572e985ed1c0878d.zip |
Allow src_ip to be set
Diffstat (limited to 'src/pam_radius_auth.h')
-rw-r--r-- | src/pam_radius_auth.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pam_radius_auth.h b/src/pam_radius_auth.h index 894d3fe..4594eef 100644 --- a/src/pam_radius_auth.h +++ b/src/pam_radius_auth.h @@ -20,6 +20,7 @@ #include <netinet/in.h> #include <netdb.h> #include <fcntl.h> +#include <arpa/inet.h> #if defined(HAVE_SECURITY_PAM_APPL_H) # include <security/pam_appl.h> @@ -119,6 +120,9 @@ typedef struct radius_conf_t { #define PAM_RUSER_ARG 16 +/* buffer size for IP address in string form */ +#define MAX_IP_LEN 16 + /* Module defines */ #ifndef BUFFER_SIZE #define BUFFER_SIZE 1024 |