]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move MAX_PACKET_LEN to common header
authorAlan T. DeKok <aland@freeradius.org>
Tue, 16 Feb 2016 16:42:18 +0000 (11:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 16 Feb 2016 16:42:18 +0000 (11:42 -0500)
src/include/radius.h
src/lib/radius.c
src/lib/tcp.c

index 10a7d940e8329e2984ba9c800f7576a646774913..7001b12577c62303c6927e665a90bf12c6462a35 100644 (file)
@@ -72,6 +72,11 @@ typedef enum {
 #define PW_RADIUS_TLS_PORT             2083
 #define PW_COA_UDP_PORT                        3799
 
+/*
+ *  The RFC says 4096 octets max, and most packets are less than 256.
+ */
+#define MAX_PACKET_LEN 4096
+
 #include <freeradius-devel/rfc2865.h>
 #include <freeradius-devel/rfc2866.h>
 #include <freeradius-devel/rfc2867.h>
index b17c868790cd4c837866dc8a2912fcf8417b245b..53d45e2885dc5a3d3b6f0afa914bc1b601e7af1a 100644 (file)
@@ -64,11 +64,6 @@ static void VP_HEXDUMP(char const *msg, uint8_t const *data, size_t len)
 #endif
 
 
-/*
- *  The RFC says 4096 octets max, and most packets are less than 256.
- */
-#define MAX_PACKET_LEN 4096
-
 /*
  *     The maximum number of attributes which we allow in an incoming
  *     request.  If there are more attributes than this, the request
index 3c6ac35aa9aab1569c70677ceabdcf5ec817ae14..355277c70dced0fd0c453e8a0606cf64a607ec0c 100644 (file)
@@ -26,9 +26,6 @@ RCSID("$Id$")
 
 #ifdef WITH_TCP
 
-/* FIXME: into common RADIUS header? */
-#define MAX_PACKET_LEN 4096
-
 RADIUS_PACKET *fr_tcp_recv(int sockfd, int flags)
 {
        RADIUS_PACKET *packet = rad_alloc(NULL, false);