kieranm
|
4ac0580aa0
|
2007-07-13 Kieran Mansley
* src/core/tcp_in.c Apply patch#5741 from Oleg Tyshev to fix bug in
out of sequence processing of received packets
|
2007-07-13 12:24:32 +00:00 |
|
fbernon
|
5d872b26a1
|
sockets.c: Fix a possible problem because any new socket can't be created during the "close" (which can be "long" since fix for bug #20021).
|
2007-07-04 21:13:25 +00:00 |
|
goldsimon
|
8d2c8065eb
|
Removed old debug variables from pbuf_copy()
|
2007-07-04 16:43:54 +00:00 |
|
fbernon
|
bf176ed712
|
Minor fix (indent)
|
2007-07-03 21:27:59 +00:00 |
|
goldsimon
|
eb875de67e
|
Added assertions where PBUF_RAM pbufs are used and an assumption is made that this pbuf is in one piece (i.e. not chained). These assumptions clash with the possibility of converting to fully pool-based pbuf implementations, where PBUF_RAM pbufs might be chained.
|
2007-07-03 20:28:35 +00:00 |
|
goldsimon
|
2a77b9fcc7
|
Bug in last version (fix to close problems): netconn thread might get active before calling its callback, so conn was already deallocated.
|
2007-07-03 20:20:33 +00:00 |
|
goldsimon
|
9a4a5b1816
|
Final fix for bug #20021 and some other problems when closing tcp netconns: removed conn->sem, less context switches when closing, both netconn_close and netconn_delete should safely close tcp connections.
|
2007-07-03 19:29:59 +00:00 |
|
fbernon
|
3a0ab861c2
|
ip.h, etharp.c: Fix warnings & errors about LWIP_NETIF_HWADDRHINT (perhaps compiler dependant)
|
2007-07-03 10:36:21 +00:00 |
|
goldsimon
|
fdc0d30337
|
#ifdef LWIP_NETIF_HWADDRHINT around IP_PCB.addr_hint
|
2007-07-03 08:09:50 +00:00 |
|
goldsimon
|
96e4ec4a15
|
Added option LWIP_NETIF_HWADDRHINT (default=off) to cache ARP table indices with each pcb instead of single-entry cache for the complete stack.
|
2007-07-02 20:41:22 +00:00 |
|
goldsimon
|
fa4b711495
|
Added some ASSERTS and casts to prevent warnings when assigning to smaller types.
|
2007-07-02 20:13:45 +00:00 |
|
goldsimon
|
0113b735ad
|
Fixed a little cast-warning from u32_t to u16_t
|
2007-07-02 20:07:19 +00:00 |
|
goldsimon
|
d228ff0f43
|
Removed warning when assigning from u32_t to u16_t by casting to u16_t.
|
2007-07-01 16:04:35 +00:00 |
|
goldsimon
|
9abbb581c5
|
Changed tcp_pcb->snd_queuelen from u8_t to u16_t to prevent overflowing when sending many small packets with big send buffer, added assertions and oveflow checks for snd_queuelen.
|
2007-07-01 15:56:04 +00:00 |
|
goldsimon
|
d7c50f56d7
|
Fixed a wrong assert statement in etharp_query when ARP_QUEUEING=1 and packets should be queued.
|
2007-07-01 14:52:09 +00:00 |
|
fbernon
|
b6750de9e8
|
sockets.h, sockets.c: Implement MSG_PEEK flag for recv/recvfrom functions.
|
2007-06-30 13:24:11 +00:00 |
|
goldsimon
|
c91caa06d3
|
Set/get ARP hwlen and protolen in one piece.
|
2007-06-30 11:42:41 +00:00 |
|
goldsimon
|
6c3c184bc7
|
Added check to prevent tcp_pcb->snd_queuelen from overflowing.
|
2007-06-29 17:09:47 +00:00 |
|
fbernon
|
af71292aba
|
Minor fix (extra spaces)
|
2007-06-29 13:37:33 +00:00 |
|
goldsimon
|
24e29cecae
|
Fixed bug #20287: Fixed nagle algorithm (sending was done too early if a segment contained chained pbufs)
|
2007-06-28 20:05:38 +00:00 |
|
fbernon
|
ab4c3a326f
|
autoip.c: replace most of rand() calls by a macro LWIP_AUTOIP_RAND which compute a "pseudo-random" value based on netif's MAC and some autoip fields. It's always possible to define this macro in your own lwipopts.h to always use C library's rand(). Note that autoip_create_rand_addr doesn't use this macro.
|
2007-06-28 18:05:38 +00:00 |
|
goldsimon
|
d73ca29a07
|
Fixed minor indentation fault
|
2007-06-28 10:29:13 +00:00 |
|
fbernon
|
d6fbe45296
|
netifapi.h, netifapi.c, tcpip.h, tcpip.c: Update code to handle the option LWIP_TCPIP_CORE_LOCKING, and do some changes to be coherent with last modifications in api_lib/api_msg (use pointers and not type with table, etc...)
|
2007-06-28 10:11:05 +00:00 |
|
fbernon
|
dd1cd5e491
|
sockets.c: process NETCONN_RAW connections with LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-28 09:56:37 +00:00 |
|
goldsimon
|
2b02db2675
|
Remove warning in tcp_enqueue (cast from u32_t to u16_t)
|
2007-06-27 16:42:20 +00:00 |
|
goldsimon
|
6f93a8f091
|
Set the err_to_errno_table to be const
|
2007-06-26 17:38:52 +00:00 |
|
goldsimon
|
47074c897e
|
Removed warning: LWIP_DEBUGF had wrong argument count
|
2007-06-26 08:12:15 +00:00 |
|
goldsimon
|
2270f0d172
|
Fixed bug #20259: struct udp_hdr was lacking the packin defines.
|
2007-06-26 07:32:17 +00:00 |
|
goldsimon
|
1b5d3466ba
|
etharp_arp_input: stricter checking of hwtype, proto, hwlen & protolen allows us to leave some header fields like they are when sending ARP reply (only changing the addresses is needed)
|
2007-06-25 18:03:23 +00:00 |
|
goldsimon
|
dcc2247a90
|
Fixed bug #20253: icmp_dest_unreach was called with a wrong p->payload for udp packets with no matching pcb.
|
2007-06-25 17:30:16 +00:00 |
|
goldsimon
|
00b7aeb49b
|
Fixed bug #20220: UDP PCB search in udp_input(): a non-local match could get udp input packets if the remote side matched.
|
2007-06-25 17:24:31 +00:00 |
|
goldsimon
|
4f5b781b88
|
Moved filling of ethernet header for outgoing IP packets into an extra function to reduce code size.
|
2007-06-25 17:20:10 +00:00 |
|
goldsimon
|
b51d1b79a3
|
Combined etharp_request with etharp_raw for both LWIP_AUTOIP =0 and =1 to remove redundant code.
|
2007-06-24 12:51:22 +00:00 |
|
goldsimon
|
4848de3a8e
|
etharp_tmr function had a bug (pending entries were pending for too long)
|
2007-06-24 12:46:13 +00:00 |
|
goldsimon
|
88b1cebe1d
|
Sorry, checked in some of my local changes with the LWIP_ERROR modification!
|
2007-06-23 13:09:58 +00:00 |
|
goldsimon
|
bb9e9e5480
|
Changed the expression of LWIP_ERROR to the same as for LWIP_ASSERT
|
2007-06-22 20:50:21 +00:00 |
|
goldsimon
|
786a7fbaf4
|
no-pool-big-enough was not correctly caught
|
2007-06-22 20:26:30 +00:00 |
|
goldsimon
|
0ce27296aa
|
ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined
|
2007-06-22 20:23:26 +00:00 |
|
fbernon
|
a1d176b643
|
autoip.h/.c: change autoip_init & autoip_create_rand_addr to use netif's MAC address and tried_llipaddr to generate an "autoip"...
|
2007-06-22 18:54:34 +00:00 |
|
goldsimon
|
0c18e653e8
|
Introduced the option MEM_USE_POOLS to use 4 pools with different sized elements instead of a heap. This both prevents memory fragmentation and gives a higher speed at the cost of more memory consumption. Turned off by default.
|
2007-06-21 20:12:11 +00:00 |
|
goldsimon
|
065b8c945b
|
Added ASSERT to check that lwip_send(to) is not called for length not fitting into u16_t (for UDP & RAW sockets)
|
2007-06-21 19:58:31 +00:00 |
|
goldsimon
|
f49fc35f55
|
Converted the length argument of netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into int to be able to send a bigger buffer than 64K with one time (mainly used from lwip_send).
|
2007-06-21 19:32:26 +00:00 |
|
goldsimon
|
67795ad26e
|
Corrected do_write for LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-21 19:14:02 +00:00 |
|
goldsimon
|
2aef8bad55
|
Moved the nagle algorithm from netconn_write/do_write into a define (tcp_output_nagle) in tcp.h to provide it to raw api users, too.
|
2007-06-21 18:55:09 +00:00 |
|
goldsimon
|
9f05cabf87
|
Fixed bug #20021: Moved sendbuf-processing in netconn_write from api_lib.c to api_msg.c to also prevent multiple context-changes on low memory or empty send-buffer.
|
2007-06-21 18:40:21 +00:00 |
|
fbernon
|
4c07b1606c
|
Minor changes: fix some comments for Doygen documentation
|
2007-06-21 07:17:29 +00:00 |
|
goldsimon
|
d3f0a3211d
|
Changed etharp to use a defined hardware address length of 6 to avoid loading netif->hwaddr_len every time (since this file is only used for ethernet and struct eth_addr already had a defined length of 6).
|
2007-06-19 16:22:55 +00:00 |
|
fbernon
|
ec7333d406
|
Some changes for AutoIP integration in tcpip.c, and some comments.
|
2007-06-19 10:11:27 +00:00 |
|
fbernon
|
6a40426421
|
Minor fix: warning, type... for patch #5952 : Integration of AutoIP module
|
2007-06-18 21:45:34 +00:00 |
|
goldsimon
|
c9ebb895a1
|
Removed warning "empty body in an if statement" in tcp_receive() for LWIP_DEBUG=0
|
2007-06-18 20:08:31 +00:00 |
|