Commit Graph

  • 77f0305ef0 Fix default value of TCP_SNDLOWAT for small values of TCP_SND_BUF (broken with my 2nd-last commit) goldsimon 2011-10-19 12:55:32 +02:00
  • 935144b3a3 fixed bug #34592: lwip_gethostbyname_r uses nonstandard error value, removed those unused (nonstandard?) error values from arch.h Simon Goldschmidt 2011-10-18 20:56:08 +02:00
  • a148e33c42 fixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small windows (bug #34176 select after non-blocking send times out) Simon Goldschmidt 2011-10-18 20:22:09 +02:00
  • d96703bba3 fixed bug #34587: TCP_BUILD_MSS_OPTION doesn't consider netif->mtu, causes slow network Simon Goldschmidt 2011-10-18 20:11:39 +02:00
  • 9621ccb712 fixed bug #34581 missing parentheses in udplite sockets code goldsimon 2011-10-18 11:04:08 +02:00
  • 21f39082b7 fixed bug #34580 fcntl() is missing in LWIP_COMPAT_SOCKETS goldsimon 2011-10-18 11:00:10 +02:00
  • 0da2bd7f62 fixed bug #34569: shutdown(SHUT_WR) crashes netconn/socket api Simon Goldschmidt 2011-10-17 19:38:47 +02:00
  • d8f090a759 fixed bug #34517 (persist timer is started although no zero window is received) by starting the persist timer when a zero window is received, not when we have more data queued for sending than fits into the window Simon Goldschmidt 2011-10-13 21:18:16 +02:00
  • bd0a664446 fixed bug #34541: LWIP_U32_DIFF is unnecessarily complex: removed that define Simon Goldschmidt 2011-10-13 19:29:48 +02:00
  • aafa00f3aa fixed bug #34540: compiler error when CORE_LOCKING is used and not all protocols are enabled Simon Goldschmidt 2011-10-13 19:25:11 +02:00
  • dbbd161219 fixed bug #34534: Error in sending fragmented IP if MEM_ALIGNMENT > 4 Simon Goldschmidt 2011-10-12 18:17:07 +02:00
  • 26f69123fd added unit test cases for seqno wraparound on fast-rexmit and rto-rexmit (unsent/unacked lists must be correctly sorted) Simon Goldschmidt 2011-10-11 21:43:27 +02:00
  • de4a51e96e slightly rearranged freeing an acked segment to prevent keeping the reference too long Simon Goldschmidt 2011-10-11 21:41:58 +02:00
  • a0bd27053d Added unit test case for persist timer / zero window probes Simon Goldschmidt 2011-10-10 21:06:50 +02:00
  • 56cee6b4d8 fixed bug #34426: tcp_zero_window_probe() transmits incorrect byte value when pcb->unacked != NULL Simon Goldschmidt 2011-10-09 20:11:33 +02:00
  • 277c7aa518 fixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong Simon Goldschmidt 2011-10-09 14:30:49 +02:00
  • 5cfef5bf48 Tried to fix bug #32417 ("TCP_OVERSIZE seems to have problems with (fast-)retransmission"): Reset pcb->unsent_oversize in 2 more places... Simon Goldschmidt 2011-09-29 21:12:34 +02:00
  • ca6fd6015c Implemented limiting data on ooseq queue (task #9989) (define TCP_OOSEQ_MAX_BYTES / TCP_OOSEQ_MAX_PBUFS in lwipopts.h), added unit test for this new feature Simon Goldschmidt 2011-09-27 22:42:46 +02:00
  • eff10f6458 fixed bug #28288: Data after FIN in oos queue Simon Goldschmidt 2011-09-27 21:08:49 +02:00
  • 9c3a6b828f bug #34406 dhcp_option_hostname() can overflow the pbuf goldsimon 2011-09-27 07:49:04 +02:00
  • ba3567ea40 added unit tests for data-after-FIN Simon Goldschmidt 2011-09-26 22:10:11 +02:00
  • 513522d7c4 fixed unit tests (one TCP test failed, removed comma at the end of array initializers) Simon Goldschmidt 2011-09-26 22:09:27 +02:00
  • 5715469d26 fixed bug #34377 MEM_SIZE_F is not defined if MEM_LIBC_MALLOC==1 Simon Goldschmidt 2011-09-24 13:59:33 +02:00
  • 140eb22cf0 fixed bug #33871: rejecting TCP_EVENT_RECV() for the last packet including FIN can lose data Simon Goldschmidt 2011-09-23 19:14:17 +02:00
  • ac7c061406 Fixed tcp_accepted define (need brackets around the parameter) Simon Goldschmidt 2011-09-22 19:19:07 +02:00
  • 45a3f198e8 fixed bug #34355: nagle does not take snd_buf/snd_queuelen into account Simon Goldschmidt 2011-09-22 18:50:18 +02:00
  • d5eb52868e Corrected fix for bug #34072 (UDP broadcast is received from wrong UDP pcb if udp port matches): pcbs bound to IPADDR_ANY did not receive broadcasts any more (bug #34294) Simon Goldschmidt 2011-09-22 06:24:58 +02:00
  • 3d48abb98d Implemented timeout on send (TCP only, bug #33820) Simon Goldschmidt 2011-09-21 19:36:09 +02:00
  • 223307fa38 fixed default value of TCP_SND_BUF to not violate the sanity checks in init.c Simon Goldschmidt 2011-09-21 18:47:44 +02:00
  • c951ab8cee Converted runtime-sanity-checks into compile-time checks that can be disabled (since runtime checks can often not be seen on embedded targets) Simon Goldschmidt 2011-09-21 18:35:29 +02:00
  • 81a49a437a fixed bug #34337 (possible NULL pointer in sys_check_timeouts) goldsimon 2011-09-20 07:21:19 +02:00
  • 5460900b14 splitted ppp.h to an internal and external header file to get a clear separation of which functions an application or port may use (task #11281) Simon Goldschmidt 2011-09-11 19:30:28 +02:00
  • 2576a2e565 use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs (bug #34019) Simon Goldschmidt 2011-09-11 13:13:26 +02:00
  • 49369cc9ce Added a config option to randomize initial local TCP/UDP ports (so that different port ranges are used after a reboot; bug #33818; this one added tcp_init/udp_init functions again); fixed a possible endless loop in tcp_new_port() if the number of active PCBs exceeds the number of available ports; Simon Goldschmidt 2011-09-11 12:44:01 +02:00
  • fe66fa6540 Fixed typo: TCP_SNDQUEUELOWAT must be less than TCP_SND_QUEUELEN (as checked in init.c), not greater Simon Goldschmidt 2011-09-09 22:28:01 +02:00
  • 72e2d16f14 fixed bug #34072: UDP broadcast is received from wrong UDP pcb if udp port matches Simon Goldschmidt 2011-09-09 22:25:59 +02:00
  • 378bed8a03 DHCP uses LWIP_RAND() for xid's (bug #30302) Simon Goldschmidt 2011-09-03 22:27:06 +02:00
  • 9a1eeeea67 fixed bug #33952 PUSH flag in incoming packet is lost when packet is aggregated and sent to application Simon Goldschmidt 2011-09-03 21:57:26 +02:00
  • 68f8966f74 unit tests: correctly handle small PBUF_POOL_BUFSIZE settings, prevent NULL-pointer-deref. (ooseq test is still not running correctly...) Simon Goldschmidt 2011-09-03 21:25:51 +02:00
  • e6a179ea32 netconn_alloc(): return on invalid protocol instead of initializing mbox size to 0 Simon Goldschmidt 2011-09-03 21:24:06 +02:00
  • adb2aeb10f fixed bug #31809 LWIP_EVENT_API in opts.h is inconsistent compared to other options Simon Goldschmidt 2011-09-01 22:25:03 +02:00
  • a030b741a5 fixed bug #34111 RST for ACK to listening pcb has wrong seqno Simon Goldschmidt 2011-09-01 21:00:11 +02:00
  • 6145af516b Fixed bogus IPH_V/HL and IPH_VHL_SET endianess dependency goldsimon 2011-08-30 13:15:10 +02:00
  • b1359f1c80 added netif remove callback (bug #32397) Simon Goldschmidt 2011-08-24 22:00:10 +02:00
  • 7d254a542c fix automatically merged fix for bug #33956 (TCP netconns don't need NETCONNTYPE_GROUP without IPv6 support) goldsimon 2011-12-06 22:09:24 +01:00
  • 422e7963de fixed bug #33956 Wrong error returned when calling accept() on UDP connections Simon Goldschmidt 2011-08-24 21:12:12 +02:00
  • e2cdf0d39d fixed bug #34057 socklen_t should be a typedef Simon Goldschmidt 2011-08-24 20:22:21 +02:00
  • 2fe1af0d05 fixed bug #34112 Odd check in pbuf_alloced_custom (typo) Simon Goldschmidt 2011-08-24 20:18:47 +02:00
  • ff85feb22d fixed bug #34122 dhcp: hostname can overflow Simon Goldschmidt 2011-08-24 20:12:23 +02:00
  • be191148e0 fixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr Simon Goldschmidt 2011-08-24 19:52:06 +02:00
  • 626131fb28 fixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle from not transmitting fast after closing.) Simon Goldschmidt 2011-08-22 18:52:27 +02:00
  • d154f5c653 ETHARP_SUPPORT_VLAN: add support for an external VLAN filter function instead of only checking for one VLAN (define ETHARP_VLAN_CHECK_FN) Simon Goldschmidt 2011-07-26 21:03:27 +02:00
  • 38f619dd6f IPv4: splitted IPv4 header fields version/len and tos, made macros depend on BYTE_ORDER to prevent unnecessary calls to htons() Simon Goldschmidt 2011-07-26 20:55:32 +02:00
  • 5b899dd85b Prevent non-static function that is not declared in header file Simon Goldschmidt 2011-07-26 20:21:33 +02:00
  • e7b9849a1a Fixed some C compiler warnings Simon Goldschmidt 2011-07-24 17:19:17 +02:00
  • b1980b36b8 fixed bug #31084 (socket API returns always EMSGSIZE on non-blocking sockets if data size > send buffers) -> now lwip_send() sends as much as possible for non-blocking sockets and only returns EWOULDBLOCK if the buffers are full Simon Goldschmidt 2011-07-22 22:05:24 +02:00
  • 20833fdcc4 init.c: changed some checks from runtime to compiletime (had to adapt some defines in ip.h for that) Simon Goldschmidt 2011-07-22 21:59:16 +02:00
  • 1ac0c90ec4 forgot CHANGELOG: freeing ooseq pbufs when the pbuf pool is empty implemented for NO_SYS==1: when not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ() at regular intervals from main level. Simon Goldschmidt 2011-07-22 21:07:09 +02:00
  • e931086c3e freeing ooseq pbufs when the pbuf pool is empty implemented for NO_SYS==1: when not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ() at regular intervals from main level. Simon Goldschmidt 2011-07-22 21:05:10 +02:00
  • b65af6c572 ETHARP_STATE_STABLE_REREQUESTING: no need for member 'netif' in 'struct etharp_entry' if we re-request only from etharp_output() and use etharp_tmr() to reset the state of such entries to ETHARP_STATE_STABLE: that way, we also only send one ARP request per ARP_TMR_INTERVAL, but only if the entry is really still used. Simon Goldschmidt 2011-07-21 20:47:29 +02:00
  • 5983c1c5ff ETHARP_SUPPORT_STATIC_ENTRIES: don't need the member 'static_entry' on struct etharp_entry, we can use 'state' to mark them as static Simon Goldschmidt 2011-07-21 20:40:30 +02:00
  • be412dc042 fixed bug #33551 (ARP entries may time out although in use) by sending an ARP request when an ARP entry is used in the last minute before it would time out. Simon Goldschmidt 2011-07-21 20:28:18 +02:00
  • 23dfcf7b8c Fixed bug #33802 tcpip: tcpip_callbackmsg_new sets msg->type to wrong type Simon Goldschmidt 2011-07-19 21:52:40 +02:00
  • e8b80b8ae9 Include opt.h so that LWIP_ERROR works correctly goldsimon 2011-07-06 07:13:45 +00:00
  • a7f7762302 Fixed documentation after changing sys arch prototypes for 1.4.0 goldsimon 2011-07-04 19:33:33 +00:00
  • 859fd87600 Slightly reorderd fields of struct tcp_pcb to plug holes introduced by member alignment (to reduce RAM usage) goldsimon 2011-06-26 17:53:45 +00:00
  • 211b8be07d fixed bug #31723 (tcp_kill_prio() kills pcbs with the same prio) by updating its documentation only. goldsimon 2011-06-26 17:37:09 +00:00
  • 22ee104a04 fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer. goldsimon 2011-06-26 17:31:10 +00:00
  • 5048a30fc7 Another fix for bug #32417 (debug assert that fires) goldsimon 2011-12-06 21:21:44 +01:00
  • 49e16fcbe9 Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1) goldsimon 2011-06-26 17:13:57 +00:00
  • 1b79ac1160 Added some more asserts to check that pcb->state != LISTEN goldsimon 2011-06-26 17:07:13 +00:00
  • f9e286ff67 Cleaned up usage of sys.h a bit goldsimon 2011-06-26 16:51:04 +00:00
  • d798abcb91 Provide a default for SNMP_GET_SYSUPTIME() based on sys_now() goldsimon 2011-06-26 16:50:28 +00:00
  • 5c05d427b0 use const char for name pointers in display functions goldsimon 2011-12-05 21:17:09 +01:00
  • a45b1bad35 use const char for name pointers in display functions goldsimon 2011-06-07 19:32:20 +00:00
  • 88bf9b2380 Removed unused static function goldsimon 2011-06-07 19:19:24 +00:00
  • 717b2dab59 Moved static variable from inside the function to global scope goldsimon 2011-06-07 19:10:55 +00:00
  • 8d74559f72 Moved common call to pbuf_header outside the switch() goldsimon 2011-06-07 19:10:10 +00:00
  • 59513b41e5 Restructured the code a bit to help my dump compiler not creating a jump table in ROM goldsimon 2011-06-07 19:07:00 +00:00
  • fe2003124a - changed "struct ip_addr" to "ip_addr_t"; - tcp_accepted(): added a note to call this on the listening pcb, not the connection pcb; - tcp_write(): change last parameter from "copy" to "apiflags", documented the apiflags goldsimon 2011-06-25 18:39:37 +00:00
  • 8b06c61a70 fixed bug #33398 (pointless conversion when checking TCP port range) goldsimon 2011-12-05 20:58:51 +01:00
  • ce6fb83ef4 bug #34846: time-exceeded was sometimes not sent to original fragment source, but to the sender of a packet fragment that triggered a buffer purge. Ivan Delamer 2011-11-29 12:49:43 -07:00
  • 85f8a59d7f Added parenthesis to netif/ip6 macros. Ivan Delamer 2011-11-28 14:07:53 -07:00
  • dd8729063c fixed bug #31177: tcp timers can corrupt tcp_active_pcbs in some cases goldsimon 2011-11-25 18:36:52 +01:00
  • 14c766e750 fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled) goldsimon 2011-11-24 21:11:11 +01:00
  • 3a11a8a01d Merge branch 'master' of git.sv.gnu.org:/srv/git/lwip goldsimon 2011-11-24 07:47:40 +01:00
  • 988815579a fixed bug #34884: sys_msleep() body needs to be surrounded with '#ifndef sys_msleep' goldsimon 2011-11-23 20:58:19 +01:00
  • d1fa13ed52 fix compilation of ip_canforward on 8-/16-bit platforms (where constants are 16-bit and thus cannot be left-shifted by 24) goldsimon 2011-11-23 09:09:22 +01:00
  • 08b497faea fixed bug #34684: Clear the arp table cache when netif is brought down goldsimon 2011-11-22 21:44:28 +01:00
  • 96d332e234 Fix icmp6_send_response: cannot assign (packed) ip6_addr_p_t* to ip6_addr_t* -> need to copy the packed address to an aligned address first goldsimon 2011-11-22 21:41:20 +01:00
  • 440f31a4d3 Add IPv6 timeouts to check for MEMP_NUM_SYS_TIMEOUT). Ivan Delamer 2011-11-17 14:24:16 -07:00
  • cb91705e03 Generate ICMPv6 responses from a context other than input callback (e.g. timers in IPv6 reassembly). see bug #34846. Ivan Delamer 2011-11-17 10:55:45 -07:00
  • d12e742373 Fixed bug #34733 Null pointer exception with SOCKET_DEBUG. goldsimon 2011-11-13 17:06:19 +01:00
  • 7aa7c0f481 SEQ-comparing defines: cast parameters to u32_t for clarity goldsimon 2011-10-29 21:43:13 +02:00
  • b3ffa16315 Use pppRecvWakeup only if PPP_INPROC_OWNTHREAD is defined. Ivan Delamer 2011-10-28 16:22:54 -06:00
  • 09d1f55bce Conditional compilation in ppp.c according to PPP_ options. Ivan Delamer 2011-10-28 14:23:20 -06:00
  • 21333d0f18 handle NULL when parsing IPv6 address (check for formatting) Ivan Delamer 2011-10-28 13:54:16 -06:00
  • edcc859b58 fixed bug #34638: Dead code in tcp_receive - pcb->dupacks goldsimon 2011-10-28 13:09:04 +02:00
  • 2ce17a724a Fix bug #34526: nd6_queue_packet() frees too much if out-of-memory Ivan Delamer 2011-10-26 14:31:48 -06:00
  • 0fb07ba328 - moved processing of refused_data to an own function (used from tcp_fasttmr and tcp_input); - improved readability of tcp_slowtmr by using defines to access keepalive variables goldsimon 2011-10-23 18:10:46 +02:00