likewise
2bd3d51fcf
Removed the pbuf_dechain() from udp_send() matching new pbuf code.
2003-03-30 00:39:03 +00:00
davidhaas
2e0829fb5a
Made lwip timeout measurements accurate by no longer returning 1 millisecond
...
whenever sys_arch_mbox_wait() and sys_arch_sem_wait() get a message or
semaphore immediately. Updated documentation for this change.
Unix port and Coldfire port have been updated.
2003-03-28 20:46:40 +00:00
davidhaas
c4ff244c4e
Fixed minor compile issues.
2003-03-28 19:45:37 +00:00
likewise
002998cf49
Fixed bugs #2968 (ref count) and #2670 (total length).
...
Name of pbuf_unref() falsely suggests to undo pbuf_ref(), renamed to pbuf_take().
2003-03-28 08:49:05 +00:00
likewise
7dea6dc834
pbuf_realloc() did not update ->tot_len in a chain. Fixed dealloc of REF/ROMs.
2003-03-26 13:50:03 +00:00
likewise
fd0d94af44
Fixing bug #1903 with a new pbuf_realloc() that respects mixed-type chains.
2003-03-26 13:30:38 +00:00
likewise
ab630b2875
Strong assert checking against queueing behaviour in udp_send().
2003-03-26 10:59:31 +00:00
jani
09aff62b11
more suggestions
2003-03-26 10:36:00 +00:00
likewise
f4f717b20a
Fixed typo affecting debugging.
2003-03-26 00:31:55 +00:00
likewise
cf188ba15c
Brackets around debug in DEBUGF. Cleaned comments.
2003-03-26 00:31:24 +00:00
likewise
fa34d51b7e
Added documentation and comments.
2003-03-25 12:59:42 +00:00
likewise
6621f8b88a
New tail section of udp_send() that handles both queued and unqueued cases.
2003-03-25 12:58:22 +00:00
davidhaas
f9e4f4d813
Typo bug. The wrong semaphore was being signalled.
2003-03-24 15:53:38 +00:00
likewise
80b961df60
Lots of clearing up comments and use of new debugging features.
2003-03-24 15:15:18 +00:00
likewise
cea002a088
Forgot #if LWIP_DHCP around netif->dhcp = NULL;
2003-03-24 14:30:18 +00:00
likewise
e062b70da8
Retry with PBUF_RAM if PBUF_POOL allocation failed.
2003-03-24 13:27:12 +00:00
likewise
ce4dbcec6a
Initialized netif->dhcp to NULL.
2003-03-24 13:06:16 +00:00
likewise
07058652c1
Added tracing debug messages.
2003-03-24 12:58:01 +00:00
likewise
7a92011933
Re-added pbuf_dechain() in udp_send() as it breaks current applications.
2003-03-24 12:57:00 +00:00
jani
c60d0de919
Add sio.h containing interface to platform specific serial layer.Make slipif use it instead of defining extern functions.This is in preparation for PPP
2003-03-24 10:54:03 +00:00
likewise
6457b93a1f
Made some flag defines unsigned.
2003-03-24 10:30:12 +00:00
likewise
20667e5163
Added debug levels for some serious errors (out of memory).
2003-03-24 10:29:03 +00:00
jani
74f2b5e5f7
some guidelines for contributors
2003-03-24 09:00:14 +00:00
davidhaas
96f2e162ef
Fixed memory leak caused by my last pbuf_ref change.
2003-03-21 23:01:20 +00:00
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
2003-03-21 10:48:21 +00:00
jani
9cafc7a764
avoid compiler warning
2003-03-21 10:34:47 +00:00
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.
2003-03-19 22:14:49 +00:00
jani
2f7e4bd587
patch 1197 form floriZ.When debug is on and port is 0 in udp_bind ERR_USE is always returned due to missing braces.Reindent that part of code while at it
2003-03-19 16:04:54 +00:00
jani
84697ce713
Add priority argument to thread sys_thread_new.Patch from floriZ but slightly modfied
2003-03-19 15:27:56 +00:00
jani
0846206bc0
rename STATS to LWIP_STATS and make it checked by #if not #ifdef.The rest of the _STATS defines should follow
2003-03-19 12:37:46 +00:00
jani
441e9b8431
add tcpip_callback patch from Marc
2003-03-19 11:23:46 +00:00
davidhaas
f9f21934ab
Fix to last fix for bug 2826: find_arp_entry() was now not finding any
...
entries unless there was an attached buffer. Fixed so that it finds entries
without attached buffer.
Also: Now attaching buffer to arp queue before sending arp request. For
Coldfire, where ethernet receive is done under interrupts arp response was
received before buffer was attached, thus causing attached frame to never get
transmitted.
2003-03-18 14:48:40 +00:00
davidhaas
2673568cfd
Added default settings for DBG_MIN_LEVEL and definitions for the possible
...
levels.
2003-03-17 16:59:22 +00:00
likewise
45c13ad08f
Fixed bug #2826 (re-use of oldest ARP entry with queued packet leaks pbuf). Only if ARP_QUEUEING == 1.
2003-03-16 23:46:29 +00:00
likewise
76d395c8de
Fixed bug #2841 (etharp.c packet queueing always picks table entry 6).
2003-03-16 22:44:05 +00:00
likewise
090b4087fc
Using a negated unsigned value as func. arg. fails for Keil C166 compilers.
2003-03-16 22:39:15 +00:00
likewise
7ece19c474
pbuf_unfold_reply() lost memory if already unfold.
...
dhcp_stop() leaked memory if a unfold reply was still in existance.
2003-03-16 22:36:54 +00:00
likewise
dbdd0f520f
Added source comments.
2003-03-13 08:50:04 +00:00
likewise
d47ef79c04
Moved DBG_MIN_LEVEL out of here to lwipopts.h
2003-03-11 14:16:27 +00:00
likewise
400ff200ee
Added comments on some ARP options.
2003-03-11 13:57:25 +00:00
likewise
daeb21b3b9
Include "netif.h" for ntohl and friends.
2003-03-10 16:13:25 +00:00
likewise
7e36c58529
Make sure that BYTE_ORDER is actually defined. Panic with #error if not.
2003-03-10 16:12:41 +00:00
likewise
aa84869fdb
Fixed cyclic dependency by including netif.h. Not sure if this breaks other compilers?
2003-03-10 16:09:41 +00:00
likewise
bd6b1a0237
DBG_TYPES_ON added (must be overridden in lwipopts.h).
2003-03-10 16:08:52 +00:00
likewise
adf088e575
DBG_TYPES_ON removed (must be in lwipopts.h instead).
2003-03-10 16:07:50 +00:00
jani
8613f2a48e
factor out netif_set_addr so address of netif can be changed
2003-03-07 10:55:58 +00:00
jani
12228ea34d
update sysarch doc. patch #1233
2003-03-07 10:48:32 +00:00
jani
f308f7cc80
Add sys_untimeout stub in case of NO_SYS
2003-03-07 10:29:25 +00:00
jani
eb1a41f3c9
socket functions use socklen_t, patch from floriZ.Also set/getsockopt use void * instead of char * as fourth arg
2003-03-03 10:29:21 +00:00
davidhaas
ee2c049518
Fixed build for coldfire after last debug.h and opt.h changes.
2003-02-25 21:46:04 +00:00