From 83616c9f2b8e75409293ace56e319996313e1c9c Mon Sep 17 00:00:00 2001 From: armink Date: Sat, 19 Aug 2017 20:22:08 +0800 Subject: [PATCH] [LWIP] Add tftp max file name len config to LwIP 2.0.2 `lwipopts.h` . --- components/net/lwip-2.0.2/src/lwipopts.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/net/lwip-2.0.2/src/lwipopts.h b/components/net/lwip-2.0.2/src/lwipopts.h index 33861dd574..d846cf2fb0 100644 --- a/components/net/lwip-2.0.2/src/lwipopts.h +++ b/components/net/lwip-2.0.2/src/lwipopts.h @@ -446,4 +446,22 @@ #define SO_REUSE 0 #endif +/* + ------------------------------------ + ------- Applications options ------- + ------------------------------------ +*/ + +/** + * Max. length of TFTP filename + */ +#ifdef RT_LWIP_TFTP_MAX_FILENAME_LEN +#define TFTP_MAX_FILENAME_LEN RT_LWIP_TFTP_MAX_FILENAME_LEN +#elif defined(RT_DFS_ELM_MAX_LFN) +#define TFTP_MAX_FILENAME_LEN RT_DFS_ELM_MAX_LFN +#else +#define TFTP_MAX_FILENAME_LEN 64 +#endif + + #endif /* __LWIPOPTS_H__ */ -- GitLab