]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/log
pes-rpp/rpp-lwip.git
12 years agofixed bug #34684: Clear the arp table cache when netif is brought down
goldsimon [Tue, 22 Nov 2011 20:44:28 +0000 (21:44 +0100)]
fixed bug #34684: Clear the arp table cache when netif is brought down

12 years agoFix icmp6_send_response: cannot assign (packed) ip6_addr_p_t* to ip6_addr_t* -> need...
goldsimon [Tue, 22 Nov 2011 20:41:20 +0000 (21:41 +0100)]
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

12 years agoAdd IPv6 timeouts to check for MEMP_NUM_SYS_TIMEOUT).
Ivan Delamer [Thu, 17 Nov 2011 21:24:16 +0000 (14:24 -0700)]
Add IPv6 timeouts to check for MEMP_NUM_SYS_TIMEOUT).

Change-Id: Ic6a9493cde41652391b34a47e6003b9036f760de

12 years agoGenerate ICMPv6 responses from a context other than input callback
Ivan Delamer [Thu, 17 Nov 2011 17:55:45 +0000 (10:55 -0700)]
Generate ICMPv6 responses from a context other than input callback
(e.g. timers in IPv6 reassembly). see bug #34846.

Change-Id: I6b4d27c819291d8371c43288310d57c3f2c1c65f

12 years agoFixed bug #34733 Null pointer exception with SOCKET_DEBUG.
goldsimon [Sun, 13 Nov 2011 16:06:19 +0000 (17:06 +0100)]
Fixed bug #34733 Null pointer exception with SOCKET_DEBUG.

12 years agoSEQ-comparing defines: cast parameters to u32_t for clarity
goldsimon [Sat, 29 Oct 2011 19:43:13 +0000 (21:43 +0200)]
SEQ-comparing defines: cast parameters to u32_t for clarity

12 years agoUse pppRecvWakeup only if PPP_INPROC_OWNTHREAD is defined.
Ivan Delamer [Fri, 28 Oct 2011 22:22:54 +0000 (16:22 -0600)]
Use pppRecvWakeup only if PPP_INPROC_OWNTHREAD is defined.

Change-Id: Ie800289eb5f6a64d0be1d38eab7154d4aa473d57

12 years agoConditional compilation in ppp.c according to PPP_ options.
Ivan Delamer [Fri, 28 Oct 2011 20:23:20 +0000 (14:23 -0600)]
Conditional compilation in ppp.c according to PPP_ options.

Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e

12 years agohandle NULL when parsing IPv6 address (check for formatting)
Ivan Delamer [Fri, 28 Oct 2011 19:54:16 +0000 (13:54 -0600)]
handle NULL when parsing IPv6 address (check for formatting)

Change-Id: I42e1288689946c295e0bd1490a5eb4d8befb5877

12 years agofixed bug #34638: Dead code in tcp_receive - pcb->dupacks
goldsimon [Fri, 28 Oct 2011 11:09:04 +0000 (13:09 +0200)]
fixed bug #34638: Dead code in tcp_receive - pcb->dupacks

12 years agoFix bug #34526: nd6_queue_packet() frees too much if out-of-memory
Ivan Delamer [Wed, 26 Oct 2011 20:31:48 +0000 (14:31 -0600)]
Fix bug #34526: nd6_queue_packet() frees too much if out-of-memory

Change-Id: Ib7ac0cb1b5a5389dd5449a908485493bd085ba9d

