Commit Graph

  • eab2ae5d78 Cleanup netif_name_to_index() implementation Dirk Ziegelmeier 2017-05-02 12:51:25 +02:00
  • 0545eba002 Fixed copy&paste error found by travis-ci... goldsimon 2017-05-02 10:42:59 +02:00
  • 13ffc86aef Start working task #14494: Implement SO_BINDTODEVICE Implement binding TCP, UDP and RAW PCBs to a netif Dirk Ziegelmeier 2017-05-02 09:39:48 +02:00
  • 20fed63297 Add custom pbuf usage example to pbuf_alloced_custom() docs Dirk Ziegelmeier 2017-04-28 13:19:32 +02:00
  • 83d0607acf Add PBUF_NEEDS_COPY macro to documentation Dirk Ziegelmeier 2017-04-27 19:25:19 +02:00
  • 1add8c14ca netif: tiny cleanup to last commit goldsimon 2017-04-27 14:12:13 +02:00
  • 975e29d76e fixed copy&paste error :-) goldsimon 2017-04-27 12:45:33 +02:00
  • 1aa24ee21b Add new DHCP hooks to DHCP docs Dirk Ziegelmeier 2017-04-27 12:42:14 +02:00
  • a09a8e4a06 Some documentation updates and fixes Dedicated Zero-copy RX page Fix doxygen warnings Dirk Ziegelmeier 2017-04-27 12:40:16 +02:00
  • 6aac9377ee Clean up LWIP_NETIF_HWADDRHINT a bit: create a struct holding the hint(s) and pass a pointer to that struct around. That way we are free to add more hints if required (e.g. see task #11620) goldsimon 2017-04-27 12:38:53 +02:00
  • 7617a76b19 added unit test to allocate zero length pbufs goldsimon 2017-04-26 20:16:27 +02:00
  • 4c9b316e6b pbuf: Fix allocate zero length pbuf Axel Lin 2017-04-27 00:10:52 +08:00
  • fc7a68b5af sockets: fix CMSG alignment Joel Cunningham 2017-04-26 08:29:44 -05:00
  • c686261e1e Minor whitespace cleanup in ip.h Dirk Ziegelmeier 2017-04-26 12:28:54 +02:00
  • 728aaeb528 Try to fix alignment warnings in CMSG_NXTHDR() goldsimon 2017-04-26 08:55:07 +02:00
  • eac45ca284 Try to fix alignment warnings when assigning CMSG_DATA() to some struct pointer goldsimon 2017-04-26 08:43:56 +02:00
  • 0b6e2d9c15 Update changelog for features/bugs since 2.0.1 Joel Cunningham 2017-04-25 17:40:11 -05:00
  • 842a235a68 fix test_sockets_msgapi_cmsg unit test (msvc gives me "warning C4706: assignment within conditional expression") goldsimon 2017-04-25 23:08:53 +02:00
  • eb269e61b5 First step to clean up pbuf implementation: add pbuf_alloc_reference() to allocate pbufs referencing external payload; move member initialization to common function; simplify PBUF_POOL chain allocator goldsimon 2017-04-25 23:04:12 +02:00
  • e57552d401 pbuf_alloc_copy -> pbuf_clone goldsimon 2017-04-25 22:01:42 +02:00
  • 3a01c32e55 test_sockets: fix pointer to integer conversion Joel Cunningham 2017-04-25 13:46:02 -05:00
  • 836c0cf42e added dhcp hooks to CHANGELOG goldsimon 2017-04-25 20:20:13 +02:00
  • 2fef874494 task #14270: DHCP should support user-defined additional options: added two hooks for adding and parsing user defined DHCP options goldsimon 2017-04-25 16:13:39 +02:00
  • 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 2d9ef2215b) 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