net: add config menus for LwIP UDP options
authorEunBong Song <eunb.song@samsung.com>
Tue, 21 Mar 2017 01:25:56 +0000 (10:25 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Mon, 17 Apr 2017 10:58:09 +0000 (19:58 +0900)
This patch adds for config menu for LwIP UDP options.

Change-Id: If77b2036596adf34168c09a1215352c80e396497
Signed-off-by: EunBong Song <eunb.song@samsung.com>
build/configs/sidk_s5jt200/sidk_tash_wlan/defconfig
os/include/net/lwip/lwipopts.h
os/net/lwip/Kconfig

index 140d520..bfba68f 100755 (executable)
@@ -657,6 +657,8 @@ CONFIG_NET_LWIP_ICMP=y
 # CONFIG_NET_LWIP_ICMP_MULTICAST_PING is not set
 CONFIG_NET_LWIP_IGMP=y
 CONFIG_NET_LWIP_MEMP_NUM_IGMP_GROUP=8
+CONFIG_NET_LWIP_UDP=y
+# CONFIG_NET_LWIP_UDPLITE is not set
 CONFIG_NET_SECURITY_TLS=y
 # CONFIG_TLS_WITH_SSS is not set
 CONFIG_NET_NOINTS=y
index 532987a..02f8470 100644 (file)
 #define TCP_WND                         (40*TCP_MSS)
 
 /* ---------- UDP options ---------- */
+#ifdef CONFIG_NET_LWIP_UDP
 #define LWIP_UDP                        1
+#else
+#define LWIP_UDP                        0
+#endif
+
+#ifdef CONFIG_NET_LWIP_UDPLITE
+#define LWIP_UDPLITE                    1
+#else
+#define LWIP_UDPLITE                    0
+#endif
+
 #define UDP_TTL                         255
 #define LWIP_UDP_TODO                   1
-
 #define LWIP_DHCPS                      0
+/* ---------- UDP options ---------- */
+
+
 
 /*
    ----------------------------------------------
index 3d9ad31..c5db028 100644 (file)
@@ -182,4 +182,18 @@ config NET_LWIP_MEMP_NUM_IGMP_GROUP
                can be members at the same time
 endif #NET_LWIP_IGMP
 
+
+menuconfig NET_LWIP_UDP
+       bool "UDP support"
+       default y
+
+if NET_LWIP_UDP
+
+config NET_LWIP_UDPLITE
+       bool "UDP-Lite support"
+       default n
+
+endif #NET_LWIP_UDP
+
+
 endmenu #LwIP options