summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-09 11:31:22 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-09 11:31:22 +0000
commit2311c004d373668664e36a0094cee74b86551def (patch)
treefa464b48f8edaf5bc269df48fab688c5073d54c9 /radsecproxy.h
parent5fc6f776461e6c70888c25353e281d3ecf0a5fcc (diff)
Reordered radsecproxy.h
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@77 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/radsecproxy.h b/radsecproxy.h
index fd36b03..0451407 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -6,12 +6,6 @@
* copyright notice and this permission notice appear in all copies.
*/
-#define RADLEN(x) ntohs(((uint16_t *)(x))[1])
-
-#define SOCKADDR_SIZE(addr) ((addr).ss_family == AF_INET ? \
- sizeof(struct sockaddr_in) : \
- sizeof(struct sockaddr_in6))
-
#define DEBUG_LEVEL 2
#define CONFIG_MAIN "/etc/radsecproxy/radsecproxy.conf"
@@ -119,6 +113,12 @@ struct server {
pthread_cond_t newrq_cond;
};
+#define RADLEN(x) ntohs(((uint16_t *)(x))[1])
+
+#define SOCKADDR_SIZE(addr) ((addr).ss_family == AF_INET ? \
+ sizeof(struct sockaddr_in) : \
+ sizeof(struct sockaddr_in6))
+
void errx(char *format, ...);
void err(char *format, ...);
char *stringcopy(char *s, int len);