kieranm
450dd65165
Kieran Mansley - kjm25@cam.ac.uk - 26th May 2004
...
* Fixed bug 9076 (changes to pbuf tot_len and seg dataptr when trimming front edge of a received packet)
2004-05-26 10:04:15 +00:00
likewise
26819e6c39
Fixed documentation for internal function.
2004-05-13 00:28:38 +00:00
likewise
6587efb3e8
Fixed #if ETHARP_QUEUEING to #if ARP_QUEUEING.
2004-05-07 01:20:28 +00:00
likewise
8d2200f29b
Optimized search loop a bit. Conditional code for ETHARP_QUEUEING option.
2004-05-07 01:06:56 +00:00
likewise
e4295396ac
Re-instantiated the pack directives. Nested structs do break individual field natural alignment on arm-gcc.
2004-05-06 03:27:13 +00:00
likewise
5c7a70df28
Fixed wrong argument to find_entry() in etharp_query().
2004-05-06 02:55:53 +00:00
likewise
16a7a8258f
Fixed ETH_EMPTY into ETHARP_STABLE_EMPTY.
2004-05-06 02:54:06 +00:00
likewise
fb1f61b212
Do not empty entries unless allowed to in find_entry().
2004-05-06 02:51:15 +00:00
likewise
c3137df39c
More fixes.
2004-05-06 02:49:10 +00:00
likewise
2df9cd7262
Exported etharp_request().
2004-05-06 02:43:47 +00:00
likewise
a23f6afbee
Fixed typos.
2004-05-06 02:38:42 +00:00
likewise
e37f7fafc1
Optimized through re-use of common code. Results in 50 lines less and more modular code.
...
Work towards timed out and retries of ARP requests. Currently, one timed out ARP request.
2004-05-06 02:35:27 +00:00
likewise
7b803465ad
Simplified update_arp_entry().
2004-05-06 00:14:39 +00:00
likewise
273612b251
Prevent non-unicast addresses from polluting the ARP cache.
2004-05-05 23:47:33 +00:00
likewise
e2bc8e86e2
Removed a closing bracket, left over after removing pack directives.
2004-05-05 23:04:17 +00:00
likewise
79110ba469
Removed all structure packing directives. Protocol header fields are naturally aligned by design.
...
(Earlier, the 14-byte ethernet header screwed this up, this had already been fixed by adding two pad bytes.)
Assumption is that compilers do not align with larger-than-sizeof(type) boundaries.
Pre-tag PRE_PACK_REMOVE. Post-tag POST_TAG_REMOVE.
2004-05-05 19:16:51 +00:00
likewise
9dd10e46ab
Fix three bugs during tests.
2004-05-05 18:33:01 +00:00
likewise
29df95c514
As etharp already sends packets from the queue asynchronously, also make it send packet submitted through etharp_output().
...
etharp_output() now returns err_t.
etharp_query() now sends a packet directly if the IP address is stable.
2004-05-05 18:28:42 +00:00
likewise
015cb1a35d
etharp_*_input() return value (pbuf) removed; it has not been used since the packet queue
...
implementation. Packets are always sent to the network interface on behalf of ARP.
2004-05-05 15:59:12 +00:00
likewise
b217b020a5
Changed PAD_ETH_SIZE into ETH_PAD_SIZE for consistency with de-facto lwIP naming convention.
2004-05-05 15:09:13 +00:00
likewise
0c960a82ce
The recv callback has u8_t return type. Fixed theraw_pcb struct to reflect this.
2004-05-05 14:30:28 +00:00
likewise
e84cc8c0ad
Remember head of queue in pbuf_queue() iff PBUF_DEBUG to generate senseful debug report.
2004-05-05 14:28:41 +00:00
likewise
c69b93b246
The recv callback has u8_t return type. Fixed the raw_recv() prototype to reflect this.
2004-05-05 14:21:05 +00:00
likewise
5e13b9528d
Adpated comments to match Doxygen/JavaDoc style.
2004-05-05 14:12:28 +00:00
likewise
8bb3cab9d2
Adpated comments to match Doxygen/JavaDoc style.
2004-05-05 13:28:44 +00:00
likewise
ed201c35d2
Made raw_input() more generic allowing multiple matches until someone eats the packet.
2004-05-05 13:27:27 +00:00
likewise
4eadc22a36
Some updates on "gratuitious ARP" from RFC3220. Cleanup of some code and comments.
2004-05-03 17:50:11 +00:00
jani
4e2260c74c
by default there's no eth padding to preserve preious beahviour
2004-05-03 09:42:58 +00:00
likewise
a5148c14a1
Fixed use of struct ip_addr in DHCP header.
2004-04-30 01:00:21 +00:00
likewise
955d6206ee
Fixed hasty job prototype for pbuf_queue().
2004-04-30 00:58:55 +00:00
likewise
5df22b3468
Added missing prototypes for pbuf_*queue().
2004-04-30 00:57:20 +00:00
likewise
aef86ec5ef
DHCP header used u32_t where struct ip_addr is more appropriate.
2004-04-30 00:51:49 +00:00
likewise
94d3b04d68
Applied cleaner new patch for bug #8708 .
...
Implemented multiple packets on the outgoing queue in etharp.c.
Removed etharp.c specific queueing functions.
Fixed generic pbuf.c queueing functions.
2004-04-30 00:25:03 +00:00
likewise
8f309a3fec
Clean-up source comment documentation for Doxygen.
2004-04-29 21:50:39 +00:00
likewise
1fe4edbe1c
Fix buggy comment.
2004-04-29 21:49:12 +00:00
likewise
fe1696cef7
Clean-up source comment documentation for Doxygen.
2004-04-29 21:48:31 +00:00
likewise
de2e311e6e
Updated documentation.
2004-04-28 23:40:53 +00:00
likewise
384fb3c353
Corrected comparison by adding missing parentheses.
2004-04-28 23:36:39 +00:00
likewise
8603e19516
Removed ETHARP_ALWAYS_INSERT.
2004-04-28 23:20:18 +00:00
likewise
7a2751043a
Removed ETHARP_ALWAYS_INSERT. Whitespace cleanup.
2004-04-28 23:19:38 +00:00
likewise
e2b0c6c702
Fixed a cast.
2004-04-28 23:18:57 +00:00
likewise
5b12c61a81
Removed old broadcast check macro.
2004-04-28 23:18:20 +00:00
likewise
2db9551750
Patch of bug #8708 applied which should fix header alignment issues on 32-bit processors.
...
While this patch might need further clean-up, it is applied to make sure this gets attention.
2004-04-28 00:26:35 +00:00
likewise
237b5a2467
Fix in the ip_addr_isbroadcast() check.
2004-04-23 16:45:06 +00:00
likewise
110e5af36c
Two trivial typo fixes.
2004-04-23 15:24:36 +00:00
jani
7d4aef9576
spelling fix from Tony Mountfield
2004-04-22 09:50:22 +00:00
jani
811b360df7
more uptodate eth driver skeleton from Tony Mountfield
2004-04-22 09:47:47 +00:00
likewise
d91b54882a
Fixed #ifdef LWIP_DHCP to #if LWIP_DHCP.
2004-04-16 22:36:48 +00:00
likewise
9106a1f2d5
Fixed #ifdef LWIP_DHCP position. Fixed extranous comma in function arguments.
2004-04-16 22:34:25 +00:00
likewise
2e2dada561
etharp_query(): Fixed the case where the packet that initiates the ARP request is not queued, and gets lost.
...
etharp_query(): Fixed the case where the packets destination address is already known.
As a result, we now always queue the packet and perform an ARP request, unless the entry is stable and no packet is submitted for transmission.
2004-04-14 19:12:10 +00:00
jani
6d704c728e
do not export struct timeval to external users of socket.h to avoid conflicts
2004-03-26 13:21:35 +00:00
jani
6c6f32f17f
fix recursive inclusion by forward defining struct netif
2004-03-26 13:21:10 +00:00
jani
0e4ce326c2
warnign fixe for stat_display
2004-03-26 13:11:35 +00:00
jani
d27448da8a
fix up stats_display which was added in previous commit
2004-03-26 12:47:57 +00:00
jani
d36b723056
fix SO_REUSE ifdef fixes
2004-03-26 12:40:58 +00:00
kieranm
2c8aa6f6f4
Kieran Mansley - kjm25@cam.ac.uk - 23rd March 2003
...
- Changed all #ifdef SO_REUSE into #if SO_REUSE
2004-03-23 19:33:53 +00:00
likewise
6f7c8fb355
Made #ifdef's into #if's for SO_REUSE.
2004-03-23 00:19:38 +00:00
likewise
82f852abf3
Fix cyclic dependencies by careful re-ordering of #includes.
...
This is really nasty. Can we forward-declare pointers to structs?
2004-03-12 00:10:07 +00:00
likewise
239c6fe070
Removed offending #include.
2004-03-11 21:39:47 +00:00
likewise
579d2ad811
Disabling ip_addr_isbroadcast() due to recursive header dependencies.
...
Currently, patch #2679 is broken, but will be neatly fixed once this is solved.
2004-03-11 21:37:56 +00:00
likewise
0cb355cd7c
Added netif #include.
2004-03-11 21:28:37 +00:00
likewise
86135d12b9
Fix prototype.
2004-03-11 21:25:28 +00:00
likewise
10d42c6fa3
Replaced ip_addr_isbroadcast() macro by function.
...
Overrides patch #2679 , as this must be solved inside ip_addr_isbroadcast(), inspired by BSD.
2004-03-11 21:20:10 +00:00
likewise
6434f7efad
Missing newline at EOF. Gave compiler warning.
2004-03-11 20:52:25 +00:00
likewise
bfdf19f56c
Make udp_disconnect() clear its remote address association.
2004-03-11 20:45:09 +00:00
likewise
79c7a7a43d
Using udp_sendto() where appropriate.
2004-03-11 20:25:35 +00:00
likewise
175053085a
Fixed @return in udp_sendto() docs, @see in udp_send*() docs.
2004-03-11 20:04:16 +00:00
likewise
3d90c062fd
Added udp_sendto() docs. Fixed udp_send() docs.
2004-03-11 20:01:26 +00:00
likewise
fda71b1230
Fixed udp_sendto() -> instead of .
2004-03-11 19:52:47 +00:00
likewise
a916de3b66
Added udp_sendto().
2004-03-11 19:41:22 +00:00
jani
30e5dfddb9
fix inet_ntoa prototype to be standard, and fix ppp code that used the non-standard version
2004-03-10 13:23:04 +00:00
kieranm
f9dea9d35b
Kieran Mansley - kieranm@gtemail.net - 9th Mar 2004
...
- Added comment to tcp_write() to remind of the importance of call to
tcp_output() to send any enqueued data.
2004-03-09 15:55:37 +00:00
jani
4ea55b1bbc
only include sys.h once. Noted by Tom Barker
2004-03-09 14:03:11 +00:00
kieranm
caf3c16826
Kieran Mansley, kjm25@cam.ac.uk, 08th Mar 2004
...
- added a comment to tcp_recved() to clarify reasons for call to tcp_ack()
2004-03-08 14:41:25 +00:00
likewise
a6f1111469
Matched interface documentation for netif_add() API change in 1.28.2.5.
2004-03-04 16:19:53 +00:00
jani
33d0096b81
add switch for MEMP_SANITY_CHECK defaulting to off
2004-02-26 10:43:09 +00:00
likewise
ed4c5d88a3
Added replacement for ip_addr_isbroadcast() macro, code is dead for review and testing (#if 0).
2004-02-24 21:59:17 +00:00
jani
e85a892111
add default option for LWIP_RAW
2004-02-23 14:28:03 +00:00
kieranm
70cd10beae
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Sets netif->flags at line 202 to NETIF_FLAG_POINTTOPOINT
2004-02-23 10:15:06 +00:00
kieranm
3a784509df
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 75 for NETIF_FLAG_BROADCAST
2004-02-23 10:13:12 +00:00
kieranm
5c7189124c
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 314 for NETIF_FLAG_BROADCAST
2004-02-23 10:11:55 +00:00
kieranm
f81c2744cc
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 133 for NETIF_FLAG_BROADCAST
2004-02-23 10:07:39 +00:00
lukem
4bf3359574
Added ability to disable checksum generation and checking at compile-time
2004-02-20 01:46:03 +00:00
lukem
47984b0496
removed redundant redeclaration of tcp_active_pcbs (already defined by tcp.h)
2004-02-20 00:51:49 +00:00
lukem
3c339323ed
added 8-byte alignment for 64-bit architectures
2004-02-20 00:45:47 +00:00
jani
7399722a88
indentation fix
2004-02-18 09:01:33 +00:00
likewise
7bfea6edb7
Applied Ian Wienand's patches (4-2-2004). Was partly applied earlier.
2004-02-16 21:33:42 +00:00
jani
f75da2c393
ip_lookup and udp_lookup not use remove declarations
2004-02-09 10:23:41 +00:00
likewise
475576ec20
Updated some copyright notices to include 2004 (a few were forgotten earlier).
2004-02-07 23:24:09 +00:00
likewise
e1c4bfad05
Merged from DEVEL, except for the API change in etharp.c.
2004-02-07 00:30:03 +00:00
likewise
1ed40e7983
Applied alias.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
Using union to make explicit either tcp_listen_pcb or tcp_pcb.
2004-02-06 23:48:40 +00:00
likewise
035fcce9de
Applied mem.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
Stops some warnings.
2004-02-06 23:44:59 +00:00
likewise
19eed5ff8a
Applied dhcp.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
DHCP tries to build even if LWIP_DHCP is turned off.
2004-02-06 23:43:44 +00:00
likewise
7129d4797c
Merged ARP fixes from STABLE. Should have made those fixes in HEAD first.
2004-02-06 22:28:37 +00:00
likewise
1b96391cdf
Merged from DEVEL to main. Two TCP fixes and two NULL reference fixes.
2004-01-20 13:23:52 +00:00
uid67528
eed8ea5bc1
Merged from DEVEL. etharp prepared for queueing feature. DHCP fix.
2003-12-28 02:38:51 +00:00
likewise
a646b5374f
Merge from DEVEL. Assert used field not available without callback API.
2003-11-18 01:52:24 +00:00
likewise
fa9b1ba947
Merge from DEVEL. Includes important UDP fix for bug #6601 .
2003-11-18 01:40:08 +00:00
likewise
3c71c378bc
An overriden merge from DEVEL to main was needed as small changes had been made to main.
2003-11-14 14:56:30 +00:00
likewise
e4a6d199fe
Merged from DEVEL into main tree.
2003-11-14 13:17:23 +00:00
likewise
bdfdc2bb83
Made hton/ntoh argument name in prototypes match those in functions.
2003-07-07 09:11:17 +00:00
marcbou
351e590e01
Merged from DEVEL.
2003-06-27 20:46:11 +00:00
marcbou
ec1c2a714e
merged from DEVEL.
2003-06-19 11:35:26 +00:00
marcbou
55f64f13c7
Important bug fixes and improvements.
2003-06-19 11:31:25 +00:00
marcbou
bbc33080e7
Merged from DEVEL.
2003-06-19 11:15:39 +00:00
marcbou
506a57392c
Merged from DEVEL
2003-06-19 11:08:57 +00:00
marcbou
f0e0e72e4d
Patch #1623 : Add missing pbuf_free() call after pbuf_chain() in slipif_input()
2003-06-19 10:30:13 +00:00
likewise
cea2c0bbc4
Fixed a string literal being wrongly split over two lines.
2003-06-12 07:18:57 +00:00
likewise
93dfcdce93
Fixes wrongly cast LWIP_DEBUGF arguments (patch #1596 and more).
2003-06-11 22:34:51 +00:00
likewise
ba786dc49b
Applied patch #1596 fixing wrongly cast LWIP_DEBUGF arguments.
...
(printf expects integers on the var args stack)
2003-06-11 22:11:42 +00:00
likewise
af384440f8
Applied patch #1597
2003-06-11 21:22:58 +00:00
kieranm
8014551908
Changed DEBUGF to LWIP_DEBUGF
2003-06-10 10:45:29 +00:00
likewise
c699921ff0
Fixed a multi-line comment.
2003-06-09 21:32:55 +00:00
likewise
df99ce9d98
Replaced all tabs with two spaces (regardless of indentation is correct).
2003-06-09 21:14:47 +00:00
likewise
829744dfe6
More precise comments on address change.
2003-06-09 21:08:55 +00:00
likewise
734400cafa
Only free the queued packets if there are any.
2003-06-09 20:28:10 +00:00
likewise
b306cab8be
Additional documentation on the subtle difference of a 'pbuf chain' and a 'packet queue'.
2003-06-06 08:34:37 +00:00
likewise
031a4cbdd8
Increased number of debug messages to see pbuf chain actions.
2003-06-05 14:15:46 +00:00
likewise
326b8ff728
Fixed a memory leak when only a part of a PBUF_POOL chain could be allocated.
2003-06-04 19:09:11 +00:00
likewise
9ed2b7e03c
pbuf_alloc() forgot to set tot_len field for PBUF_POOL pbufs.
2003-06-04 09:06:22 +00:00
likewise
08703f46f8
Several additional documentation fixes.
2003-06-04 08:58:51 +00:00
jani
ea08652416
fixed sio_read_abort prototype
2003-06-02 11:30:47 +00:00
jani
26d9b28f77
sio and PPP updates from Marc
2003-06-02 11:12:56 +00:00
jani
2bfd55fd69
sys_msleep and sys_jiffies used by PPP code.From Marc
2003-06-02 11:10:20 +00:00
jani
39a6db4097
inet_ntoa and inet_aton from Marc
2003-06-02 11:09:01 +00:00
jani
ff63557d39
Cleanups in PPP: C++ comments removed, make it compile for unixsim too. Does not work yet only compiles
2003-05-30 08:49:34 +00:00
jani
31776e23fe
add PPP stack from Marc. Work in progress
2003-05-27 14:37:56 +00:00
jani
6719f10034
put LWIP_MAX and LWIP_MIN macros in def.h and use these instead of locally declaring them in .c files
2003-05-27 13:44:08 +00:00
jani
b0273c9209
fix warning
2003-05-27 13:40:54 +00:00
likewise
4ae13c6c26
Set UDP_FLAGS_CONNECTED in udp_connect().
2003-05-20 11:23:59 +00:00
likewise
cf7054dff2
Merging some fixes that had been committed into STABLE.
2003-05-20 09:49:04 +00:00
likewise
b8eeee5528
dhcp_recv() left dangling dhcp->p pointer in case of unexpected message.
...
This could result in pbuf_free() assertion (ref count 0) or crashes.
2003-05-20 09:04:10 +00:00
likewise
30d5b11628
Cleanup of some formatting and comments.
2003-05-20 08:16:29 +00:00
jani
cd65d36822
patches 1492, 1493 and 1494 from Marc
2003-05-19 14:41:54 +00:00
likewise
cda867d52b
Applied patches posted by Marc Boucher on lwip-users May 18th 2003.
2003-05-18 22:29:10 +00:00
jani
24a9063721
add sio_read and sio_write to beused by PPP
2003-05-06 12:20:57 +00:00
jani
840953c0e3
empty lightweight protection macros defined not only for no_sys
2003-05-06 12:19:53 +00:00
jani
398bf575d9
C++ comments cleanup
2003-05-06 12:15:08 +00:00
jani
8bfe344923
fix format warning
2003-05-06 12:13:34 +00:00
jani
c3fa5819fd
simplify MEM_ALIGN_SIZE macro
2003-05-06 11:24:42 +00:00
likewise
7e73e4728d
Made pbuf flags unsigned. Added "incoming broadcast" flag.
2003-05-03 09:44:09 +00:00
likewise
03bc7c868b
Major stylo search/replace for "One space between keyword and opening bracket."
2003-05-01 13:24:01 +00:00
jani
4c3f44b0d2
add PPP_DEBUG option and align all options to teh same colums using spaces and no tabs.closes patch #1306 too
2003-05-01 09:36:08 +00:00
likewise
b031be753a
Patch #1308 . Disabled, as one issue in dhcp.c (file field overloading) needs fix.
2003-05-01 09:03:20 +00:00
likewise
6e9c995fc8
Fixed packet header debug formatters.
2003-05-01 08:37:24 +00:00
likewise
6ee1644db7
Patch #1183 applied. This drops short ICMP packets.
2003-05-01 08:29:54 +00:00
likewise
7cb64f2a43
Patch #1183 applied. This drops short UDP/TCP packets.
2003-05-01 08:03:51 +00:00
likewise
6c907ce8d1
Patch #1308 . Still disabled, as it needs to make sure no file field is not overloaded.
2003-05-01 08:00:41 +00:00
likewise
a0eb47d561
Implemented packet (de)queueing. Unused, etharp.c must be adapted next.
2003-05-01 07:48:01 +00:00
anderscarlman
084c45d3db
Added dummy parameters for the empty macros snmp_add_ifinoctets and
...
snmp_add_ifoutoctets in order to avoid compiler warnings.
2003-04-27 09:51:59 +00:00
anderscarlman
0ef3b9b3c5
Re-added code for checking tail-parameter for NULL in
...
pbuf_chain() to provide for better backward compatibility.
2003-04-26 20:32:23 +00:00
likewise
12bb78a425
Either first or last packet can be queued through ARP_QUEUE_FIRST option.
2003-04-22 15:09:56 +00:00
likewise
042b2a39d9
Either first or last packet can be queued. Fixed (err_t)NULL return value in etharp_query().
2003-04-22 15:08:47 +00:00
jani
1204e461c8
add definitions for PF_UNSPEC and IPPROTO_IP
2003-04-22 13:37:14 +00:00
likewise
9bc16878ea
Fixed tabs into spaces. Fixed other stylos.
2003-04-16 07:39:48 +00:00
jani
7662015de6
obsolete PCB handling only active when TCP is enabled
2003-04-15 14:58:35 +00:00
jani
e4775d4162
alignment fix from Marc Boucher
2003-04-15 14:56:03 +00:00
likewise
ed14a32224
Stylo.
2003-04-15 14:40:55 +00:00
likewise
4ecb01f4fd
Changed netif name formatting from %s to %c%c.
2003-04-15 14:32:13 +00:00
likewise
a1efd95d0f
hexadecimal notation for NETIF_FLAGS_
2003-04-15 12:44:15 +00:00
likewise
ac2b4c2174
Debug levels set on some serious debug messages.
2003-04-15 12:43:15 +00:00
likewise
9ef5a61b1e
Prevent compiler warning on unused function arguments.
2003-04-15 12:41:52 +00:00
likewise
b68c91c973
Debug message shows requested pbuf type (of ROM/REF) upon memory allocation failure.
2003-04-15 12:38:48 +00:00
likewise
710ac00024
dhcp_inform() did not set and unset netif->dhcp. always generated assert failure.
2003-04-15 12:37:06 +00:00
likewise
a96a12ed1f
Prevent warnings about unused function arguments.
2003-04-15 11:27:52 +00:00
likewise
a8976fd367
Again accepted NULL to indicate IP_ADDR_ANY.
2003-04-15 09:16:39 +00:00
likewise
11e0cf6f40
Added NETIF_FLAG_LINK_UP. Not used yet.
2003-04-14 12:29:45 +00:00
likewise
dc1ac6107f
Disabled pbuf_dechain() as it not currently in use.
2003-04-14 12:17:08 +00:00
likewise
f9538c9395
Disabled pbuf_dechain() as it not currently in use. Fixed comment position.
2003-04-14 11:37:12 +00:00
likewise
445a64d933
Stronger debugging/assertion.
2003-04-14 11:36:17 +00:00
anderscarlman
d1940302bb
Removed the lines setting dhcp->msg_in and dhcp->options_in to NULL, since this is done implicitly through dhcp_free_reply().
2003-04-12 15:40:43 +00:00
davidhaas
3defc437c6
Got rid of pbuf_pool_alloc_cache and pbuf_pool_free_cache. Also got rid of
...
pbuf_refresh(). This has sped up pbuf pool operations.
2003-04-11 14:39:15 +00:00
likewise
40f10b69f7
All debug messages now show actual config _after_ setting netif config.
2003-04-11 14:02:48 +00:00
likewise
4c5117101d
Fixed debug message for PBUF_REF/ROM allocation failure.
2003-04-11 12:56:13 +00:00
likewise
4bcfd81923
Macro IP_ADDR_ are cast non-const as lots of functions miss const qualifier for arguments.
2003-04-11 08:45:15 +00:00
likewise
f6a8994521
ip_addr_any and _broadcast are type-declared as being const.
2003-04-11 08:10:17 +00:00
davidhaas
50f47f18c1
Fix memory leaks.
...
When pbufs are chained, the second pbuf must be freed, if no higher level
application refers to it any longer.
2003-04-09 20:28:15 +00:00
davidhaas
18a215e6a8
Made memory stats more accurate (real amount and max amount of memory used).
...
Also fixed a protection bug which occurred when memory allocation failed.
2003-04-09 20:19:27 +00:00
davidhaas
0bce6f8974
Fixed bug where tearing down a connection would cause loss of memory.
2003-04-09 20:12:12 +00:00
likewise
1254b42e66
Enabled code to abort/replace TCP pcbs upon netif address change.
2003-04-09 15:17:57 +00:00
likewise
a389b630ac
Added (non-active) code handling pcbs upon changing IP address.
2003-04-08 12:19:02 +00:00
likewise
a4a7a7a47e
TCP data can be safely referenced as PBUF_ROM instead of PBUF_REF.
2003-04-07 21:28:16 +00:00
jani
a3087737bd
initial PPP options
2003-04-07 08:54:18 +00:00
likewise
12fc0239c2
Fixed bug #3112 (faulty behaviour calling tcp_listen() when already listening)
2003-04-06 20:35:50 +00:00
likewise
0418edb7b6
Added debugging to verify correct result of udp_bind() / udp_connect().
2003-04-04 08:14:49 +00:00
likewise
2e233cb35b
Fixed stylo.
2003-04-04 08:14:04 +00:00
likewise
e36394e6cc
Only changes to comments.
2003-04-03 19:11:02 +00:00
likewise
6d3149714f
Print debug message before actually changing netif IP address config.
2003-04-03 12:09:39 +00:00
likewise
9ea10ce05d
In pbuf_take(): Got rid of variable 'f'. Fixed stylo (typo in style). Renamed 'top' to 'head'.
2003-04-03 08:50:57 +00:00
davidhaas
21d17e41fd
Fixed last change to pbuf_take. There were two calls to pbuf_free in a row.
2003-04-01 15:54:25 +00:00
likewise
af8f280811
Fixed ip_addr_set() to deal with IP_ADDR_ANY. Added "ip_addr.h" include.
2003-04-01 15:00:26 +00:00
likewise
7abb278b60
Added assertion checking against dupes in pcb active list. Added comments.
2003-04-01 14:52:41 +00:00
likewise
7842a0190a
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
...
For easier debugging of IP addresses.
2003-04-01 14:50:00 +00:00
likewise
a22e66f5ee
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
2003-04-01 14:49:37 +00:00
likewise
1a72feb128
etharp_query() has error return type now. Matched dhcp.c with this change.
...
Added debug messages in other places.
2003-04-01 14:02:50 +00:00
likewise
a28af1be11
Fixed another assert. Removed another redundant assignment.
2003-04-01 12:28:45 +00:00
likewise
b04ac8f3be
Lots of comments added. Removed redundant assignment. Moved assertion.
2003-04-01 12:17:55 +00:00
likewise
5f35f4bb3b
Reverted back to David Haas' patch of pbuf_chain() from 1.34.
2003-04-01 09:35:20 +00:00
likewise
4c3512c0a2
Replaced pbuf.c 1.34 pbuf_take() change by simpler alternative.
2003-03-31 23:28:54 +00:00
davidhaas
09ca7a181b
In keeping with pbuf->ref always having the count of the number of pointers
...
to the particular buffer (and the last rewrite of pbuf_free), changed most
pbuf_ref_chain() calls back to pbuf_ref(). I think this was causing some pbuf
leaks.
2003-03-31 22:09:39 +00:00
davidhaas
82a32be1d6
Fixed issue in pbuf_take(): old pbuf of type PBUF_REF was being referenced
...
after being freed. Also, it was not being freed if it had been the first
buffer in chain. It still needs to be freed then.
2003-03-31 21:32:30 +00:00
davidhaas
9f3511231a
Fix pbuf_chain() to update tot_len of last buffer in first chain properly.
...
Previous code skipped it.
Made comments in pbuf_header() more general (header can be increased or
decreased).
2003-03-31 20:45:08 +00:00
likewise
6da25968e0
pbuf_header() now only moves payload pointer upwards for PBUF_ROM/REF.
2003-03-31 18:48:52 +00:00
likewise
a70f478ef1
Fixed pbuf_dechain() assertion. Removed old documentation from pbuf.h.
2003-03-31 11:39:48 +00:00
likewise
6c147709b6
Documentation changes. Added missing trailing newlines to debug messages.
2003-03-31 10:32:35 +00:00
kieranm
8636ac26cf
Fixed bug in mem_realloc (check alignment of size)
2003-03-31 09:36:18 +00:00
kieranm
01a53d955e
Fixed bug in do_delcon (set tcp_arg to NULL)
2003-03-31 09:35:47 +00:00
kieranm
a5be8fe82c
Fixed bug in netconn_peer (test pcb for NULL before accessing)
2003-03-31 09:34:56 +00:00
likewise
e6cc785fff
Fixed missing variable.
2003-03-31 08:34:02 +00:00
likewise
00809b49f1
Better error handling. Added debug messages for serious errors.
2003-03-31 08:02:52 +00:00
likewise
917f8ec799
Added debug messages for serious errors.
2003-03-31 08:00:01 +00:00
likewise
c50f80da92
Corrected more pbuf.c functions to comply with pbuf->ref and ->tot_len invariant.
2003-03-30 22:24:10 +00:00
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
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
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
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
jani
0ba9a45d32
icmp messages need only PBUF_IP layer
2003-02-25 16:00:21 +00:00
jani
bcfc7173f3
default value for NO_SYS
2003-02-24 13:57:39 +00:00
jani
d390ca7056
cleaned up opt.h a bit, added more option defaults ad changed SYS_LIGHTWEIGHT_PROT to be a 0/1 define.The same for COMPAT_SOCKET
2003-02-24 10:49:05 +00:00
jani
18df3961e9
byte-order handling functions are in inet.c now and the uperrcase counterparts are gone. opt.h has all the
...
configurable items debug does not need to be directly included.
2003-02-21 16:43:46 +00:00
jani
d372121d6e
dhcp.h and ip.h declare struct netif and don't include netif.h to avoid warnings.
2003-02-20 17:16:30 +00:00
jani
8e9aa84070
do not directly include lwipopts.h but lwip/opt.h instead
2003-02-20 16:32:22 +00:00
jani
6319ffbcb8
delete ethernetif.h
2003-02-20 15:23:04 +00:00
likewise
d1c03cbd69
Fixed some issues open after merging 'leon-dhcp'.
2003-02-20 14:35:40 +00:00
likewise
37629fc1b6
Fixed some issues open after merging 'leon-dhcp'. Added new debugging.
2003-02-20 13:13:51 +00:00
jani
cc31bb9358
make netif->init return err_t instead of void.Patch from David Le Corfec
2003-02-20 11:51:53 +00:00
jani
35ef1e1b86
fix compiler error
2003-02-20 11:48:13 +00:00
likewise
d8d787545e
Merged with leon-dhcp branch. Tagged as POST_leon-dhcp afterwards.
2003-02-20 08:41:59 +00:00
likewise
0a51d72098
Removed Id: fields as they give conflicts while merging to leon-dhcp branch.
2003-02-19 22:07:42 +00:00
davidhaas
e13c78820f
Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined.
...
Added documentation for lightweight protection.
Fixed debug statement in ip.c.
Removed tabs in files I changed.
2003-02-18 21:14:16 +00:00
davidhaas
7f1becc682
Allow minimal unix target to build in cygwin (but not necessarily run).
...
Applied a patch from Marc Boucher which has the following changes:
1) Fixed sys_arch.txt documentation to have new return type from
sys_thread_new.
2) Removed unnecessary casts on calling sys_timeout() in certain files.
3) Removed some unnecessary break statements after return statements.
4) Changed sys_timeout_remove() to sys_untimeout().
5) Added some forgotten #ifndef SYS_LIGHTWEIGHT_PROT to memp.c
6) Changed LWIP_DIAG and LWIP_PLATFORM_ASSERT to have do while().
2003-02-18 19:27:48 +00:00
likewise
1660e800e0
Made UDP flag defines unsigned (by adding the U suffix).
2003-02-18 12:41:52 +00:00
jani
da40fbd054
move FD_SET defines to sockets.h from arch.h .Last arg of select is not a const according to linux and openBSD manpages
2003-02-17 11:34:48 +00:00
likewise
90bc698a40
Lightweight protection macros were not defined if NO_SYS was defined.
2003-02-17 10:13:00 +00:00
likewise
cb6cec0404
Disabled too restrictive behaviour in _bind() and _connect(). Reimplementation pending.
2003-02-14 15:49:02 +00:00
davidhaas
de29a0818e
By request: moved lightweight protection to macros.
2003-02-12 22:00:18 +00:00
davidhaas
4fc309b1dd
Made sys_arch_prot() interface more generic by returning sys_prot_t instead
...
of u32_t.
2003-02-12 16:38:46 +00:00
davidhaas
353478180d
Fix some compile issues with both coldfire and unix builds.
2003-02-12 15:09:04 +00:00
jani
ea66eb6c23
one more C++ comment changed two prototypes added for the SNMP = 1 case
2003-02-12 08:06:50 +00:00
davidhaas
7b3e158c92
sys_thread_new() now returns the thread (request from Marc Boucher).
...
Removed some unused .h files in coldfire port.
Support LWIP_DIAG and LWIP_ASSERT in coldfire (sort of).
Fix to last api fix to make sure select() is triggered, even when there has
been a FIN.
Allow build of unixsim from cygwin by specifying "make ARCH=cygwin" or from
linux by specifying "make ARCH=linux".
2003-02-11 21:00:14 +00:00
jani
848dea2058
Only access non-NULL pbufs on some paths where they can be NULL in newly introduced callback code
2003-02-11 16:33:02 +00:00
jani
f2d35751ca
fix doxygen comment for netif_add
2003-02-11 09:51:22 +00:00
jani
16833de1cf
remove list.h
2003-02-11 09:10:10 +00:00
likewise
0cb0cd6611
C instead of C++ style comments.
2003-02-10 23:51:06 +00:00
davidhaas
dc49999124
Fixed some build issues regarding snmp.h
2003-02-10 21:58:34 +00:00
likewise
daebdd1d77
Removed my #error.
2003-02-10 19:55:35 +00:00
likewise
c68ee2b2ed
SNMP functions are now unconditionally called and defined empty if LWIP_SNMP == 0
...
This removes a lot of #if #endif cluttering the source code.
2003-02-10 13:47:47 +00:00
likewise
32fbec2e48
Include arch/cc.h first, as architecture headers might #define NULL itself.
2003-02-10 13:20:33 +00:00
jani
c13e08a7f5
make debugs and asserts platform independent.No more use of abort and printf.delete 2 references to arch/cpu.h and arch/lib.h
2003-02-10 11:15:19 +00:00
jani
451926e5c3
don't include arch/lib.h
2003-02-07 10:23:15 +00:00
jani
1868b2d244
tcp_timer_needed should be a noop when using the raw API.Fix link error bug #2489
2003-02-07 10:13:51 +00:00
davidhaas
dd2fa15e8a
Add the following features and bugfixes:
...
Added select() functionality to sockets library.
Support for errno in sockets library.
Byte ordering fixes.
basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support
- added additional argument to netif_add to pass state pointer so that the
if_init function has access to context information before
the interface is added, without accessing globals.
- added netif_remove()
- to conserve cpu load the tcpip_tcp_timer should only be active
when tcbs that need it exist.
- pass length of available data to callbacks for NETCONN_EVT_RCV events
- added tcpip_link_input(), a hack to allow processing of PPP
packets in tcpip_thread() context. This saves threads and context
switches.
- renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name
collision.
- changed a bunch of %d's to %u's in format strings for unsigned values.
- added ip_frag to lwip_stats.
- changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic
values.
- added sys_timeout_remove() function to cancel timeouts (needed by PPP
amongst other things).
- tolerate NULL returns from sys_arch_timeouts() since some threads might
not need to use or have timeouts.
- added sys_sem_wait_timeout()
- moved mem_malloc() function to end of mem.c to work around tasking
compiler bug.
- automatically bind to local tcp port if 0.
- allow customization of port ranges for automatic local bindings.
- corrected various typos, spelling errors, etc..
Thanks to Marc Boucher for many of these changes.
2003-02-06 22:18:56 +00:00
jani
d2e008d4b4
Update src/FILES and src/netif/FILES
2003-02-05 13:39:35 +00:00
davidhaas
98fbb855fb
Added lightweight protection. In coldfire this is implemented by disabling
...
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.
Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:22 +00:00
likewise
987e9df948
Fixed comment typo.
2003-02-04 18:50:30 +00:00
likewise
70d54479a1
Changed some comments into JavaDoc format.
2003-02-04 18:49:46 +00:00
davidhaas
f5f31f5eaa
----------------------------------------------------------------------
...
Fixed the following bugs:
2366: For coldfire port: pbuf is freed twice when no room on
output ring.
2368: Coldfire port: buffer cleanup in 5272 driver causes
problems.
2376: Can't have timeouts large enough
Note that timeouts are now 32 bits. This was done for select()
support. Coldfire and unix ports have been updated.
Committing in .
Modified Files:
src/core/sys.c src/include/lwip/sys.h
----------------------------------------------------------------------
2003-02-04 14:50:45 +00:00
jani
442f46a1ce
recvfrom accesses freed netbuf.If it's reused in the small window by another thread recvfrom returns bad from info.Patch #1041 by Florian Zschocke
2003-01-31 12:51:56 +00:00
likewise
ea6432702f
Added comments. Code cleanup. Clearer debugging in udp_input().
2003-01-30 15:02:48 +00:00
likewise
faa9191191
Added commented about the signedness of pbuf_header() argument.
2003-01-30 12:38:03 +00:00
likewise
8560f6ef2b
Fixed DHCP packet input filter. Added numerous comments. Code cleanup.
2003-01-30 10:18:40 +00:00
likewise
bb0194cc0c
Some macro's were not surrounded by brackets. Was dangerous when nesting macro's.
2003-01-30 09:32:31 +00:00
likewise
bcfdf4c1cf
Removed the src/arch tree from the lwip module. (Now in seperate contrib module).
2003-01-29 13:18:40 +00:00
likewise
663b79ca72
ip_input() changed. A configured netif accepts any traffic and an unconfigured netif accepts only DHCP traffic.
...
Fixes bug #2004 .
2003-01-28 18:24:25 +00:00
likewise
4a720425b7
Rebinding an active pcb did not check the given address/port against other bound pcb's.
2003-01-27 13:58:45 +00:00
likewise
0e4d59541a
Fixed assignment of pcb->flags if pcb was NULL in udp_new().
2003-01-27 12:35:16 +00:00
likewise
ba666295eb
Nullified stray pointer for debugging purposes.
2003-01-27 11:31:30 +00:00
likewise
d34851db91
Initial commit of snmp.h function prototypes.
2003-01-27 09:29:07 +00:00
likewise
7dfd162a34
Added source documenting comments.
2003-01-27 08:50:28 +00:00
jani
6d0a8a85c7
Fix locking for disconnect operation (use post and fetch on the connection's mbox in the two threads like other operations).Make netconn_peer take a pointer to addr instead of pointer to pointer to addr.Addr is a 4 byte struct an IP address so use structure assignment not just pointer assignment when saving the peer.This way the address is really saved :fixes bug #1897
2003-01-24 09:24:44 +00:00
jani
721d237120
Fixes so that UDP connect() works.Enable generation of ICMP destination unreachable when the port is unavailable
2003-01-23 16:46:01 +00:00
jani
46c575c038
Fix udp_bind to allow rebind for same socket (yesterday's commit broke that) and introduce connection info for UDP pcbs.New function netconn_disconnect, do_disconnect for deatching UDP from a remote addres.Fix #2240
2003-01-22 16:18:05 +00:00
jani
16434f0d01
Don't allow multiple binds to the same UDP port/address pair.Closes bug #1896
2003-01-21 14:09:31 +00:00
jani
39edc69514
When all entries are 0 due to the whole table changing since the last arp tick (past 10 seconds) there's no oldest entry and the new entry does not get a spot.Fix this (from Ed Sutter)
2003-01-18 16:05:24 +00:00
likewise
2154ac3ecb
Enhanced documentation on UDP PCB matchjng code.
2003-01-17 15:16:33 +00:00
jani
42309b5d6f
put a state field in listen PCBs to since they are often treated as normal pcbs. patch #922 , bug #2114
2003-01-17 14:18:55 +00:00
likewise
fa8f6cb204
Free incoming pbuf's in the TCP event macro if the recv callback is NULL. Fixes bug #2156 .
2003-01-14 12:54:02 +00:00
jani
049853362a
ack duplicate segments too to prevent connection hanging when a single transmitted ACK gets lost
2003-01-14 09:38:10 +00:00
jani
3e6202f614
do not set rtime too many times to 0.it's enough to do it in tcp_output_segment
2003-01-14 08:37:01 +00:00
jani
a993e962f5
fix compiler warnings in DEBUGF
2003-01-14 08:22:05 +00:00
likewise
1ad5537c9b
Fixed some typo's in the comments.
2003-01-13 13:22:09 +00:00
likewise
ea0dc429a7
Added #include <string.h> for memset()/memcpy().
2003-01-13 13:14:45 +00:00
jani
8d7f09fa92
remove global ctime.Each entry's ctime is now absolute.This avoids wrapping and also solves naming clash reported on the list
2003-01-13 09:38:21 +00:00
jani
02a6a8a809
etharp_output_sent no longer exists
2003-01-11 15:10:12 +00:00
jani
2bba9bcd9f
make rtime field u16_t like rto otherwise it won't catch rto if that goes beyond 255.When that happens there's trouble already since 255 ticks is over 2 minutes but still...
2003-01-10 15:46:58 +00:00
jani
4eebbdea0d
print correct pcb->rtime value in debug statament.it does not directly depend on tcp_ticks
2003-01-10 15:41:02 +00:00
jani
4a2d03a517
seqno is u32_t so use %lu instead of %ld when printing it
2003-01-10 15:36:47 +00:00
jani
5212afdd8f
remove already commented out function : memp_realloc
2003-01-10 09:42:27 +00:00
jani
e196108931
fix debug messages in tcp_slowtmr to reflect the correct name of this function
2003-01-10 09:41:24 +00:00
likewise
a5e9b73703
Made hardware address length definable (was 6 bytes for Ethernet).
2003-01-08 16:06:02 +00:00
likewise
5e13d495f0
Merged patch #927 which fixes "needs modifiable lvalue" compile error in TCP_REG.
2003-01-08 15:37:20 +00:00
likewise
a528a2323e
More debugging in checksum routines.
2003-01-08 15:36:25 +00:00
likewise
c786f238ef
Output snd_buf size in debug message in tcp_enqueue().
2003-01-08 14:35:02 +00:00
adamdunkels
d04f7aa4bc
Added comments to the tcp_enqueue() function.
2003-01-08 14:11:24 +00:00
likewise
ced453a72b
Moved ETHARP_ALWAYS_INSERT switch to lwipopts.h
2003-01-08 11:03:54 +00:00
likewise
0f3e8c19e8
Added check if ARP_QUEUEING is 1 for a queueing related debug statement.
2003-01-08 10:49:16 +00:00
likewise
cc4df7100d
Updated lwIP module copyright years to include 2003. Committers must check theirs.
2003-01-08 10:09:39 +00:00
likewise
0bd02a5f7a
Removed etharp_output_sent() as etharp.c no longer returns ARP packets to the driver.
2003-01-08 09:24:06 +00:00
likewise
b311ab0d53
Allocate PBUF_RAW instead of PBUF_LINK type pbufs. Fixes bug #1890 for this driver.
2003-01-08 09:09:35 +00:00
jani
b6b905412e
Patch #928 from Marc
2003-01-07 12:50:34 +00:00
jani
2c2fec1b0e
remove bcopy & bzero from archs
2002-12-19 10:37:07 +00:00
jani
f946abd86b
Simplify pbuf allocation for TCP packets in two places by replacing pbuf_alloc + pbuf_header
...
with an equivalent pbuf_alloc.When we know we'll have to adjust the payload for the TCP header
just alloc it like that from the start.
2002-12-19 09:50:53 +00:00
jani
156d2c866f
sizeof(u8_t) is 1 at temperatures > 0 K
2002-12-19 09:04:58 +00:00
jani
ef68392388
renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901
2002-12-18 12:49:01 +00:00
kieranm
9eebc135ce
Removed dummy variable from "struct mem" and handled all MEM_ALIGNMENT cases
...
Fixes bug #1912
2002-12-18 12:01:24 +00:00
kieranm
771fb0f2cd
Removed "static" from declaration of netif in ip_forward and ip_output
...
(Bug #1909 )
2002-12-18 11:53:26 +00:00
jani
3984e521ad
Move tcpdump.h to unix arch.BTW: as with tcpdump.c no CVS history is lost here.
2002-12-18 10:51:33 +00:00
jani
95c1bca3f1
Moved tcpdump to unix arch since it's specific to that.
2002-12-18 10:48:51 +00:00
jani
4c1069c38b
use memset and memcpy instead of bzero and bcopy throughout lwIP core code.Archs need to update.Bug #1899
2002-12-18 10:40:01 +00:00
jani
219266b7de
replace bcopy and bzero with memcpy memset in tapif.Alloc PBUF_RAW instead of PBUF_LINK on input now that the meaning of PBUF_LINK has changed.
2002-12-18 10:36:43 +00:00
jani
f037bfad1e
check for NO_SYS consistently using #if.Closes bug #1910
2002-12-18 10:03:33 +00:00
jani
c0a8ef6f6f
Use C style comments.In debug stataments cast various struct pointers to void* to
...
avoid printf warnings.misc warnings in etharp.
2002-12-17 09:41:16 +00:00
jani
a071cbf86c
Allocate PBUF_POOL_BUFSIZE at once not harcoded 128.Init MTU for slip - 1500 for
...
now needs a SLIP_MTU in opts (later).Add prototypes for low level sio callbacks.
2002-12-17 09:39:10 +00:00
jani
6dd350348d
fix 'conflicting type for strncmp' warning on linux by including string.h
2002-12-17 09:36:50 +00:00
likewise
5472d94b73
Added comment to ip_input() packet filter.
2002-12-11 00:21:12 +00:00
kieranm
40abd14884
Make tmr in tcp_pcb u32_t to ensure it wraps at the same time as tcp_ticks (Bug #1838 )
2002-12-05 09:52:59 +00:00
kieranm
cac01f7a89
Fixed compiler warnings when ARP_QUEUEING is not defined.
2002-12-05 09:41:52 +00:00
kieranm
7ea512e7fa
Added #include <stdlib.h> to ensure abort() is known
2002-12-05 09:41:04 +00:00
kieranm
8bd53b5be8
Added netbuf_copy_partial declaration
2002-12-05 09:40:19 +00:00
kieranm
96610c9c20
Fixed compiler warning - DEBUGF statement with too many arguments
2002-12-05 09:38:25 +00:00
kieranm
6972e81ac0
Zero pcb->acked if ack does not acknowledge new data
...
- prevents the sent function being called multiple times when no new data has been acknowledged
2002-12-03 10:45:47 +00:00
likewise
ac46dbacfa
Fixed wrong assertion condition.
2002-12-02 16:08:09 +00:00
likewise
ea3b0fc477
Fixed missing end-of-comment.
2002-12-02 13:11:04 +00:00
likewise
99dfbfeef0
Clarified debug messages where the timers are set.
2002-12-02 12:23:37 +00:00
likewise
dcce504ade
First attempt to stylize and document DHCP sources.
2002-12-01 19:49:45 +00:00
likewise
dfa0369678
More complete ARP protocol implementation.
2002-11-29 16:02:11 +00:00
likewise
1d341bae31
Initial commit of C16x/ST10 arch files and CS8900a Ethernet driver.
2002-11-29 10:59:34 +00:00
likewise
0ed4fd6741
Documented ( *output)() and ( *linkoutput)() better for upcoming ARP changes.
2002-11-28 15:03:07 +00:00
likewise
6fc6acf295
Fixed typo: ETHARP_DEGUG
2002-11-28 14:55:10 +00:00
likewise
bda378bb9f
All ARP queueing code is now conditionally compiled-in.
2002-11-28 09:26:18 +00:00
likewise
4619bbc3ea
Changed dhcp_init() to NULL the client_list (on re-inits).
2002-11-25 22:36:25 +00:00
likewise
c73606309f
Fixed argument type compiler warnings of the bcopy() call using type casting.
2002-11-24 22:27:10 +00:00
jani
0442c1e228
new file ip_frag for IP SAR.reassembly code moved from ip.c and fixed
2002-11-22 15:46:50 +00:00
jani
53148943bd
add new header file
2002-11-22 13:18:01 +00:00
jani
cfab6dc28b
initialize tapif's mtu to 1500
2002-11-22 12:53:05 +00:00
jani
a57c91404f
add MTU (maximum transmission unit) field to struct netif
2002-11-22 12:52:04 +00:00
jani
8210edfeea
fix pbuf_alloc for layer PBUF_LINK
2002-11-22 08:32:31 +00:00
likewise
c9bd32d12b
Added SNMP call-outs for monitoring of default SNMP status items for TCP/IP.
2002-11-21 10:32:19 +00:00
likewise
dfe1ab7438
Added debug messages for corner cases of TCP states.
2002-11-21 10:29:51 +00:00
jani
e26a3e347b
change tapif 'MTU' to be 1500 just like the linux tap's MTU
2002-11-19 10:20:19 +00:00
likewise
29f5968c23
Conditionally have ARP queue outgoing pbufs.
2002-11-18 10:30:02 +00:00
likewise
1b798ed6d3
Added PBUF_REF (payload external, copied on queueing).
2002-11-18 09:51:48 +00:00
jani
dbac2ff0b3
Move etharp packed structures to the header file.
2002-11-18 08:41:31 +00:00
jani
f2fbcdf00a
typo fixes.The unterminated comment already got two bugreports so it was time.
2002-11-18 07:36:29 +00:00
jani
b8972f5701
forgot to delete 'return' in the last commit
2002-11-18 06:51:53 +00:00
jani
8b9a303e21
pack the fields in dhcp_msg.This way DHCP works on non-byte aligned archs too.
2002-11-15 15:12:49 +00:00
jani
6ef24c4e48
make it call etharp_output_sent() in tapif_output.This is to prevent the recently
...
discovered memory leak.
2002-11-15 15:08:21 +00:00
jani
428293a69b
make lwip_write() use lwip_send() and avoid code duplication.return copylen
...
in lwip_recvfrom since it has already been chosen as the minimum
of len and buflen.
2002-11-15 15:05:06 +00:00
likewise
1dd7e81df7
DHCP cleanup redux (patch #654 ).
2002-11-15 12:44:50 +00:00
likewise
4beff6c2cf
ETHARP_SNOOP_UPDATES made externally configurable.
2002-11-15 12:41:59 +00:00
jani
58d748a8ad
take out the msvc pragmas that cancel each other.leave only one pair around 3 structs.
2002-11-15 12:32:47 +00:00
adamdunkels
43a06e8e37
The code that increased the retransmission time was commented out for some reason. This has been fixed. Also removed some old, out-commented, code.
2002-11-15 09:40:05 +00:00
jani
8f2284d5c7
reclaimed fields have been unused for a while.remove them.
2002-11-14 12:21:55 +00:00
jani
131eed412a
Fix function names in DEBUGF stataments.Remove reference to "reclaimed" field in stat.
2002-11-14 12:20:37 +00:00
jani
330647dad8
Add SLIP_DEBUG
2002-11-14 10:52:03 +00:00
jani
ecf0f56d33
Fix bug which eats pbufs if SLIP_END comes at a pbuf boundary.Also cleaned up and commented the code.
2002-11-14 08:03:25 +00:00
kieranm
05a91a4725
Change type of members of struct stats_mem to "mem_size_t" (Bug #1694 )
2002-11-13 21:55:38 +00:00
kieranm
4b9e035a9f
Initialize err in tcp_slowtmr to prevent compiler warning.
2002-11-13 21:54:22 +00:00
kieranm
f975754ad9
Initialize err in do_close to prevent compiler warning.
2002-11-13 21:53:36 +00:00
likewise
d31ef42acf
ARP entries can now be updated (but not added) on any ARP traffic. Set #define ETHARP_SNOOP_UPDATES 1 to enable.
2002-11-13 09:10:19 +00:00
likewise
f9129c4dcd
Implemented conditional insertion of ARP entries to update_arp_entry using ARP_INSERT_FLAG.
2002-11-13 08:56:11 +00:00
adamdunkels
1f1e6eb5a1
Fixed a few C style issues to make it compatible with the rest of lwIP.
2002-11-13 08:11:52 +00:00
likewise
2382792792
Fixes all issues that showed up after the first commit.
2002-11-11 15:36:31 +00:00
likewise
8cdeaa5148
Hardware address bytes made unsigned char instead of char, consistent with other sources.
2002-11-11 15:35:18 +00:00
likewise
10bf9ef2ef
ip_output() no longer frees pbuf in case no route could be found.
2002-11-11 14:49:17 +00:00
likewise
bca526b634
Workaround for compile error on TCP_REG. This workaround is disabled by default.
2002-11-11 14:47:26 +00:00
likewise
9b76f5bf53
Fixes all issues that showed up after the first commit.
2002-11-11 14:40:03 +00:00
likewise
e41134bbbe
Note about ethernetif.c not up-to-date with etharp.c API. Fixed typo.
2002-11-11 14:37:30 +00:00
likewise
b9353eaf12
Changed static etharp_query() to support queueing packets. This fix missed in last commit.
2002-11-11 14:34:12 +00:00
likewise
3e62b75529
memp_alloc() now zeroes allocated memory (for robustness). Callers must NOT assume this.
2002-11-11 14:31:00 +00:00
likewise
ad55cb6733
Added pbuf_ref_chain() which increases ref count of all pbufs in a chain.
2002-11-11 11:22:49 +00:00
likewise
6c977ad6ed
Surrounded all #include's for packed structs with #ifdef's.
2002-11-08 22:50:49 +00:00
likewise
2b53babf99
Fixed numerous bugs. Re-used etharp_query() in etharp_output(). Added comments and JavaDoc documentation.
2002-11-08 22:14:24 +00:00
likewise
8077dd838c
Added DHCP client by Leon Woestenberg
2002-11-08 15:57:23 +00:00
proff_fs
c22eaf5f52
Added MSVC6 port.
2002-11-08 12:57:58 +00:00
proff_fs
f1c0bbc62b
Added includeds for bpstruct and epstruct.
...
Ports should update from using PACK_STRUCT_BEGIN and PACK_STRUCT_END to use these includes.
Maybe there should be an PACK_STRUCT_USE_INCLUDES ifdef around these, for ports for which PACK_STRUCT_BEGIN and PACK_STRUCT_END works nicely.
2002-11-08 12:54:43 +00:00
likewise
e988d2ee0b
find_arp_entry() returned 0 instead of ARP_TABLE_SIZE if full pending cache (bug #1625 ).
2002-11-06 11:43:21 +00:00
likewise
72e3d22271
To prevent compiler warnings, added UL to some bit mask constants.
2002-11-06 10:00:32 +00:00
cborrelli
585b250540
added v2pro description; added include/ dir description
2002-11-05 23:27:08 +00:00
cborrelli
a582ccfce8
initial version for Xilinx Virtex-II Pro port
2002-11-05 23:14:33 +00:00
cborrelli
6c979fed40
added ifndef around the TCP_TMR defines so that the user can define these values in the lwipopts.h file if needed; this change will not be seen outside the stack unless the user wants to change the default values.
2002-11-05 18:36:32 +00:00
likewise
bb06293b30
Fixed NULL pointer bug ( #1493 ). Fix for memory leak bug ( #1601 ), etharp_output_sent(). Added etharp_query for DHCP.
2002-11-04 14:56:24 +00:00
adamdunkels
50111c8689
Added #ifdefs around each debug output switch so that those can be defined in lwipopts.h instead.
2002-11-03 13:08:23 +00:00
adamdunkels
01cccf4aee
Reformatted the code to make it consistent with the rest of lwIP.
2002-11-02 20:40:06 +00:00
adamdunkels
4e4da8e019
Added short descriptions of the generic network interface code.
2002-11-02 20:38:49 +00:00
kieranm
8b5fcad039
Added check on entire sequence number of received packet being less than the rcv_nxt variable.
...
(see http://www.sics.se/mailing-lists/lwip.html/msg01409.html )
2002-10-24 13:34:36 +00:00
adamdunkels
aa69784495
Replaced a += (combined addition and assignment) with an explicit assignment and addition to avoid compiler warnings.
2002-10-24 13:20:42 +00:00
kieranm
4933bfaaa0
Fixed bug in duplicate ack handling
...
(see http://www.sics.se/mailing-lists/lwip.html/msg01460.html )
Solution adds check on right window edge when duplicate ack received, if it is different it is not a duplicate.
2002-10-24 13:14:52 +00:00
kieranm
8fe9e007c9
Fixed congestion window bug where the pcb->cwnd variable overflowed when increased.
2002-10-24 10:57:44 +00:00
adamdunkels
05b8bf216c
Added SIO_FIFO_DEBUG and PPP_DEBUG to make -DDEBUG work with arch/unix/netif/sio.c
2002-10-23 20:20:29 +00:00
adamdunkels
faf18b7f9a
Added Author: comment, #ifdef'ed linux specific stuff, added typecast for strlen
2002-10-23 20:18:27 +00:00
adamdunkels
62b78bebe1
Added Author: comment
2002-10-23 20:14:27 +00:00
adamdunkels
43c6a550b2
Added #undefs for htonl and friends to keep compiler from issuing "doubly defined" warnings
2002-10-23 20:00:21 +00:00
adamdunkels
814f8c505e
Updated TCP out-of-sequence handling to use recv_data variable instead of old pcb->recv_data.
2002-10-23 19:58:16 +00:00
adamdunkels
28832ba9c2
Added #if LWIP_UDP around udp_init() body, fixed bug where un-connected UDP PCBs did not always receive correct datagram
2002-10-23 19:44:32 +00:00
likewise
bcb2600107
New file structure towards SLIP/PPP. Renamed tcp_*.c for 8.3 sake.
...
See lwip@sics.se Mon, 21 Oct 2002 magnus.ivarsson
2002-10-22 12:32:58 +00:00
likewise
fecc7424e4
Added redundant brackets in an if statement to keep a flaky compiler happy.
2002-10-20 15:20:30 +00:00
likewise
9ede36a386
Allocate struct tcp_seg *prev, *cseg only if TCP_QUEUE_OOSEQ is defined.
2002-10-20 15:19:20 +00:00
likewise
f06e955072
Initial revision
2002-10-19 12:59:30 +00:00