From 73251bc9c1da9ebd3cd50d7283800ae0074e488d Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 4 Dec 2009 09:00:55 +0000 Subject: [PATCH] PPP: Make MAXNAMELEN/MAXSECRETLEN overridable in lwipopts.h --- src/include/lwip/opt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index bc954d2e..eb99a778 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1527,9 +1527,12 @@ #endif #define PPP_MINMRU 128 /* No MRUs below this */ - +#ifndef MAXNAMELEN #define MAXNAMELEN 256 /* max length of hostname or name for auth */ +#endif +#ifndef MAXSECRETLEN #define MAXSECRETLEN 256 /* max length of password or secret */ +#endif #endif /* PPP_SUPPORT */