[LWIP] Add tftp max file name len config to LwIP 2.0.2 `lwipopts.h` .

This commit is contained in:
armink 2017-08-19 20:22:08 +08:00
parent 38ca426626
commit 83616c9f2b
1 changed files with 18 additions and 0 deletions

View File

@ -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__ */