Browse Source

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

armink 7 years ago
parent
commit
83616c9f2b
1 changed files with 18 additions and 0 deletions
  1. 18 0
      components/net/lwip-2.0.2/src/lwipopts.h

+ 18 - 0
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__ */