978 Commits (ebcb46cd48895f218fb7e28d4ab3066420bb6ea5)

Author SHA1 Message Date
goldsimon ebcb46cd48 Included the mem_malloc pools in memp_names if MEM_USE_POOLS=1 19 years ago
goldsimon 1689361ff2 Another change for fixing bug #20478 (put the memp += MEMP_SIZE in another place) 19 years ago
jgrubb eb998bda62 Bug fix #20478: memp_malloc returns NULL+MEMP_SIZE rather than NULL on a failed allocation 19 years ago
fbernon 116bcb9dfb opt.h, netif.h, netif.c, ethernetif.c: Add new configuration option to add a link callback in the netif struct, and functions to handle it. Be carefull for port maintainers to add the NETIF_FLAG_LINK_UP flag (like in ethernetif.c) if you want to be sure to be compatible with future changes... 19 years ago
fbernon 6a452951f5 api_msg.c: Fix bug #20318: api_msg "recv" callbacks don't call pbuf_free in all error cases. 19 years ago
fbernon a891854ef5 Fix bug #20315: possible memory leak problem if tcp_listen failed, because current code doesn't follow rawapi.txt documentation. 19 years ago
fbernon a2dffd430b Fix minor patch #5741 build error... 19 years ago
kieranm 4ac0580aa0 2007-07-13 Kieran Mansley 19 years ago
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). 19 years ago
goldsimon 8d2c8065eb Removed old debug variables from pbuf_copy() 19 years ago
fbernon bf176ed712 Minor fix (indent) 19 years ago
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. 19 years ago
goldsimon 2a77b9fcc7 Bug in last version (fix to close problems): netconn thread might get active before calling its callback, so conn was already deallocated. 19 years ago
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. 19 years ago
fbernon 3a0ab861c2 ip.h, etharp.c: Fix warnings & errors about LWIP_NETIF_HWADDRHINT (perhaps compiler dependant) 19 years ago
goldsimon fdc0d30337 #ifdef LWIP_NETIF_HWADDRHINT around IP_PCB.addr_hint 19 years ago
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. 19 years ago
goldsimon fa4b711495 Added some ASSERTS and casts to prevent warnings when assigning to smaller types. 19 years ago
goldsimon 0113b735ad Fixed a little cast-warning from u32_t to u16_t 19 years ago
goldsimon d228ff0f43 Removed warning when assigning from u32_t to u16_t by casting to u16_t. 19 years ago
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. 19 years ago
goldsimon d7c50f56d7 Fixed a wrong assert statement in etharp_query when ARP_QUEUEING=1 and packets should be queued. 19 years ago
fbernon b6750de9e8 sockets.h, sockets.c: Implement MSG_PEEK flag for recv/recvfrom functions. 19 years ago
goldsimon c91caa06d3 Set/get ARP hwlen and protolen in one piece. 19 years ago
goldsimon 6c3c184bc7 Added check to prevent tcp_pcb->snd_queuelen from overflowing. 19 years ago
fbernon af71292aba Minor fix (extra spaces) 19 years ago
goldsimon 24e29cecae Fixed bug #20287: Fixed nagle algorithm (sending was done too early if a segment contained chained pbufs) 19 years ago
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. 19 years ago
goldsimon d73ca29a07 Fixed minor indentation fault 19 years ago
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...) 19 years ago
fbernon dd1cd5e491 sockets.c: process NETCONN_RAW connections with LWIP_TCPIP_CORE_LOCKING=1 19 years ago
goldsimon 2b02db2675 Remove warning in tcp_enqueue (cast from u32_t to u16_t) 19 years ago
goldsimon 6f93a8f091 Set the err_to_errno_table to be const 19 years ago
goldsimon 47074c897e Removed warning: LWIP_DEBUGF had wrong argument count 19 years ago
goldsimon 2270f0d172 Fixed bug #20259: struct udp_hdr was lacking the packin defines. 19 years ago
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) 19 years ago
goldsimon dcc2247a90 Fixed bug #20253: icmp_dest_unreach was called with a wrong p->payload for udp packets with no matching pcb. 19 years ago
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. 19 years ago
goldsimon 4f5b781b88 Moved filling of ethernet header for outgoing IP packets into an extra function to reduce code size. 19 years ago
goldsimon b51d1b79a3 Combined etharp_request with etharp_raw for both LWIP_AUTOIP =0 and =1 to remove redundant code. 19 years ago
goldsimon 4848de3a8e etharp_tmr function had a bug (pending entries were pending for too long) 19 years ago
goldsimon 88b1cebe1d Sorry, checked in some of my local changes with the LWIP_ERROR modification! 19 years ago
goldsimon bb9e9e5480 Changed the expression of LWIP_ERROR to the same as for LWIP_ASSERT 19 years ago
goldsimon 786a7fbaf4 no-pool-big-enough was not correctly caught 19 years ago
goldsimon 0ce27296aa ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined 19 years ago
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"... 19 years ago
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. 19 years ago
goldsimon 065b8c945b Added ASSERT to check that lwip_send(to) is not called for length not fitting into u16_t (for UDP & RAW sockets) 19 years ago
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). 19 years ago
goldsimon 67795ad26e Corrected do_write for LWIP_TCPIP_CORE_LOCKING=1 19 years ago