]> granicus.if.org Git - esp-idf/commitdiff
add menuconfig option to enable SO_RCVBUF
authorme-no-dev <hristo@espressif.com>
Thu, 5 Jan 2017 11:17:52 +0000 (13:17 +0200)
committerme-no-dev <hristo@espressif.com>
Thu, 5 Jan 2017 11:17:52 +0000 (13:17 +0200)
components/lwip/Kconfig
components/lwip/include/lwip/port/lwipopts.h

index 9e2b0316747ccc6efc8e8bb2c235171b33aafbb9..760e035c8ce5b092f7d154666b6c113a8286be61 100644 (file)
@@ -40,6 +40,12 @@ config LWIP_SO_REUSE
         Enabling this option allows binding to a port which remains in
         TIME_WAIT.
 
+config LWIP_SO_RCVBUF
+    bool "Enable SO_RCVBUF option"
+    default 0
+    help
+        Enabling this option allows checking for available data on a netconn.
+
 config LWIP_DHCP_MAX_NTP_SERVERS
        int     "Maximum number of NTP servers"
        default 1
index 933d55a510326760838bad873f7c48c433e5cc86..14ec0e67a4f4007bf5609ba86272a9b3286d0b4d 100755 (executable)
 /**
  * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
  */
-#define LWIP_SO_RCVBUF                  0
+#define LWIP_SO_RCVBUF                  CONFIG_LWIP_SO_RCVBUF
 
 /**
  * SO_REUSE==1: Enable SO_REUSEADDR option.