Commit Graph

  • 471daba011 tcp_out: Fix LWIP_NETIF_TX_SINGLE_PBUF guard for not executing phase 2 Axel Lin 2017-04-25 23:14:07 +08:00
  • 2f117add7a sockets: task #14247, add CMSG and IP_PKTINFO Joel Cunningham 2017-04-25 09:40:04 -05:00
  • ca961b9bc2 minor whitespace cleanups only goldsimon 2017-04-25 12:07:28 +02:00
  • d02bc6481f Fixed bug #50816 (netif_add() prototype depends on configuration) by adding a new function netif_add_noaddrthat doesn't change goldsimon 2017-04-25 12:05:05 +02:00
  • 135d506065 minor whitespace fixes only goldsimon 2017-04-25 12:03:52 +02:00
  • dd811bca06 Fix bug #50694 (TX exist more pbufs after enable LWIP_NETIF_TX_SINGLE_PBUF) by not executing phase 2 for LWIP_NETIF_TX_SINGLE_PBUF==1 goldsimon 2017-04-25 11:18:36 +02:00
  • 4b68605276 Clarify LWIP_NETIF_TX_SINGLE_PBUF (drivers might still get chained pbufs and have to take care of that, e.g. by using pbuf_alloc_copy) goldsimon 2017-04-25 10:09:32 +02:00
  • dcb2cb99a1 Added 'pbuf_alloc_copy' e.g. as a single function for use with non scatter-gather drivers goldsimon 2017-04-25 10:07:57 +02:00
  • 42eb98c9fc Fix bugs in httpd with "LWIP_HTTPD_CUSTOM_FILES && LWIP_HTTPD_DYNAMIC_FILE_READ" when SSI tags (from '<' to '>' when they span from one read to the next or end at one read buffer) - bugs #50844 aqnd #50845 Dmitry 2017-04-24 22:33:17 +02:00
  • 9c6da979ca fixed copy&paste error in last change to lwip_itoa() goldsimon 2017-04-24 13:33:43 +02:00
  • 16a71473c1 Better fix for bug #50838 (mem.c needs SYS_ARCH_PROTECTION around MEM_STATS): only lock where necessary goldsimon 2017-04-24 12:23:05 +02:00
  • bd483fa229 Revert "Fixed bug #50838 (mem.c needs SYS_ARCH_PROTECTION around MEM_STATS)" goldsimon 2017-04-24 10:29:46 +02:00
  • b71878f02e Fix bug #50739: 6lowpan - IPHC de-compression bug Apply fix provided by Aigner B. Dirk Ziegelmeier 2017-04-21 22:30:23 +02:00
  • 13f51a0318 Fix bug #50824: Bug in SNTP POLL mode Ignore all broken packets Stop timeouts only when correct packet is received Dirk Ziegelmeier 2017-04-21 22:10:52 +02:00
  • ad779e5c9c doc: clarify RST handling comment Joel Cunningham 2017-04-21 09:24:08 -05:00
  • f4730e78f8 sntp: use randomized startup delay ([0..5] seconds) by default (if LWIP_RAND is available) goldsimon 2017-04-21 09:43:44 +02:00
  • 65b8316459 sntp_opts.h: adapt comment to RFC errata goldsimon 2017-04-21 13:10:00 +02:00
  • 554f5d7f9e sntp: fix SNTP_LI_* bits; fix todo comment goldsimon 2017-04-21 12:21:18 +02:00
  • 84461e90e2 mqtt: fix shadowing global 'dup' goldsimon 2017-04-21 07:23:32 +02:00
  • a50ba9c748 sockets.c: try to fix debug print (again) goldsimon 2017-04-20 23:03:14 +02:00
  • de90d03e48 tcp: task #14128 - Appropriate Byte Counting support Joel Cunningham 2017-04-12 19:29:38 -05:00
  • e1f2c8b30c sockets.c: try to fix debug print goldsimon 2017-04-20 22:55:56 +02:00
  • 2358a5ac32 lwip_netconn_do_close_internal: 'close' -> 'shut_close': don't override global function names (why is this reported only now?) goldsimon 2017-04-20 22:52:27 +02:00
  • 2c767a1d60 fix standard conformance: some socket functions should return 'ssize_t', not 'int' goldsimon 2017-04-20 22:44:23 +02:00
  • 1ada106d61 netconn_tcp_recvd: take size_t, not u32_t goldsimon 2017-04-20 22:34:12 +02:00
  • 4d6b90727f lwip_recvfrom: use LWIP_MIN instead of self-coded min goldsimon 2017-04-20 22:07:08 +02:00
  • dbc969c139 Try to fix the socket API for sizeof(int) <= 2 by checking INT_MAX at 2 places goldsimon 2017-04-20 22:06:36 +02:00
  • b93572dca8 Document struct netvector goldsimon 2017-04-20 22:00:07 +02:00
  • 131d656c23 lwip_itoa: check 'bufsize' instead of ignoring it; ensure code is not stolen from GPL goldsimon 2017-04-20 21:57:03 +02:00
  • 3770adccfd Fixed bug #50838 (mem.c needs SYS_ARCH_PROTECTION around MEM_STATS) goldsimon 2017-04-20 21:44:00 +02:00
  • d54240bdea One more try to fix compile without TCP Dirk Ziegelmeier 2017-04-19 08:44:05 +02:00
  • 302d84f5b2 Try to fix compile without TCP (reported by Axel Lin) Dirk Ziegelmeier 2017-04-19 08:18:15 +02:00
  • 32aa9a41e2 Apply patch from Kudratov Olimjon: Array index used before limits check Dirk Ziegelmeier 2017-04-19 06:35:07 +02:00
  • 8e83e206f4 sockets.c: Make sock_inc_used overflow check robust. Tim Cussins 2017-04-18 15:36:14 +01:00
  • 7ac3056da9 sockets.c: Add missing lwip_select_dec_sockets_used within lwip_select. Tim Cussins 2017-04-18 15:32:14 +01:00
  • 0952e618bd netconn_drain(): use lwip_netconn_is_err_msg() on acceptmbox, too. goldsimon 2017-04-18 10:54:40 +02:00
  • 0b2a652317 api_msg: Use lwip_netconn_is_err_msg instead of NULL test in netconn_drain() Axel Lin 2017-04-17 20:41:13 +08:00
  • f28c1c851b loopif: set pbuf if_idx during poll Joel Cunningham 2017-04-15 11:27:34 -05:00
  • 1e02f9e88b add mqtt_test.c to test/unit/Filelists.mk goldsimon 2017-04-12 22:05:53 +02:00
  • 5cc168c0f1 added unit test for mqtt (that does not really do something useful yet) goldsimon 2017-04-12 21:54:42 +02:00
  • bf01941b23 opt.h: provide LWIP_NUM_SYS_TIMEOUT_INTERNAL as default value for MEMP_NUM_SYS_TIMEOUT that can be extended by local lwipopts.h goldsimon 2017-04-12 21:52:34 +02:00
  • dfc57f0289 mqtt: move struct mqtt_client_s and inner structs to new file mqtt_priv.h (to hide it from apps but provide it for tests) goldsimon 2017-04-12 21:50:58 +02:00
  • 5310d8f13c event_callback: separated ++ from if goldsimon 2017-04-12 12:40:50 +02:00
  • e0a2472706 netconn/sockets: remove fatal error handling, fix asynchronous error handling, ensure data before RST can be received goldsimon 2017-04-12 12:37:16 +02:00
  • 064044eeae sockets: speed up event_callback: don't iterate select_cb_list for NETCONN_EVT_RCVPLUS/SENDPLUS if the socket has been readable/writable before already goldsimon 2017-04-12 09:12:55 +02:00
  • 58c21eb13c sockets: speed up event_callback: don't iterate select_cb_list for NETCONN_EVT_RCVMINUS/SENDMINUS goldsimon 2017-04-11 20:59:00 +02:00
  • b6fdb61654 sockets.c: refactor event_callback() a bit goldsimon 2017-04-11 20:55:47 +02:00
  • b0af09ec45 select_cb_ctr no needed any more for LWIP_TCPIP_CORE_LOCKING==1 goldsimon 2017-04-11 12:50:25 +02:00
  • 7b477b32b8 let unit test sys_arch check that a mutex is not taken recursively goldsimon 2017-04-11 12:43:33 +02:00
  • 92997756d1 task #14420 (Remove sys_sem_signal from inside SYS_ARCH_PROTECT crit section) done for LWIP_TCPIP_CORE_LOCKING==1 goldsimon 2017-04-11 12:40:44 +02:00
  • 26d3466f50 Add macro ETH_ADDR() to initialize a struct eth_addr with its 6 bytes and taking care of correct braces goldsimon 2017-04-11 08:49:15 +02:00
  • 8695e6e6cb Fixup BRIDGEIF_INITDATA2 macro Dirk Ziegelmeier 2017-04-07 08:59:26 +02:00
  • 7ba5cc3d52 Improve bridgeif doxygen docs Dirk Ziegelmeier 2017-04-07 08:01:38 +02:00
  • 557a11047d Patch #9307: Replace mem_malloc+memset with mem_calloc Joel Cunningham 2017-04-05 13:38:20 -05:00
  • b34f2d5605 altcp: allocate altcp_pcbs from a pool, not from heap (new option MEMP_NUM_ALTCP_PCB defaults to MEMP_NUM_TCP_PCB) goldsimon 2017-04-05 12:17:15 +02:00
  • 0f4ad57033 Fix build error in bridgeif.c Dirk Ziegelmeier 2017-04-05 08:11:37 +02:00
  • 9c78909857 bridgeif: sanity-check init_data->max_ports <= BRIDGEIF_MAX_PORTS goldsimon 2017-04-04 22:12:38 +02:00
  • 77df9ccd5a bridgeif: fix that max_fdb_static_entries was used to init dynamic FDB goldsimon 2017-04-04 22:09:31 +02:00
  • 2a30fedbea fix passing NULL to netif_set_gw & netif_set_netmask (or netif_set_addr or netif_add) (broken on 18.03.2017 by 2d9ef2215b5f276d8c7d34839bc6becfb063faab) goldsimon 2017-04-04 22:08:37 +02:00
  • 97f4033a8a bridgeif: improve documentation goldsimon 2017-04-04 21:54:52 +02:00
  • 8ed2bd4771 bridgeif: gracefully handle out-of-memory in bridgeif_fdb_init goldsimon 2017-04-04 21:54:30 +02:00
  • e65a0950b2 mem_calloc: check for mem_size_t overflow when multiplying 2 mem_size_t input values goldsimon 2017-04-04 21:52:01 +02:00
  • 6fe66771cb test_tcp: de-duplicate test IP addresses, netmask, and ports Joel Cunningham 2017-03-23 16:57:40 -05:00
  • 648b2b6f2b test_tcp: remove unnecessary memsets Joel Cunningham 2017-03-23 14:30:28 -05:00
  • 34c9e30225 test_tcp: de-duplicate seqno checking defines Joel Cunningham 2017-03-23 13:10:31 -05:00
  • 6559ffd848 Fix C++ style comment in altcp_tls_mbedtls.c Dirk Ziegelmeier 2017-03-31 13:05:04 +02:00
  • 33466ee6a8 dhcp_parse_reply: return ERR_VAL instead of asserting on offset-out-of-pbuf goldsimon 2017-03-30 22:30:27 +02:00
  • 1c57c84200 vj_uncompress_uncomp: copy from/to bigger buffers (used for checks before) instead of cs->cs_ip and ip; just to help static code analysis to see this is correct ;-) goldsimon 2017-03-30 21:54:42 +02:00
  • aa0601a66d snmp_asn1_dec_tlv: explicitly check 'length_bytes > pbuf_stream->length' (for clarity, even if it would fail in pbuf_stream later) goldsimon 2017-03-30 21:31:44 +02:00
  • 3aa854409a pbuf_copy_partial: remove double-check of 'buf' and 'dataptr' goldsimon 2017-03-30 21:29:53 +02:00
  • 4313bf2a74 altcp_tls_mbedtls: fix TX when lower write returns ERR_MEM goldsimon 2017-03-30 14:55:37 +02:00
  • 51dbd1a7c0 altcp: added altcp_get_port() goldsimon 2017-03-30 14:19:31 +02:00
  • 4a7569fc2d SNMP traps: Fix ignored return values Dirk Ziegelmeier 2017-03-30 13:01:10 +02:00
  • 132c285fd4 SNMP. Fix several ignored return values Dirk Ziegelmeier 2017-03-30 12:50:32 +02:00
  • 2673e635a3 Fix community string length copying - correctly handle long strings Dirk Ziegelmeier 2017-03-30 11:09:35 +02:00
  • 8d149e63a6 SNMP: strcpy -> strncpy, strlen -> strnlen Dirk Ziegelmeier 2017-03-30 08:57:53 +02:00
  • c722261142 tcp: bug #50614: move unsent queue check/pcb->snd_buf update Joel Cunningham 2017-03-22 16:19:23 -05:00
  • 720f9b3a0b fix compiling altcp_tls_mbedtls sources/headers if mbedtls is not available goldsimon 2017-03-29 23:02:16 +02:00
  • 856b49a057 lwip_sendmsg: fix check for unsupported flags goldsimon 2017-03-29 22:38:16 +02:00
  • 5d600f72d2 bridgeif_input: check netif != NULL before calling netif_get_client_data() goldsimon 2017-03-29 22:27:00 +02:00
  • ca9f57c09f lwip_fcntl/F_GETFL: no need to check sock->conn != NULL: already checked by get_socket() goldsimon 2017-03-29 22:26:34 +02:00
  • 5b6c654dd1 make F_GETFL return file access mode for !CORE_LOCKING as well goldsimon 2017-03-29 20:54:24 +02:00
  • 172dab1289 lwip_fcntl() returns access modes Joan Lledó 2017-03-29 12:45:17 +02:00
  • 33e3ee0790 Clarify LWIP_ALTCP_TLS usage a bit Dirk Ziegelmeier 2017-03-29 08:52:19 +02:00
  • 8fd90ea136 improve mqtt documentation Dirk Ziegelmeier 2017-03-29 08:43:27 +02:00
  • fbcdb4d9f1 Fix function name in altcp.c Dirk Ziegelmeier 2017-03-29 08:22:35 +02:00
  • 2ca717e18d altcp_tls.h: Document ARM mbedtls port Dirk Ziegelmeier 2017-03-28 21:34:00 +02:00
  • 40df1474cc SNMP: Advertise SNMPv3 support Dirk Ziegelmeier 2017-03-28 21:33:37 +02:00
  • 3266511ebb Improve documentation, add TLS stuff Dirk Ziegelmeier 2017-03-28 21:25:49 +02:00
  • 9b6192bd65 Create smtp_opts.h and add SMTP client to doxygen docs Dirk Ziegelmeier 2017-03-28 21:14:56 +02:00
  • f7ac739022 Correct a few header #include guards Dirk Ziegelmeier 2017-03-28 20:44:39 +02:00
  • b9dffc5e4b Filelists.mk: Move all mbedtls related files to own section Dirk Ziegelmeier 2017-03-28 20:42:21 +02:00
  • 3826bcceab Move SMTP from contrib to main lwIP rep - with TLS support, it becomes useful again Dirk Ziegelmeier 2017-03-28 20:40:47 +02:00
  • 38651b8069 Cleanup #include structure of altcp_tls a bit (as discussed with Simon today) Dirk Ziegelmeier 2017-03-28 20:31:25 +02:00
  • b09b3fa4e6 altcp_tcp: some more debug checks goldsimon 2017-03-28 16:20:20 +02:00
  • 898d3832a7 more fixes for !LWIP_ALTCP: move mqtt client struct definitions to mqtt.c goldsimon 2017-03-28 14:12:22 +02:00
  • 537c258efa httpd/altcp: add forgotten functions goldsimon 2017-03-28 14:04:20 +02:00
  • 7599706808 One more try to fix mqtt.c Dirk Ziegelmeier 2017-03-28 12:30:26 +02:00
  • 1c5237b6c4 Try to fix build of mqtt after ALTCP_TLS changes Dirk Ziegelmeier 2017-03-28 11:48:01 +02:00
  • 8b6b270287 mqtt: clean up struct prototypes a bit goldsimon 2017-03-28 09:20:59 +02:00