goldsimon
a868832776
Initialize dhcp timers in tcpip_thread (if LWIP_DHCP) to protect the stack from concurrent access.
19 years ago
fbernon
7cda728469
Fix some "little" build problems, and a redundancy call to "lwip_stats.link.recv++;" in low_level_input() & ethernetif_input().
...
If LINK_STATS was defined, tcpip.c couldn't be build.
Even if IP_FRAG or IP_REASSEMBLY were set, ip_frag.c functions are not build.
19 years ago
fbernon
7fd37d4e87
Implement SO_RCVTIMEO on UDP sockets/netconn.
19 years ago
fbernon
ed07d481d6
opt.h, ip_frag.h, tcpip.h, tcpip.c, ethernetif.c: add new configuration option named ETHARP_TCPIP_ETHINPUT, which enable the new tcpip_ethinput. Allow to do ARP processing for incoming packets inside tcpip_thread (protecting ARP layer against concurrent access). You can also disable old code using tcp_input with new define ETHARP_TCPIP_INPUT set to 0. Older ports have to use tcpip_ethinput.
19 years ago
goldsimon
7115975212
fixed compiler warning "initialization dircards qualifiers from pointer target type"
19 years ago
fbernon
1ffd049833
api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced.
19 years ago
fbernon
12e0a2ef7d
api_lib.c: Fix "[patch #5764 ] api_lib.c cleanup: after patch #5687" (from Dmitry Potapov).
...
The api_msg struct stay on the stack (not moved to netconn struct).
19 years ago
goldsimon
bb8522b737
tcpip.c: Moved call to ip_init(), udp_init() and tcp_init() from tcpip_thread() to tcpip_init()
19 years ago
kieranm
527d18a526
2007-02-28 Kieran Mansley (based on patch from Simon Goldschmidt)
...
* api_lib.c, tcpip.c, memp.c, memp.h: make API msg structs allocated
on the stack and remove the API msg type from memp
19 years ago
kieranm
c52ac01fbc
sockets.c: Fix BUG#19161 - ensure milliseconds timeout is non-zero
...
when supplied timeout is also non-zero
19 years ago
jifl
75beb3bd35
Fix incorrect comparison in get_socket().
...
Spotted by Frederic Bernon.
19 years ago
jifl
1d22294974
* sockets.h, sockets.c: Move socket initialization to new
...
lwip_socket_init() function.
19 years ago
jifl
de665f7cf9
2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt)
...
* api_lib.c: Use memcpy in netbuf_copy_partial.
19 years ago
christiaans
b5f4672155
Partially accepted patch #5449 for ANSI C compatibility / build fixes. Fixed bug #17574 corrected UDP-Lite protocol identifier.
20 years ago
christiaans
729da3c873
Fixed Nagle algorithm as reported by Bob Grice.
20 years ago
christiaans
a82e02ef15
Partial fix for bug #15926 , flushing TCP output in do_close().
20 years ago
christiaans
63140ca7f8
Applied patch for cold case bug #11135 .
20 years ago
christiaans
1f01634029
Applied patch #5146 to handle allocation failures in accept() by Kevin Lawson.
20 years ago
christiaans
7026bbcdd4
Removed conn->sem creation and destruction from netconn_write() and added sys_sem_new to netconn_new_*
20 years ago
christiaans
00f8cf57cd
Added IP reassembly timer.
20 years ago
christiaans
182e1909b2
Patch from Curt McDowell fixes err_to_errno macro.
20 years ago
christiaans
e1b215aa73
Introduced cc.h formatters and removed SO_REUSE from transport layers.
21 years ago
likewise
0e96ece6c6
Surround definition of tcp_timer_needed with #if !NO_SYS #endif. (see lwip-users 15-11-2004).
22 years ago
jani
8afd3e882e
#if directive style fix
22 years ago
kieranm
19d8ffe177
Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004
...
* Check if the pbuf is NULL before freeing it, when draining the mbox as part of netconn_delete.
22 years ago
softins
a4f5673ff3
Small corrections to some debugging statements, to pacify compiler.
22 years ago
softins
afc3bc6b65
Added trivial (int) cast to keep compiler happier.
22 years ago
softins
6f066fca82
Changed recv_raw() from int to u8_t, to match prototype of raw_recv() in raw.h
...
and so avoid compiler error.
22 years ago
likewise
8d052ecf24
Source documentation added.
22 years ago
likewise
25a0273b05
LWIP_TIMEVAL_PRIVATE must be defined in architecture cc.h file, either 1 or 0. Defaults to 1.
...
Dependencies on C library memset() etc., so include <string.h> and <errno.h>.
22 years ago
jani
6d704c728e
do not export struct timeval to external users of socket.h to avoid conflicts
22 years ago
kieranm
2c8aa6f6f4
Kieran Mansley - kjm25@cam.ac.uk - 23rd March 2003
...
- Changed all #ifdef SO_REUSE into #if SO_REUSE
22 years ago
likewise
6f7c8fb355
Made #ifdef's into #if's for SO_REUSE.
22 years ago
likewise
e1c4bfad05
Merged from DEVEL, except for the API change in etharp.c.
23 years ago
likewise
e4a6d199fe
Merged from DEVEL into main tree.
23 years ago
marcbou
351e590e01
Merged from DEVEL.
23 years ago
likewise
ba786dc49b
Applied patch #1596 fixing wrongly cast LWIP_DEBUGF arguments.
...
(printf expects integers on the var args stack)
23 years ago
kieranm
8014551908
Changed DEBUGF to LWIP_DEBUGF
23 years ago
likewise
df99ce9d98
Replaced all tabs with two spaces (regardless of indentation is correct).
23 years ago
jani
cd65d36822
patches 1492, 1493 and 1494 from Marc
23 years ago
likewise
03bc7c868b
Major stylo search/replace for "One space between keyword and opening bracket."
23 years ago
davidhaas
0bce6f8974
Fixed bug where tearing down a connection would cause loss of memory.
23 years ago
kieranm
01a53d955e
Fixed bug in do_delcon (set tcp_arg to NULL)
23 years ago
kieranm
a5be8fe82c
Fixed bug in netconn_peer (test pcb for NULL before accessing)
23 years ago
davidhaas
f9e4f4d813
Typo bug. The wrong semaphore was being signalled.
23 years ago
jani
859f06a91e
if LWIP_TCP is 0 do not link in TCP code.putting ugly ifdefs in api and core :(.Also only udp_init if LWIP_UDP is on
23 years ago
davidhaas
32d9f25a6f
Fixed up and made work a PBUF_REF type. Most of the code uses this now
...
instead of PBUF_ROM. This addition allows support of copy-on-demand where the
lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and
replaces them with PBUF_POOL buffers. This is now used
everywhere. pbuf_unref() is called in ARP queueing and in the coldfire
driver, which puts frames on a DMA queue and frees them later.
Along with this change pbuf_free() now goes through the entire chain of
buffers and tests all the ref counters, not just the first one. Generally now
pbuf_ref_chain() should be called and not pbuf_ref(). This change was made
because it is possible for the head of the pbuf chain to have a different
count than the payload pbuf which might have been passed by the application.
23 years ago
jani
84697ce713
Add priority argument to thread sys_thread_new.Patch from floriZ but slightly modfied
23 years ago
jani
441e9b8431
add tcpip_callback patch from Marc
23 years ago
jani
eb1a41f3c9
socket functions use socklen_t, patch from floriZ.Also set/getsockopt use void * instead of char * as fourth arg
23 years ago