aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorAnusha Datar <anusha@meter.com>2021-02-17 22:32:57 (GMT)
committerJouni Malinen <j@w1.fi>2021-02-19 22:11:17 (GMT)
commit5cb25307e41fc12d871cacde56fb97c1705c5e0b (patch)
tree9508676ae470d13b5bc810803336fb8d7c436963 /src/radius
parent7df089b56703279e18842796d8d25ffa9f3ae060 (diff)
downloadhostap-5cb25307e41fc12d871cacde56fb97c1705c5e0b.zip
hostap-5cb25307e41fc12d871cacde56fb97c1705c5e0b.tar.gz
hostap-5cb25307e41fc12d871cacde56fb97c1705c5e0b.tar.bz2
Set RADIUS message length to reflect RFC 2865
The current RADIUS server message maximum length limits the length of each RADIUS message to 3000 bytes. As specified in RFC 2865 section 3 ("Packet Format"), the RADIUS standard's maximum message size is 4096 bytes, so this change increases the RADIUS server's maximum message size from 3000 to 4096 to match the standard. Signed-off-by: Anusha Datar <anusha@meter.com> Reviewed-by: Steve deRosier <derosier@cal-sierra.com> Reviewed-by: Julian Squires <julian@cipht.net>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radius/radius.h b/src/radius/radius.h
index e228688..fb81481 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -225,8 +225,9 @@ struct radius_msg;
/* Default size to be allocated for attribute array */
#define RADIUS_DEFAULT_ATTR_COUNT 16
-/* Maximum message length for incoming RADIUS messages */
-#define RADIUS_MAX_MSG_LEN 3000
+/* Maximum message length for incoming RADIUS messages, as stated in RFC 2865
+ * Section 3 ("Packet Format").*/
+#define RADIUS_MAX_MSG_LEN 4096
/* MAC address ASCII format for IEEE 802.1X use
* (draft-congdon-radius-8021x-20.txt) */