summaryrefslogtreecommitdiff
path: root/src/pam_radius_auth.h
diff options
context:
space:
mode:
authorAlan T. DeKok <aland@freeradius.org>2015-09-08 14:33:15 -0400
committerAlan T. DeKok <aland@freeradius.org>2015-09-08 14:33:15 -0400
commitc47a78f9c3f6d41de93db8bd572e985ed1c0878d (patch)
tree850e8ed9b87fbdf64df5825a879ad74ea15d6519 /src/pam_radius_auth.h
parent222e95312cb12febaa8f793d77f139de46f73ea3 (diff)
downloadlibpam-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.h4
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