summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-10-24 16:36:13 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-10-26 06:34:34 +0300
commit26d64e2cc9113f11aead582ed6048c52dc5d9055 (patch)
treea6f54ab2517923de7bd74c7fdcb6208174e4541a /accel-pppd/radius
parenta32135efd217f4cf15227485cf590586c3b6929f (diff)
downloadaccel-ppp-26d64e2cc9113f11aead582ed6048c52dc5d9055.tar.gz
accel-ppp-26d64e2cc9113f11aead582ed6048c52dc5d9055.zip
radius: make radius.h self-contained
We need to include "list.h" to define 'struct list_head' and <netinet/in.h> for 'in_addr_t' and 'struct in6_addr'. Also, let's include "ap_session.h" so that we don't need a forward declaration for 'struct ap_session'. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r--accel-pppd/radius/radius.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/radius/radius.h b/accel-pppd/radius/radius.h
index 6428bb1f..9fc8869d 100644
--- a/accel-pppd/radius/radius.h
+++ b/accel-pppd/radius/radius.h
@@ -1,9 +1,13 @@
#ifndef __RADIUS_H
#define __RADIUS_H
+#include <netinet/in.h>
#include <stdint.h>
#include <sys/time.h>
+#include "ap_session.h"
+#include "list.h"
+
#define REQ_LENGTH_MAX 4096
#define ATTR_TYPE_INTEGER 0
@@ -112,8 +116,6 @@ struct rad_plugin_t
int (*send_accounting_request)(struct rad_plugin_t *, struct rad_packet_t *pack);
};
-struct ap_session;
-
void rad_register_plugin(struct ap_session *, struct rad_plugin_t *);
struct rad_dict_attr_t *rad_dict_find_attr(const char *name);