12 years ago- moved processing of refused_data to an own function (used from tcp_fasttmr and...
goldsimon [Sun, 23 Oct 2011 16:10:46 +0000 (18:10 +0200)]
- 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

12 years agoSlipif: fixed IPv6 support
goldsimon [Sun, 23 Oct 2011 15:38:23 +0000 (17:38 +0200)]
Slipif: fixed IPv6 support

12 years agofixed bug #34429: possible memory corruption with LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONT...
goldsimon [Sun, 23 Oct 2011 15:31:03 +0000 (17:31 +0200)]
fixed bug #34429: possible memory corruption with LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT set to 1

12 years agoSLIP netif: add support for multiple input strategies (threaded, polling, RX from...
goldsimon [Fri, 21 Oct 2011 20:25:44 +0000 (22:25 +0200)]
SLIP netif: add support for multiple input strategies (threaded, polling, RX from ISR)

12 years agoadded missing valid/set_invalid defines for NO_SYS
goldsimon [Fri, 21 Oct 2011 17:47:37 +0000 (19:47 +0200)]
added missing valid/set_invalid defines for NO_SYS

12 years agoremoved the need to disable ARP_QUEUEING when LWIP_ARP is disabled an TCP_QUEUE_OOSEQ...
goldsimon [Fri, 21 Oct 2011 11:24:33 +0000 (13:24 +0200)]
removed the need to disable ARP_QUEUEING when LWIP_ARP is disabled an TCP_QUEUE_OOSEQ when LWIP_TCP is disabled

12 years agoFix default value of TCP_SNDLOWAT for small values of TCP_SND_BUF (broken with my...
goldsimon [Wed, 19 Oct 2011 10:55:32 +0000 (12:55 +0200)]
Fix default value of TCP_SNDLOWAT for small values of TCP_SND_BUF (broken with my 2nd-last commit)

12 years agofixed bug #34592: lwip_gethostbyname_r uses nonstandard error value, removed those...
Simon Goldschmidt [Tue, 18 Oct 2011 18:56:08 +0000 (20:56 +0200)]
fixed bug #34592: lwip_gethostbyname_r uses nonstandard error value, removed those unused (nonstandard?) error values from arch.h

12 years agofixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small windows (bug...
Simon Goldschmidt [Tue, 18 Oct 2011 18:22:09 +0000 (20:22 +0200)]
fixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small windows (bug #34176 select after non-blocking send times out)

12 years agofixed bug #34587: TCP_BUILD_MSS_OPTION doesn't consider netif->mtu, causes slow network
Simon Goldschmidt [Tue, 18 Oct 2011 18:11:39 +0000 (20:11 +0200)]
fixed bug #34587: TCP_BUILD_MSS_OPTION doesn't consider netif->mtu, causes slow network

12 years agofixed bug #34581 missing parentheses in udplite sockets code
goldsimon [Tue, 18 Oct 2011 09:04:08 +0000 (11:04 +0200)]
fixed bug #34581 missing parentheses in udplite sockets code

12 years agofixed bug #34580 fcntl() is missing in LWIP_COMPAT_SOCKETS
goldsimon [Tue, 18 Oct 2011 09:00:10 +0000 (11:00 +0200)]
fixed bug #34580 fcntl() is missing in LWIP_COMPAT_SOCKETS

12 years agofixed bug #34569: shutdown(SHUT_WR) crashes netconn/socket api
Simon Goldschmidt [Mon, 17 Oct 2011 17:38:47 +0000 (19:38 +0200)]
fixed bug #34569: shutdown(SHUT_WR) crashes netconn/socket api

12 years agofixed bug #34517 (persist timer is started although no zero window is received) by...
Simon Goldschmidt [Thu, 13 Oct 2011 19:18:16 +0000 (21:18 +0200)]
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

12 years agofixed bug #34541: LWIP_U32_DIFF is unnecessarily complex: removed that define
Simon Goldschmidt [Thu, 13 Oct 2011 17:29:48 +0000 (19:29 +0200)]
fixed bug #34541: LWIP_U32_DIFF is unnecessarily complex: removed that define

12 years agofixed bug #34540: compiler error when CORE_LOCKING is used and not all protocols...
Simon Goldschmidt [Thu, 13 Oct 2011 17:25:11 +0000 (19:25 +0200)]
fixed bug #34540: compiler error when CORE_LOCKING is used and not all protocols are enabled

12 years agofixed bug #34534: Error in sending fragmented IP if MEM_ALIGNMENT > 4
Simon Goldschmidt [Wed, 12 Oct 2011 16:17:07 +0000 (18:17 +0200)]
fixed bug #34534: Error in sending fragmented IP if MEM_ALIGNMENT > 4

12 years agoadded unit test cases for seqno wraparound on fast-rexmit and rto-rexmit (unsent...
Simon Goldschmidt [Tue, 11 Oct 2011 19:43:27 +0000 (21:43 +0200)]
added unit test cases for seqno wraparound on fast-rexmit and rto-rexmit (unsent/unacked lists must be correctly sorted)

12 years agoslightly rearranged freeing an acked segment to prevent keeping the reference too...
Simon Goldschmidt [Tue, 11 Oct 2011 19:41:58 +0000 (21:41 +0200)]
slightly rearranged freeing an acked segment to prevent keeping the reference too long

12 years agoAdded unit test case for persist timer / zero window probes
Simon Goldschmidt [Mon, 10 Oct 2011 19:06:50 +0000 (21:06 +0200)]
Added unit test case for persist timer / zero window probes

12 years agofixed bug #34426: tcp_zero_window_probe() transmits incorrect byte value when pcb...
Simon Goldschmidt [Sun, 9 Oct 2011 18:11:33 +0000 (20:11 +0200)]
fixed bug #34426: tcp_zero_window_probe() transmits incorrect byte value when pcb->unacked != NULL

12 years agofixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong
Simon Goldschmidt [Sun, 9 Oct 2011 12:30:49 +0000 (14:30 +0200)]
fixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong

12 years agoTried to fix bug #32417 ("TCP_OVERSIZE seems to have problems with (fast-)retransmiss...
Simon Goldschmidt [Thu, 29 Sep 2011 19:12:34 +0000 (21:12 +0200)]
Tried to fix bug #32417 ("TCP_OVERSIZE seems to have problems with (fast-)retransmission"): Reset pcb->unsent_oversize in 2 more places...

12 years agoImplemented limiting data on ooseq queue (task #9989) (define TCP_OOSEQ_MAX_BYTES...
Simon Goldschmidt [Tue, 27 Sep 2011 20:42:46 +0000 (22:42 +0200)]
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

12 years agofixed bug #28288: Data after FIN in oos queue
Simon Goldschmidt [Tue, 27 Sep 2011 19:08:49 +0000 (21:08 +0200)]
fixed bug #28288: Data after FIN in oos queue

12 years agobug #34406 dhcp_option_hostname() can overflow the pbuf
goldsimon [Tue, 27 Sep 2011 05:49:04 +0000 (07:49 +0200)]
bug #34406 dhcp_option_hostname() can overflow the pbuf

12 years agoadded unit tests for data-after-FIN
Simon Goldschmidt [Mon, 26 Sep 2011 20:10:11 +0000 (22:10 +0200)]
added unit tests for data-after-FIN

12 years agofixed unit tests (one TCP test failed, removed comma at the end of array initializers)
Simon Goldschmidt [Mon, 26 Sep 2011 20:09:27 +0000 (22:09 +0200)]
fixed unit tests (one TCP test failed, removed comma at the end of array initializers)

12 years agofixed bug #34377 MEM_SIZE_F is not defined if MEM_LIBC_MALLOC==1
Simon Goldschmidt [Sat, 24 Sep 2011 11:59:33 +0000 (13:59 +0200)]
fixed bug #34377 MEM_SIZE_F is not defined if MEM_LIBC_MALLOC==1

12 years agoReverted invalid fix for invalid bug #34360 done yesterday...
Simon Goldschmidt [Fri, 23 Sep 2011 17:26:29 +0000 (19:26 +0200)]
Reverted invalid fix for invalid bug #34360 done yesterday...

12 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/lwip
Simon Goldschmidt [Fri, 23 Sep 2011 17:16:01 +0000 (19:16 +0200)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/lwip

12 years agofixed bug #33871: rejecting TCP_EVENT_RECV() for the last packet including FIN can...
Simon Goldschmidt [Fri, 23 Sep 2011 17:14:17 +0000 (19:14 +0200)]
fixed bug #33871: rejecting TCP_EVENT_RECV() for the last packet including FIN can lose data

12 years agofixed bug #34360 tcp_shutdown: RST on unacked is not send when shutting down both...
Simon Goldschmidt [Thu, 22 Sep 2011 19:38:56 +0000 (21:38 +0200)]
fixed bug #34360 tcp_shutdown: RST on unacked is not send when shutting down both rx AND tx

12 years agoFixed tcp_accepted define (need brackets around the parameter)
Simon Goldschmidt [Thu, 22 Sep 2011 17:19:07 +0000 (19:19 +0200)]
Fixed tcp_accepted define (need brackets around the parameter)

12 years agofixed bug #34355: nagle does not take snd_buf/snd_queuelen into account
Simon Goldschmidt [Thu, 22 Sep 2011 16:50:18 +0000 (18:50 +0200)]
fixed bug #34355: nagle does not take snd_buf/snd_queuelen into account

12 years agoCorrected fix for bug #34072 (UDP broadcast is received from wrong UDP pcb if udp...
Simon Goldschmidt [Thu, 22 Sep 2011 04:24:58 +0000 (06:24 +0200)]
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)

12 years agoImplemented timeout on send (TCP only, bug #33820)
Simon Goldschmidt [Wed, 21 Sep 2011 17:36:09 +0000 (19:36 +0200)]
Implemented timeout on send (TCP only, bug #33820)

12 years agofixed default value of TCP_SND_BUF to not violate the sanity checks in init.c
Simon Goldschmidt [Wed, 21 Sep 2011 16:47:44 +0000 (18:47 +0200)]
fixed default value of TCP_SND_BUF to not violate the sanity checks in init.c

12 years agoConverted runtime-sanity-checks into compile-time checks that can be disabled (since...
Simon Goldschmidt [Wed, 21 Sep 2011 16:35:29 +0000 (18:35 +0200)]
Converted runtime-sanity-checks into compile-time checks that can be disabled (since runtime checks can often not be seen on embedded targets)

12 years agofixed bug #34337 (possible NULL pointer in sys_check_timeouts)
goldsimon [Tue, 20 Sep 2011 05:21:19 +0000 (07:21 +0200)]
fixed bug #34337 (possible NULL pointer in sys_check_timeouts)

12 years agosplitted ppp.h to an internal and external header file to get a clear separation...
Simon Goldschmidt [Sun, 11 Sep 2011 17:30:28 +0000 (19:30 +0200)]
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)

12 years agond6: use a static buffer to process RA options instead of using mem_malloc()
Simon Goldschmidt [Sun, 11 Sep 2011 11:44:08 +0000 (13:44 +0200)]
nd6: use a static buffer to process RA options instead of using mem_malloc()

12 years agouse pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs (bug #34019)
Simon Goldschmidt [Sun, 11 Sep 2011 11:13:26 +0000 (13:13 +0200)]
use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs (bug #34019)

12 years agoAdded a config option to randomize initial local TCP/UDP ports (so that different...
Simon Goldschmidt [Sun, 11 Sep 2011 10:44:01 +0000 (12:44 +0200)]
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;

12 years agolwip_accept: fixed warning about accessing uninitialized 'port' when SOCKETS_DEBUG...
Simon Goldschmidt [Fri, 9 Sep 2011 21:20:34 +0000 (23:20 +0200)]
lwip_accept: fixed warning about accessing uninitialized 'port' when SOCKETS_DEBUG is enabled

12 years agoFixed typo: TCP_SNDQUEUELOWAT must be less than TCP_SND_QUEUELEN (as checked in init...
Simon Goldschmidt [Fri, 9 Sep 2011 20:28:01 +0000 (22:28 +0200)]
Fixed typo: TCP_SNDQUEUELOWAT must be less than TCP_SND_QUEUELEN (as checked in init.c), not greater

12 years agofixed bug #34072: UDP broadcast is received from wrong UDP pcb if udp port matches
Simon Goldschmidt [Fri, 9 Sep 2011 20:25:59 +0000 (22:25 +0200)]
fixed bug #34072: UDP broadcast is received from wrong UDP pcb if udp port matches

12 years agoMake LWIP_RAND optional (useful for small targets)
Simon Goldschmidt [Sat, 3 Sep 2011 20:27:30 +0000 (22:27 +0200)]
Make LWIP_RAND optional (useful for small targets)

12 years agoDHCP uses LWIP_RAND() for xid's (bug #30302)
Simon Goldschmidt [Sat, 3 Sep 2011 20:27:06 +0000 (22:27 +0200)]
DHCP uses LWIP_RAND() for xid's (bug #30302)

12 years agofixed bug #33952 PUSH flag in incoming packet is lost when packet is aggregated and...
Simon Goldschmidt [Sat, 3 Sep 2011 19:57:26 +0000 (21:57 +0200)]
fixed bug #33952 PUSH flag in incoming packet is lost when packet is aggregated and sent to application

12 years agounit tests: correctly handle small PBUF_POOL_BUFSIZE settings, prevent NULL-pointer...
Simon Goldschmidt [Sat, 3 Sep 2011 19:25:51 +0000 (21:25 +0200)]
unit tests: correctly handle small PBUF_POOL_BUFSIZE settings, prevent NULL-pointer-deref. (ooseq test is still not running correctly...)

12 years agonetconn_alloc(): return on invalid protocol instead of initializing mbox size to 0
Simon Goldschmidt [Sat, 3 Sep 2011 19:24:06 +0000 (21:24 +0200)]
netconn_alloc(): return on invalid protocol instead of initializing mbox size to 0

12 years agofixed bug #31809 LWIP_EVENT_API in opts.h is inconsistent compared to other options
Simon Goldschmidt [Thu, 1 Sep 2011 20:25:03 +0000 (22:25 +0200)]
fixed bug #31809 LWIP_EVENT_API in opts.h is inconsistent compared to other options

12 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/lwip
Simon Goldschmidt [Thu, 1 Sep 2011 19:01:38 +0000 (21:01 +0200)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/lwip

12 years agofixed bug #34111 RST for ACK to listening pcb has wrong seqno
Simon Goldschmidt [Thu, 1 Sep 2011 19:00:11 +0000 (21:00 +0200)]
fixed bug #34111 RST for ACK to listening pcb has wrong seqno

12 years agoFixed bogus IPH_V/HL and IPH_VHL_SET endianess dependency
goldsimon [Tue, 30 Aug 2011 11:15:10 +0000 (13:15 +0200)]
Fixed bogus IPH_V/HL and IPH_VHL_SET endianess dependency

12 years agoadded netif remove callback (bug #32397)
Simon Goldschmidt [Wed, 24 Aug 2011 20:00:10 +0000 (22:00 +0200)]
added netif remove callback (bug #32397)

12 years agofixed bug #34124 struct in6_addr does not conform to the standard
Simon Goldschmidt [Wed, 24 Aug 2011 19:40:09 +0000 (21:40 +0200)]
fixed bug #34124 struct in6_addr does not conform to the standard

12 years agofixed bug #33956 Wrong error returned when calling accept() on UDP connections
Simon Goldschmidt [Wed, 24 Aug 2011 19:12:12 +0000 (21:12 +0200)]
fixed bug #33956 Wrong error returned when calling accept() on UDP connections

12 years agofixed bug #34057 socklen_t should be a typedef
Simon Goldschmidt [Wed, 24 Aug 2011 18:22:21 +0000 (20:22 +0200)]
fixed bug #34057 socklen_t should be a typedef

12 years agofixed bug #34112 Odd check in pbuf_alloced_custom (typo)
Simon Goldschmidt [Wed, 24 Aug 2011 18:18:47 +0000 (20:18 +0200)]
fixed bug #34112 Odd check in pbuf_alloced_custom (typo)

12 years agofixed bug #34122 dhcp: hostname can overflow
Simon Goldschmidt [Wed, 24 Aug 2011 18:12:23 +0000 (20:12 +0200)]
fixed bug #34122 dhcp: hostname can overflow

12 years agofixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr
Simon Goldschmidt [Wed, 24 Aug 2011 17:52:06 +0000 (19:52 +0200)]
fixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr

12 years agofixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle...
Simon Goldschmidt [Mon, 22 Aug 2011 16:52:27 +0000 (18:52 +0200)]
fixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle from not transmitting fast after closing.)

12 years agoInitialize recvmbox size for undefined netconn type, to supress
Ivan Delamer [Fri, 12 Aug 2011 15:04:29 +0000 (09:04 -0600)]
Initialize recvmbox size for undefined netconn type, to supress
compiler warning.

Change-Id: I14c3f1786a8ca3513b5d4cf375c4951e4c09ebd6

12 years agoAdd cast to IP6_ADDR_BLOCKx
Ivan Delamer [Tue, 9 Aug 2011 19:55:40 +0000 (13:55 -0600)]
Add cast to IP6_ADDR_BLOCKx

12 years agoUse target address as source address in IPv6 neighbour advertisement
Ivan Delamer [Thu, 4 Aug 2011 22:36:44 +0000 (16:36 -0600)]
Use target address as source address in IPv6 neighbour advertisement
messages.

Change-Id: I06d28eb2903c539de0b51bd7420a81ebf4f28963

12 years agoFixed bug in serialization of IPv6 addresses.
Ivan Delamer [Thu, 4 Aug 2011 20:18:33 +0000 (14:18 -0600)]
Fixed bug in serialization of IPv6 addresses.

Change-Id: Ib63540123803317ec25f7cbf580c5159e4100222

12 years agoFixed complier error for CHECKSUM_CHECK_TCP==0
Simon Goldschmidt [Thu, 28 Jul 2011 19:59:28 +0000 (21:59 +0200)]
Fixed complier error for CHECKSUM_CHECK_TCP==0

12 years agoadapted unit tests to changes after adding IPv6 support
Simon Goldschmidt [Tue, 26 Jul 2011 19:55:32 +0000 (21:55 +0200)]
adapted unit tests to changes after adding IPv6 support

12 years agoETHARP_SUPPORT_VLAN: add support for an external VLAN filter function instead of...
Simon Goldschmidt [Tue, 26 Jul 2011 19:03:27 +0000 (21:03 +0200)]
ETHARP_SUPPORT_VLAN: add support for an external VLAN filter function instead of only checking for one VLAN (define ETHARP_VLAN_CHECK_FN)

12 years agoIPv4: splitted IPv4 header fields version/len and tos, made macros depend on BYTE_ORD...
Simon Goldschmidt [Tue, 26 Jul 2011 18:55:32 +0000 (20:55 +0200)]
IPv4: splitted IPv4 header fields version/len and tos, made macros depend on BYTE_ORDER to prevent unnecessary calls to htons()

12 years agoPrevent non-static function that is not declared in header file
Simon Goldschmidt [Tue, 26 Jul 2011 18:21:33 +0000 (20:21 +0200)]
Prevent non-static function that is not declared in header file

12 years agoFixed some C compiler warnings
Simon Goldschmidt [Sun, 24 Jul 2011 15:19:17 +0000 (17:19 +0200)]
Fixed some C compiler warnings

12 years agoRemoved commas from the end of enum lists
Simon Goldschmidt [Sun, 24 Jul 2011 15:18:55 +0000 (17:18 +0200)]
Removed commas from the end of enum lists

12 years agofixed bug #31084 (socket API returns always EMSGSIZE on non-blocking sockets if data...
Simon Goldschmidt [Fri, 22 Jul 2011 20:05:24 +0000 (22:05 +0200)]
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

12 years agoinit.c: changed some checks from runtime to compiletime (had to adapt some defines...
Simon Goldschmidt [Fri, 22 Jul 2011 19:59:16 +0000 (21:59 +0200)]
init.c: changed some checks from runtime to compiletime (had to adapt some defines in ip.h for that)

12 years agoforgot CHANGELOG: freeing ooseq pbufs when the pbuf pool is empty implemented for...
Simon Goldschmidt [Fri, 22 Jul 2011 19:07:09 +0000 (21:07 +0200)]
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.

12 years agofreeing ooseq pbufs when the pbuf pool is empty implemented for NO_SYS==1: when not...
Simon Goldschmidt [Fri, 22 Jul 2011 19:05:10 +0000 (21:05 +0200)]
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.

12 years agobug #33634 ip_forward() have a faulty behaviour: Added pbuf flags to mark incoming...
Simon Goldschmidt [Thu, 21 Jul 2011 19:47:25 +0000 (21:47 +0200)]
bug #33634 ip_forward() have a faulty behaviour: Added pbuf flags to mark incoming packets as link-layer broadcast/multicast. Also added code to allow ip_forward() to forward non-broadcast packets to the input netif (set IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1).

12 years agocorrectly prefix all functions with 'etharp_' (also static functions)
Simon Goldschmidt [Thu, 21 Jul 2011 19:16:04 +0000 (21:16 +0200)]
correctly prefix all functions with 'etharp_' (also static functions)

12 years agoETHARP_STATE_STABLE_REREQUESTING: no need for member 'netif' in 'struct etharp_entry...
Simon Goldschmidt [Thu, 21 Jul 2011 18:47:29 +0000 (20:47 +0200)]
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.

12 years agoETHARP_SUPPORT_STATIC_ENTRIES: don't need the member 'static_entry' on struct etharp_...
Simon Goldschmidt [Thu, 21 Jul 2011 18:40:30 +0000 (20:40 +0200)]
ETHARP_SUPPORT_STATIC_ENTRIES: don't need the member 'static_entry' on struct etharp_entry, we can use 'state' to mark them as static

12 years agofixed bug #33551 (ARP entries may time out although in use) by sending an ARP request...
Simon Goldschmidt [Thu, 21 Jul 2011 18:28:18 +0000 (20:28 +0200)]
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.

12 years ago(bug #30185): added LWIP_FIONREAD_LINUXMODE that makes ioctl/FIONREAD return the...
Simon Goldschmidt [Thu, 21 Jul 2011 18:15:39 +0000 (20:15 +0200)]
(bug #30185): added LWIP_FIONREAD_LINUXMODE that makes ioctl/FIONREAD return the size of the next pending datagram.

12 years agoFixed bug #33804 LWIP_IPV6_MLD #define missing from mld6.c
Simon Goldschmidt [Wed, 20 Jul 2011 04:56:20 +0000 (06:56 +0200)]
Fixed bug #33804 LWIP_IPV6_MLD #define missing from mld6.c

12 years agoFixed bug #33801 Corruption of nd6 tables
Simon Goldschmidt [Tue, 19 Jul 2011 19:56:19 +0000 (21:56 +0200)]
Fixed bug #33801 Corruption of nd6 tables

12 years agoFixed bug #33802 tcpip: tcpip_callbackmsg_new sets msg->type to wrong type
Simon Goldschmidt [Tue, 19 Jul 2011 19:52:40 +0000 (21:52 +0200)]
Fixed bug #33802 tcpip: tcpip_callbackmsg_new sets msg->type to wrong type

12 years agoFixed wrong endianess of port in bind() and connect() broken with the last commit
goldsimon [Wed, 6 Jul 2011 07:18:06 +0000 (07:18 +0000)]
Fixed wrong endianess of port in bind() and connect() broken with the last commit