]>
rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/log
Simon Goldschmidt [Tue, 26 Jul 2011 19:55:32 +0000 (21:55 +0200)]
adapted unit tests to changes after adding IPv6 support
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)
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()
Simon Goldschmidt [Tue, 26 Jul 2011 18:21:33 +0000 (20:21 +0200)]
Prevent non-static function that is not declared in header file
Simon Goldschmidt [Sun, 24 Jul 2011 15:19:17 +0000 (17:19 +0200)]
Fixed some C compiler warnings
Simon Goldschmidt [Sun, 24 Jul 2011 15:18:55 +0000 (17:18 +0200)]
Removed commas from the end of enum lists
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
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)
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.
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.
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).
Simon Goldschmidt [Thu, 21 Jul 2011 19:16:04 +0000 (21:16 +0200)]
correctly prefix all functions with 'etharp_' (also static functions)
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.
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
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.
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.
Simon Goldschmidt [Wed, 20 Jul 2011 04:56:20 +0000 (06:56 +0200)]
Fixed bug #33804 LWIP_IPV6_MLD #define missing from mld6.c
Simon Goldschmidt [Tue, 19 Jul 2011 19:56:19 +0000 (21:56 +0200)]
Fixed bug #33801 Corruption of nd6 tables
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
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
goldsimon [Wed, 6 Jul 2011 07:13:45 +0000 (07:13 +0000)]
Include opt.h so that LWIP_ERROR works correctly
goldsimon [Tue, 5 Jul 2011 19:42:23 +0000 (19:42 +0000)]
Fixed bug #33561 bugs in recvfrom() and sendto()
goldsimon [Mon, 4 Jul 2011 19:39:16 +0000 (19:39 +0000)]
Fixed invalid SOCK_ADDR_TYPE_MATCH check in lwip_sendto()
goldsimon [Mon, 4 Jul 2011 19:33:33 +0000 (19:33 +0000)]
Fixed documentation after changing sys arch prototypes for 1.4.0
goldsimon [Mon, 4 Jul 2011 19:10:49 +0000 (19:10 +0000)]
No need to pass 'acc' as u16_t since the _base functions are internal (we save one AND op when passing as u32_t)
goldsimon [Wed, 29 Jun 2011 19:54:33 +0000 (19:54 +0000)]
Fixed bug #33672 (checksum calculate error!!!) by folding 'acc' to u16_t before calling checksum_pseudo_*_base functions
goldsimon [Wed, 29 Jun 2011 19:46:21 +0000 (19:46 +0000)]
Fixed bug #33653 (ip_data.current_ip_header_tot_len calculation errors!) introduced while mergin IPv4 and IPv6
goldsimon [Sun, 26 Jun 2011 17:53:45 +0000 (17:53 +0000)]
Slightly reorderd fields of struct tcp_pcb to plug holes introduced by member alignment (to reduce RAM usage)
goldsimon [Sun, 26 Jun 2011 17:51:55 +0000 (17:51 +0000)]
Init checks: LWIP_RAND is needed for IPv6, too
goldsimon [Sun, 26 Jun 2011 17:37:09 +0000 (17:37 +0000)]
fixed bug #31723 (tcp_kill_prio() kills pcbs with the same prio) by updating its documentation only.
goldsimon [Sun, 26 Jun 2011 17:31:10 +0000 (17:31 +0000)]
fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer.
goldsimon [Sun, 26 Jun 2011 17:13:57 +0000 (17:13 +0000)]
Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1)
goldsimon [Sun, 26 Jun 2011 17:07:13 +0000 (17:07 +0000)]
Added some more asserts to check that pcb->state != LISTEN
goldsimon [Sun, 26 Jun 2011 16:51:04 +0000 (16:51 +0000)]
Cleaned up usage of sys.h a bit
goldsimon [Sun, 26 Jun 2011 16:50:28 +0000 (16:50 +0000)]
Provide a default for SNMP_GET_SYSUPTIME() based on sys_now()
goldsimon [Sat, 25 Jun 2011 18:39:37 +0000 (18:39 +0000)]
- 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
idelamer [Wed, 22 Jun 2011 12:14:58 +0000 (12:14 +0000)]
Don't forward IPv6 packets that are larger than outgoing MTU, send ICMPv6 message back for Path MTU discovery.
idelamer [Fri, 17 Jun 2011 11:06:06 +0000 (11:06 +0000)]
Process IPv6 packets arriving from non-Ethernet links.
idelamer [Fri, 17 Jun 2011 11:05:38 +0000 (11:05 +0000)]
Allow routing IPv6 packets to neighbours with manually-configured non-link-local addresses.
idelamer [Fri, 17 Jun 2011 11:04:47 +0000 (11:04 +0000)]
Allow IPv6 addresses with arbitrary prefix.
idelamer [Fri, 17 Jun 2011 11:03:15 +0000 (11:03 +0000)]
Minor edits for for IPv6 compilation
goldsimon [Sun, 12 Jun 2011 11:57:34 +0000 (11:57 +0000)]
Fixed compilation error after converting sockaddr_aligned from struct to union
goldsimon [Wed, 8 Jun 2011 16:31:55 +0000 (16:31 +0000)]
Fix compilation error when checking for hidden variable names ('s8_t i' was hidden in some case statements in nd6_input()).
goldsimon [Tue, 7 Jun 2011 19:36:05 +0000 (19:36 +0000)]
- sockaddr_aligned: use a union instead of a manually aligned struct;
- fixed compilation for different configurations
goldsimon [Tue, 7 Jun 2011 19:32:20 +0000 (19:32 +0000)]
use const char for name pointers in display functions
goldsimon [Tue, 7 Jun 2011 19:19:24 +0000 (19:19 +0000)]
Removed unused static function
goldsimon [Tue, 7 Jun 2011 19:10:55 +0000 (19:10 +0000)]
Moved static variable from inside the function to global scope
goldsimon [Tue, 7 Jun 2011 19:10:10 +0000 (19:10 +0000)]
Moved common call to pbuf_header outside the switch()
goldsimon [Tue, 7 Jun 2011 19:07:00 +0000 (19:07 +0000)]
Restructured the code a bit to help my dump compiler not creating a jump table in ROM
goldsimon [Tue, 7 Jun 2011 19:05:22 +0000 (19:05 +0000)]
Fixed bug #33492 (fixed stats for IPv6 protocols)
goldsimon [Mon, 6 Jun 2011 16:04:06 +0000 (16:04 +0000)]
Fixed compilation with LWIP_IPV6==0
goldsimon [Mon, 6 Jun 2011 16:00:06 +0000 (16:00 +0000)]
- fixed bug #33485 (forgot '!' before SOCK_ADDR_MATCH*);
- fixed 'cast increases alignment' by casting via 'void*';
- introduced 'struct sockaddr_aligned' where the 'base' type is instantiated to make sure the alignment is correct;
goldsimon [Sat, 28 May 2011 09:32:42 +0000 (09:32 +0000)]
Fixed ipX_netif_get_local_ipX for LWIP_IPV6==0
goldsimon [Sat, 28 May 2011 09:32:07 +0000 (09:32 +0000)]
Fixed ip_2_ipX() and ip6_2_ipX() macros #if !LWIP_ALLOW_STATIC_FN_IN_HEADER
goldsimon [Sat, 28 May 2011 09:30:43 +0000 (09:30 +0000)]
use PCB_IS_IPV6(pcb) instead of pcb->isipv6 everywhere; fixed compilation with LWIP_IPV6==1 but LWIP_IGMP==0
goldsimon [Sat, 28 May 2011 09:28:18 +0000 (09:28 +0000)]
use PCB_IS_IPV6(pcb) instead of pcb->isipv6 everywhere
goldsimon [Thu, 26 May 2011 15:46:44 +0000 (15:46 +0000)]
Added ipX versions for routing
goldsimon [Thu, 26 May 2011 14:47:28 +0000 (14:47 +0000)]
Fixed two compilation errors with different opt.h settings
goldsimon [Wed, 25 May 2011 17:40:42 +0000 (17:40 +0000)]
Fixed bug #33337 (which is #32906 reappearing after adding IPv6 support)
goldsimon [Wed, 25 May 2011 17:22:56 +0000 (17:22 +0000)]
Fixed pointless conversion when checking TCP port range (bug #33398)
goldsimon [Wed, 25 May 2011 17:22:13 +0000 (17:22 +0000)]
Use conversion defines instead of casting IP addresses
goldsimon [Wed, 25 May 2011 17:16:35 +0000 (17:16 +0000)]
Combined IPv4 and IPv6 code where possible, added defines to access IPv4/IPv6 in non-IP code so that the code is more readable.
goldsimon [Sat, 21 May 2011 16:01:19 +0000 (16:01 +0000)]
Removed autoip_init() since it does nothing; minor coding style changes
goldsimon [Tue, 17 May 2011 19:56:08 +0000 (19:56 +0000)]
Removed files of old IPv6 implementation
goldsimon [Tue, 17 May 2011 19:54:40 +0000 (19:54 +0000)]
Added new files for IPv6
goldsimon [Tue, 17 May 2011 19:35:14 +0000 (19:35 +0000)]
... and finally, we got a first working version of a dual-stack lwIP runnin IPv4 and IPv6 in parallel - big thanks to Ivan Delamer! (this is work in progress, so please beware, test a lot and report problems!)
goldsimon [Mon, 16 May 2011 18:45:51 +0000 (18:45 +0000)]
replaced tab with spaces
goldsimon [Sat, 14 May 2011 15:26:43 +0000 (15:26 +0000)]
Added a test for fast-rexmit
goldsimon [Sat, 14 May 2011 12:23:10 +0000 (12:23 +0000)]
patch #7449 allow tcpip callback from interrupt with static memory message
kieranm [Fri, 6 May 2011 09:07:38 +0000 (09:07 +0000)]
Update version numbers for 1.4.1 development
kieranm [Fri, 6 May 2011 08:48:37 +0000 (08:48 +0000)]
Update CHANGELOG and version numbers for 1.4.0 release
goldsimon [Fri, 29 Apr 2011 11:37:29 +0000 (11:37 +0000)]
Used upper case 'L' instead of lower case 'l' for long constant for better readability
goldsimon [Fri, 29 Apr 2011 11:23:04 +0000 (11:23 +0000)]
Fixed overflow in tcp_new_port() after changing port range to IANA "Dynamic and/or Private Ports" range
goldsimon [Thu, 21 Apr 2011 05:15:45 +0000 (05:15 +0000)]
Fixed printf-format error (bug #33079)
goldsimon [Wed, 20 Apr 2011 11:31:07 +0000 (11:31 +0000)]
sys_arch_timeouts() is not needed any more.
goldsimon [Wed, 13 Apr 2011 17:52:00 +0000 (17:52 +0000)]
Fixed bug #33048 (Bad range for IP source port numbers) by using ports in the IANA private/dynamic range (49152 through 65535).
goldsimon [Wed, 30 Mar 2011 18:50:00 +0000 (18:50 +0000)]
Fixed tcp unit tests after introducing ip_addr_p_t and letting tcp_input check for broadcasts by using current_iphdr_dest.
goldsimon [Wed, 30 Mar 2011 18:47:20 +0000 (18:47 +0000)]
Fixed etharp unit test after changing struct etharp_hdr
goldsimon [Tue, 29 Mar 2011 18:56:26 +0000 (18:56 +0000)]
Fixed broken VLAN support.
goldsimon [Tue, 29 Mar 2011 07:55:16 +0000 (07:55 +0000)]
ethernet_input: check for minimum packet length to prevent assertions from firing.
goldsimon [Sun, 27 Mar 2011 17:12:26 +0000 (17:12 +0000)]
Fixed bug #32926 (TCP_RMV(&tcp_bound_pcbs) is called on unbound tcp pcbs) by checking if the pcb was bound (local_port != 0).
goldsimon [Sun, 27 Mar 2011 13:58:26 +0000 (13:58 +0000)]
Fixed bug #32280 (ppp: a pbuf is freed twice)
goldsimon [Sun, 27 Mar 2011 13:36:32 +0000 (13:36 +0000)]
Fixed bug #32906: lwip_connect+lwip_send did not work for udp and raw pcbs with LWIP_TCPIP_CORE_LOCKING==1.
goldsimon [Sun, 27 Mar 2011 13:04:16 +0000 (13:04 +0000)]
Move tcp_pcb_lists to const section.
goldsimon [Sun, 27 Mar 2011 13:00:54 +0000 (13:00 +0000)]
Fixed bug #32820 (Outgoing TCP connections created before route is present never times out) by starting retransmission timer before checking route.
goldsimon [Sun, 27 Mar 2011 12:56:16 +0000 (12:56 +0000)]
Removed 'dataptr' from 'struct tcp_seg' and calculate it in tcp_zero_window_probe (the only place where it was used).
goldsimon [Tue, 22 Mar 2011 20:59:49 +0000 (20:59 +0000)]
Fixed bug #32648 (PPP code crashes when terminating a link) by only calling sio_read_abort() if the file descriptor is valid.
goldsimon [Mon, 14 Mar 2011 21:21:26 +0000 (21:21 +0000)]
fixed bug #31748 (Calling non-blocking connect more than once can render a socket useless) since it mainly involves changing "FATAL" classification of error codes: ERR_USE and ERR_ISCONN just aren't fatal.
goldsimon [Sun, 13 Mar 2011 11:21:06 +0000 (11:21 +0000)]
fixed bug #32769 (ESHUTDOWN is linux-specific) by fixing err_to_errno_table (ERR_CLSD: ENOTCONN instead of ESHUTDOWN), ERR_ISCONN: use EALRADY instead of -1
goldsimon [Sun, 13 Mar 2011 11:17:18 +0000 (11:17 +0000)]
netconn_accept: return ERR_ABRT instead of ERR_CLSD if the connection has been aborted by err_tcp (since this is not a normal closing procedure).
goldsimon [Sun, 13 Mar 2011 11:15:32 +0000 (11:15 +0000)]
tcp_bind: return ERR_VAL instead of ERR_ISCONN when trying to bind with state!=CLOSED; fixed a typo
goldsimon [Mon, 21 Feb 2011 19:26:57 +0000 (19:26 +0000)]
Fixed bug #32561 tcp_poll argument definition out-of-order in documentation
goldsimon [Fri, 18 Feb 2011 13:31:28 +0000 (13:31 +0000)]
Added missing U/UL modifiers to fix 16-bit-arch portability.
goldsimon [Fri, 18 Feb 2011 13:30:35 +0000 (13:30 +0000)]
Indentation changed
goldsimon [Thu, 17 Feb 2011 17:03:12 +0000 (17:03 +0000)]
Fixed constant not being 32 bit.
kieranm [Thu, 3 Feb 2011 12:46:56 +0000 (12:46 +0000)]
Update version for 1.4.0 rc2
goldsimon [Tue, 25 Jan 2011 11:35:48 +0000 (11:35 +0000)]
Adde missing extern "C"
goldsimon [Tue, 25 Jan 2011 06:18:50 +0000 (06:18 +0000)]
Added missing "extern "C" {"
goldsimon [Mon, 24 Jan 2011 19:28:28 +0000 (19:28 +0000)]
Fixed bug #31741: lwip_select seems to have threading problems
goldsimon [Mon, 20 Dec 2010 18:03:51 +0000 (18:03 +0000)]
Mreged back changes that were lost during the savannah hack 3 weeks ago (using the sources from http://git.infradead.org/users/dwmw2/lwip.git)