Commit Graph

2386 Commits

Author SHA1 Message Date
Simon Goldschmidt
e2cdf0d39d fixed bug #34057 socklen_t should be a typedef 2011-12-06 22:06:25 +01:00
Simon Goldschmidt
2fe1af0d05 fixed bug #34112 Odd check in pbuf_alloced_custom (typo) 2011-12-06 22:05:54 +01:00
Simon Goldschmidt
ff85feb22d fixed bug #34122 dhcp: hostname can overflow 2011-12-06 22:05:15 +01:00
Simon Goldschmidt
be191148e0 fixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr 2011-12-06 22:04:45 +01:00
Simon Goldschmidt
626131fb28 fixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle from not transmitting fast after closing.) 2011-12-06 22:04:01 +01:00
Simon Goldschmidt
d154f5c653 ETHARP_SUPPORT_VLAN: add support for an external VLAN filter function instead of only checking for one VLAN (define ETHARP_VLAN_CHECK_FN) 2011-12-06 22:01:15 +01:00
Simon Goldschmidt
38f619dd6f IPv4: splitted IPv4 header fields version/len and tos, made macros depend on BYTE_ORDER to prevent unnecessary calls to htons() 2011-12-06 21:57:56 +01:00
Simon Goldschmidt
5b899dd85b Prevent non-static function that is not declared in header file 2011-12-06 21:47:15 +01:00
Simon Goldschmidt
e7b9849a1a Fixed some C compiler warnings 2011-12-06 21:46:53 +01:00
Simon Goldschmidt
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 2011-12-06 21:44:53 +01:00
Simon Goldschmidt
20833fdcc4 init.c: changed some checks from runtime to compiletime (had to adapt some defines in ip.h for that) 2011-12-06 21:42:55 +01:00
Simon Goldschmidt
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. 2011-12-06 21:40:03 +01:00
Simon Goldschmidt
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. 2011-12-06 21:39:39 +01:00
Simon Goldschmidt
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. 2011-12-06 21:38:14 +01:00
Simon Goldschmidt
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 2011-12-06 21:37:51 +01:00
Simon Goldschmidt
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. 2011-12-06 21:37:01 +01:00
Simon Goldschmidt
23dfcf7b8c Fixed bug #33802 tcpip: tcpip_callbackmsg_new sets msg->type to wrong type 2011-12-06 21:35:39 +01:00
goldsimon
e8b80b8ae9 Include opt.h so that LWIP_ERROR works correctly 2011-12-06 21:34:47 +01:00
goldsimon
a7f7762302 Fixed documentation after changing sys arch prototypes for 1.4.0 2011-12-06 21:32:38 +01:00
goldsimon
859fd87600 Slightly reorderd fields of struct tcp_pcb to plug holes introduced by member alignment (to reduce RAM usage) 2011-12-06 21:30:45 +01:00
goldsimon
211b8be07d fixed bug #31723 (tcp_kill_prio() kills pcbs with the same prio) by updating its documentation only. 2011-12-06 21:29:33 +01:00
goldsimon
22ee104a04 fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer. 2011-12-06 21:28:36 +01:00
goldsimon
5048a30fc7 Another fix for bug #32417 (debug assert that fires) 2011-12-06 21:21:44 +01:00
goldsimon
49e16fcbe9 Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1) 2011-12-05 21:23:56 +01:00
goldsimon
1b79ac1160 Added some more asserts to check that pcb->state != LISTEN 2011-12-05 21:21:27 +01:00
goldsimon
f9e286ff67 Cleaned up usage of sys.h a bit 2011-12-05 21:19:38 +01:00
goldsimon
d798abcb91 Provide a default for SNMP_GET_SYSUPTIME() based on sys_now() 2011-12-05 21:17:57 +01:00
goldsimon
5c05d427b0 use const char for name pointers in display functions 2011-12-05 21:17:09 +01:00
goldsimon
a45b1bad35 use const char for name pointers in display functions 2011-12-05 21:16:24 +01:00
goldsimon
88bf9b2380 Removed unused static function 2011-12-05 21:15:32 +01:00
goldsimon
717b2dab59 Moved static variable from inside the function to global scope 2011-12-05 21:15:00 +01:00
goldsimon
8d74559f72 Moved common call to pbuf_header outside the switch() 2011-12-05 21:13:05 +01:00
goldsimon
59513b41e5 Restructured the code a bit to help my dump compiler not creating a jump table in ROM 2011-12-05 21:10:22 +01:00
goldsimon
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
2011-12-05 21:08:17 +01:00
goldsimon
8b06c61a70 fixed bug #33398 (pointless conversion when checking TCP port range) 2011-12-05 20:58:51 +01:00
Ivan Delamer
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.

Change-Id: I4bf20747bd900150491852649918a85cb7bf2aad
2011-11-29 12:49:43 -07:00
Ivan Delamer
85f8a59d7f Added parenthesis to netif/ip6 macros.
Change-Id: I32d7f28c9e106641e3d5be8342d2c884e166bb0e
2011-11-28 14:07:53 -07:00
goldsimon
dd8729063c fixed bug #31177: tcp timers can corrupt tcp_active_pcbs in some cases 2011-11-25 18:36:52 +01:00
goldsimon
14c766e750 fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled) 2011-11-24 21:11:11 +01:00
goldsimon
988815579a fixed bug #34884: sys_msleep() body needs to be surrounded with '#ifndef sys_msleep' 2011-11-23 20:58:19 +01:00
goldsimon
08b497faea fixed bug #34684: Clear the arp table cache when netif is brought down 2011-11-22 21:44:28 +01:00
goldsimon
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 2011-11-22 21:41:20 +01:00
Ivan Delamer
440f31a4d3 Add IPv6 timeouts to check for MEMP_NUM_SYS_TIMEOUT).
Change-Id: Ic6a9493cde41652391b34a47e6003b9036f760de
2011-11-17 14:24:16 -07:00
Ivan Delamer
cb91705e03 Generate ICMPv6 responses from a context other than input callback
(e.g. timers in IPv6 reassembly). see bug #34846.

Change-Id: I6b4d27c819291d8371c43288310d57c3f2c1c65f
2011-11-17 10:55:45 -07:00
goldsimon
d12e742373 Fixed bug #34733 Null pointer exception with SOCKET_DEBUG. 2011-11-13 17:06:19 +01:00
goldsimon
7aa7c0f481 SEQ-comparing defines: cast parameters to u32_t for clarity 2011-10-29 21:43:13 +02:00
Ivan Delamer
b3ffa16315 Use pppRecvWakeup only if PPP_INPROC_OWNTHREAD is defined.
Change-Id: Ie800289eb5f6a64d0be1d38eab7154d4aa473d57
2011-10-28 16:22:54 -06:00
Ivan Delamer
09d1f55bce Conditional compilation in ppp.c according to PPP_ options.
Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e
2011-10-28 14:23:20 -06:00
Ivan Delamer
21333d0f18 handle NULL when parsing IPv6 address (check for formatting)
Change-Id: I42e1288689946c295e0bd1490a5eb4d8befb5877
2011-10-28 13:54:16 -06:00
goldsimon
edcc859b58 fixed bug #34638: Dead code in tcp_receive - pcb->dupacks 2011-10-28 13:09:04 +02:00