Commit Graph

  • f7a3d6cca5 Port PPP API to new simple tcpip API call method Dirk Ziegelmeier 2016-03-08 21:55:07 +01:00
  • 8f71795844 Port netifapi to new simple tcpip API call method Dirk Ziegelmeier 2016-03-08 21:27:45 +01:00
  • 8106413644 tcpip.c: Implement an easier way for TCPIP API calls - client code does not have to deal with semaphores and core locking any more Dirk Ziegelmeier 2016-03-08 21:26:29 +01:00
  • 5e472badf1 Work on bug #44595: remove check for recvmbox != NULL from netconn_recv() to let it return ERR_CLSD for half-closed TCP connections sg 2016-03-10 21:20:25 +01:00
  • 2a2f92f7c2 Make ERR_IS_FATAL() test first fatal error instead of last non-fatal error Axel Lin 2016-03-10 07:21:34 +01:00
  • f3b7bca3cf Fix bug #47370: Port DNS client to IPv6 Dirk Ziegelmeier 2016-03-09 19:25:06 +01:00
  • 9fbf5a4004 SNMP: Support LWIP_TCPIP_CORE_LOCKING sync method Dirk Ziegelmeier 2016-03-08 22:08:34 +01:00
  • 5d637360cc fixed ERR_IS_FATAL() after changing ERR_IF to non-fatal sg 2016-03-08 21:04:21 +01:00
  • 7d8f0c781f Fix wrong usage of LWIP_NETCONN_SEM_PER_THREAD macro in api_msg.h Dirk Ziegelmeier 2016-03-08 19:53:37 +01:00
  • a212210c35 Add missing #include in memp.c Dirk Ziegelmeier 2016-03-08 19:53:01 +01:00
  • ba40925335 tcpip_send_api_msg function is only needed in non-core-locking mode Dirk Ziegelmeier 2016-03-07 21:23:22 +01:00
  • eab92ccb03 netifapi: Eliminate wrapper struct netifapi_msg and rename netifapi_msg_msg to netifapi_msg Dirk Ziegelmeier 2016-03-07 21:16:19 +01:00
  • fc17d02451 Fix compile with LWIP_TCPIP_CORE_LOCKING Dirk Ziegelmeier 2016-03-07 20:26:24 +01:00
  • 37d514c949 Minor cleanups in #includes and comments Dirk Ziegelmeier 2016-03-07 20:25:55 +01:00
  • a4297ef0fd Reduce includes of tcpip_priv.h Dirk Ziegelmeier 2016-03-07 20:18:45 +01:00
  • c65eca58c9 Decouple tcpip.c/tcpip_priv.h from netconn API Dirk Ziegelmeier 2016-03-07 20:18:11 +01:00
  • 18bb74e5c5 Decouple tcpip.c/tcpip_priv.h from PPP API PPP API can now be moved to netif/ppp subdir Dirk Ziegelmeier 2016-03-07 20:06:47 +01:00
  • af1978fa4e Implement generic API message handling Add generic tcpip_send_api_msg function Let netif API and netconn API use it Decouple tcpip.c and tcpip_priv.h from netif API Dirk Ziegelmeier 2016-03-07 19:57:51 +01:00
  • 5cf802eda0 dns_gethostbyname: return error code if no valid server is set instead of calling the 'found' callback in this case (fixes bug #46887) sg 2016-03-07 19:47:39 +01:00
  • 80cc988f2f Optimize sendmsg UDP pbuf chain creation Joel Cunningham 2016-03-02 16:16:33 -06:00
  • 076795562e fixed typo in one of the last commits sg 2016-03-06 20:59:50 +01:00
  • f5fef6eebc fixed bug #45353: IPv6 router / neighbor relationship is not always consistent - patch by Stian Sebastian Skjelstad sg 2016-03-06 14:48:41 +01:00
  • 375ec36246 ERR_IF is not necessarily a fatal error (fixes bug #46338: UDP netconns block after fatal error) sg 2016-03-05 16:15:04 +01:00
  • b00a17059a fixed icmp_send_response with LWIP_HOOK_IP4_ROUTE_SRC enabled sg 2016-03-05 15:57:40 +01:00
  • bcab7fef84 netifapi.c: Fix compile when IPv4 is not enabled Dirk Ziegelmeier 2016-03-05 15:18:33 +01:00
  • d2bb569ee4 bug #46094: moved IPv4 routing hook functions down so that they implement actual routing (source-based IPv4 routing is not affected by this change) sg 2016-03-05 15:52:39 +01:00
  • 52b426a343 ip_addr.h: Use IP_GET_TYPE macro in other macros Dirk Ziegelmeier 2016-03-05 13:43:00 +01:00
  • f4fbc90217 netifapi: Do not pass NULL pointers for IP addresses to subsequent functions Same as in my last commits - this avoids errors in lwIP code where ip addresses are dereferenced (e.g. for IP type checking) without handling thinking about NULL pointers. Dirk Ziegelmeier 2016-03-05 00:03:13 +01:00
  • e0ab8c581d fixed bug #46093: Move IP6_ROUTE() hook to after LL processing sg 2016-03-05 14:11:24 +01:00
  • 094cdf1c7b netconn: Create API macros to get/set IPV6ONLY flag Dirk Ziegelmeier 2016-03-04 23:06:33 +01:00
  • 814577fcc6 snmp: Fix snmp_oid_to_ip for IPADDR_ANY_TYPE ips Dirk Ziegelmeier 2016-03-04 22:46:54 +01:00
  • 15925b66c6 Fix ip_addr_cmp to correctly compare IPADDR_ANY_TYPE ips Dirk Ziegelmeier 2016-03-04 22:46:18 +01:00
  • 925b280fd2 Apply patch from Elias Önal to fix a few datatypes in SNMP MIB2 Dirk Ziegelmeier 2016-03-04 22:35:09 +01:00
  • 6b405eccd0 Tried to fix bug #47270 by accepting all ipv4 multicast packets (at IP level) when LWIP_IGMP is disabled sg 2016-03-04 21:57:47 +01:00
  • 15326cdbad Added macro to get the ip address type goldsimon 2016-03-04 09:07:50 +01:00
  • bd0b51c9ef Fix my previous netconn_do_listen changes in lwip_netconn_do_listen Dirk Ziegelmeier 2016-03-03 23:16:01 +01:00
  • 9a4c66006e Fix compile error in raw.c (possible unused arg) Dirk Ziegelmeier 2016-03-03 22:55:42 +01:00
  • 1c52780b62 snmp_netconn: Use new "socket-like" netconn API dual-stack implementation Dirk Ziegelmeier 2016-03-03 22:52:43 +01:00
  • bee5515e9a netconn API: Reimplement dual-stack API to be socket-like. Dirk Ziegelmeier 2016-03-03 22:52:04 +01:00
  • 0a7f404d09 api_lib.c: Don't propagate NULL pointers as ip address to subsequent functions Dirk Ziegelmeier 2016-03-03 22:49:55 +01:00
  • 1dea649cff Fix comment in tcp.c Dirk Ziegelmeier 2016-03-03 22:48:10 +01:00
  • 7396d8818b Implement dual-stack in RAW API in the same way as in UDP and TCP Dirk Ziegelmeier 2016-03-03 22:47:27 +01:00
  • 2d80af1dcb Minor code cleanup in udp.c Dirk Ziegelmeier 2016-03-03 22:44:01 +01:00
  • b5cd90a342 Add compatibility macro for tcp_new_ip6() Dirk Ziegelmeier 2016-03-03 21:04:00 +01:00
  • 5358380c5f Apply patch from Derek Pravala: Fix segfault in ip6_route when there is no default netif Dirk Ziegelmeier 2016-03-03 16:12:20 +01:00
  • eead3a7038 Simon says: dual-stack does not work on iperf because there IPs encoded in the payloads and IPv6 is not supported there in the current lwIP implementation -> revert Dirk Ziegelmeier 2016-03-03 13:06:55 +01:00
  • ce370ec48f Compile fix lwiperf.c after my last change Dirk Ziegelmeier 2016-03-03 12:23:34 +01:00
  • 24ebf6bd6f Implement dual-stack in lwiperf, netbiosns and sntp Dirk Ziegelmeier 2016-03-03 12:15:57 +01:00
  • b0d4386744 Adapt HTTP server to new dual-stack API Dirk Ziegelmeier 2016-03-02 23:47:09 +01:00
  • 0c673b6a44 Implement new style TCP dual-stack in netconn API Dirk Ziegelmeier 2016-03-02 23:46:22 +01:00
  • e89b48d23f raw.c: Avoid NULL pointer dereference Dirk Ziegelmeier 2016-03-02 23:44:51 +01:00
  • f9ce31f98b TCP: Implement dual stack support using new IP_ANY_TYPE introduced at UDP Dirk Ziegelmeier 2016-03-02 23:14:33 +01:00
  • bd131e5e4b ip_addr.h: Update ip_addr_copy macro to correctly copy new IP_ANY_TYPE address Dirk Ziegelmeier 2016-03-02 23:11:34 +01:00
  • f3132c5290 udp: Fix possible NULL pointer dereference, update comments Dirk Ziegelmeier 2016-03-02 23:10:43 +01:00
  • babb247e2a SNMP MIB2: Fix temporary OID buffer size some tables have been too small Dirk Ziegelmeier 2016-03-02 23:09:51 +01:00
  • cc4f94f415 lowpan6: Fix incorrect array bounds check (found by Coverity) Dirk Ziegelmeier 2016-03-02 19:45:15 +01:00
  • 9885d5d9f5 Apply patch from Simon to fix buffer overflow handling tcp_in.c which was discovered by Coverity Dirk Ziegelmeier 2016-02-29 23:34:52 +01:00
  • 8e5663a32f Minor: Avoid ip_input() call indirection for when only IPv4 or IPv6 are enabled Dirk Ziegelmeier 2016-02-29 22:17:42 +01:00
  • 4bbfc3857a Implement dual-stack in SNMP for netconn API Dirk Ziegelmeier 2016-02-28 21:47:45 +01:00
  • 5404ce3c0a Implement support for UDP IP_ANY_TYPE in netconn API Dirk Ziegelmeier 2016-02-28 21:42:33 +01:00
  • 2289673a30 Implement support for IP_ANY_TYPE in SNMP Dirk Ziegelmeier 2016-02-28 21:35:54 +01:00
  • 6aed6e659f Rework DHCP PCB handling: Old code registered one UDP PCB per netif where DHCP was active and there was a special case in udp_input() for this. New implementation uses one PCB for all netifs and removes special case in udp_input(). The old approach called udp_bind() on each of the PCBs, which puts them into udp_pcbs list. The PCBs were iterated on all non-DHCP udp_inputs() with no effect. My cleanup removes the special handling in udp.c, and uses only one DHCP UDP PCB to catch all DHCP messages from all netifs. The dhcp_recv function then checks whether ip_current_input_netif() has DHCP enabled - if not, the message is ignored. The PCB is only created/registered when one or more PCBs have DHCP enabled. Dirk Ziegelmeier 2016-02-28 15:31:00 +01:00
  • 42c92f80f1 Add compatibility macro for udp_new_ip6() Dirk Ziegelmeier 2016-02-29 13:25:13 +01:00
  • fa16ee8dcb cleaned up includes a bit after IPv6 changes goldsimon 2016-02-29 09:27:59 +01:00
  • 70f3e5ed05 Cleanup: Create new file ip.c and move dual-stack code from ipv4 and ipv6 folder in there Dirk Ziegelmeier 2016-02-26 23:04:51 +01:00
  • 2dc8f59bf4 Fix compile when PPPOE is enabled Dirk Ziegelmeier 2016-02-26 22:50:44 +01:00
  • d5778bad2f No need for dual-stack code in ip4.c and icmp.c -> use ip4 only versions Dirk Ziegelmeier 2016-02-26 22:50:20 +01:00
  • 81c8121551 minor: fixed compiler warning "unary minus operator is applied to an unsigned expression" goldsimon 2016-02-26 15:23:04 +01:00
  • 97b7555119 bring back ETHARP_HWADDR_LEN (if anyone uses it) goldsimon 2016-02-26 14:21:03 +01:00
  • a5214abd04 udp: udp_send and udp_send_chksum: Check for PCB NULL pointer and PCB must not be the new IP_ANY_TYPE, but a real IPv4 and IPv6 address Dirk Ziegelmeier 2016-02-26 09:20:18 +01:00
  • bf8bcfafe2 revert accidentally committed comment from a649a3eb503600ce34f3c1ea93eda4cf6f0040a1 goldsimon 2016-02-26 08:59:50 +01:00
  • 8cb64698aa Allow backlog to be updated Joel Cunningham 2016-02-18 09:33:21 -06:00
  • 163d7f9791 added ethernet.c to Filelists.mk sg 2016-02-25 22:11:16 +01:00
  • a649a3eb50 dual-stack fix: moved common definitions/code for ethernet used by etharp and ethip6 to new files ethernet.h/.c sg 2016-02-25 22:10:28 +01:00
  • 2a8398dfb8 Fix bug in FIONREAD handling in LINUXMODE Joel Cunningham 2016-02-25 12:53:12 -06:00
  • fd891081c4 minor: Cleanups in raw/tcp/udp code by using macros and reducing #ifdefs Dirk Ziegelmeier 2016-02-24 23:04:25 +01:00
  • 953b7bdd59 Implement UDP dual-stack PCB support Create special IP address type "IPADDR_TYPE_ANY" for it. SNMP uses new feature in non-netconn mode. Dirk Ziegelmeier 2016-02-24 22:33:05 +01:00
  • 1dde3d6e56 Fixed bug #46524: "Device as dhcp server does not work after upgrade to lwip-1.4.1" sg 2016-02-24 22:13:58 +01:00
  • ec49b68b38 minor: udp_input/local_match: coding style, added comments sg 2016-02-24 22:04:59 +01:00
  • 68590c2b27 minor/coding style: lowpan6_opts.h: tabs->spaces, trim trailing spaces sg 2016-02-24 22:03:40 +01:00
  • ac4b089b18 udp.c: Further udp_input simplifications - Move local PCB matching code in a function that can be reused in SO_REUSE && SO_REUSE_RXTOALL case. - Some checks have been written in the dual-stack version and then repeated with the ipv6-only version. Example: IPv6 only: ip6_addr_ismulticast(ip6_current_dest_addr()) IPv4 AND IPv6: ip_addr_ismulticast(ip_current_dest_addr()) Dirk Ziegelmeier 2016-02-24 19:57:20 +01:00
  • 005c196ed8 udp.c: Simplify and cleanup input PCB matching Dirk Ziegelmeier 2016-02-24 19:13:30 +01:00
  • 3b5803ec9a sys.h: Avoid un #defined LWIP_COMPAT_MUTEX macro (usually #defined in arch/sys_arch.h) Dirk Ziegelmeier 2016-02-23 15:49:58 +01:00
  • fd4a109ffa lowpan6.c: Implement SNMP counters Dirk Ziegelmeier 2016-02-23 13:01:46 +01:00
  • 481d350bf3 lwip/stats.h: Add some comments to MIB2 variables to explain correct usage a bit Dirk Ziegelmeier 2016-02-23 12:08:31 +01:00
  • d121ea84d0 Add note about 6LoWPAN in src/netif/FILES Dirk Ziegelmeier 2016-02-23 10:21:52 +01:00
  • a5ac41c203 lowpan6: fixed compiler warning when casting u16_t to u8_t goldsimon 2016-02-23 11:28:54 +01:00
  • e4457335b8 minor: tried to fix coding style in lowpan6.c goldsimon 2016-02-23 10:36:16 +01:00
  • 680f8f31ab I don't know why I have a diff here (I guess line ending problems like in my last lowpan6.c commit)... Dirk Ziegelmeier 2016-02-23 10:20:05 +01:00
  • 6650eb4cd2 snmp_traps.c: Fix compile on Win32 - missing string.h include Catch possible strlen returnvalue > 0xffff Dirk Ziegelmeier 2016-02-23 10:06:46 +01:00
  • 799fe7a5ba Fix shadowing warning in lowpan6.c - found by Erik Ekman's Travis CI https://travis-ci.org/yarrick/lwip-merged Dirk Ziegelmeier 2016-02-23 08:58:34 +01:00
  • 9a4d7b9956 Use netif_input_fn typedef instead of creating a new one in tcpip.h Dirk Ziegelmeier 2016-02-22 21:10:50 +01:00
  • fe8d2ba72f Eliminate tcpip_pppos_input function Dirk Ziegelmeier 2016-02-22 21:00:00 +01:00
  • e90591bb78 Add note to CHANGELOG about 6LoWPAN Dirk Ziegelmeier 2016-02-22 20:46:15 +01:00
  • e2a3565971 Initial import of Ivan Delamer's 6LoWPAN implementation with slight modifications to allow compiling in IPv6 only mode Dirk Ziegelmeier 2016-02-22 20:44:32 +01:00
  • aeab047ede slipif: Fix compile when only IPv6 is enabled Dirk Ziegelmeier 2016-02-22 20:43:32 +01:00
  • 777e667f08 Add generic tcpip_inpkt function that can be called to make last changes really usable Dirk Ziegelmeier 2016-02-22 20:18:10 +01:00
  • fa6f068fd1 Eliminate TCPIP_MSG_INPKT_PPPOS message type. Fix my last commit, I accidentally unchecked the wrong file in commit dialog Dirk Ziegelmeier 2016-02-22 17:47:01 +01:00
  • 439ae629e0 Change TCPIP INPKT API message to take a function pointer. Allows integration of other protocols without extending lwIP core (e.g. 6LoWPAN) Remove unused sem member of struct tcpip_msg Dirk Ziegelmeier 2016-02-22 17:39:01 +01:00
  • 17fad79f71 Two compile fixes after eliminating isipv6 member in PCBs Dirk Ziegelmeier 2016-02-22 17:07:17 +01:00