]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/log
pes-rpp/rpp-lwip.git
21 years agopatches 1492, 1493 and 1494 from Marc
jani [Mon, 19 May 2003 14:41:54 +0000 (14:41 +0000)]
patches 1492, 1493 and 1494 from Marc

21 years agoApplied patches posted by Marc Boucher on lwip-users May 18th 2003.
likewise [Sun, 18 May 2003 22:29:10 +0000 (22:29 +0000)]
Applied patches posted by Marc Boucher on lwip-users May 18th 2003.

21 years agoadd sio_read and sio_write to beused by PPP
jani [Tue, 6 May 2003 12:20:57 +0000 (12:20 +0000)]
add sio_read and sio_write to beused by PPP

21 years agoempty lightweight protection macros defined not only for no_sys
jani [Tue, 6 May 2003 12:19:53 +0000 (12:19 +0000)]
empty lightweight protection macros defined not only for no_sys

21 years agoC++ comments cleanup
jani [Tue, 6 May 2003 12:15:08 +0000 (12:15 +0000)]
C++ comments cleanup

21 years agofix format warning
jani [Tue, 6 May 2003 12:13:34 +0000 (12:13 +0000)]
fix format warning

21 years agosimplify MEM_ALIGN_SIZE macro
jani [Tue, 6 May 2003 11:24:42 +0000 (11:24 +0000)]
simplify MEM_ALIGN_SIZE macro

21 years agoMade pbuf flags unsigned. Added "incoming broadcast" flag.
likewise [Sat, 3 May 2003 09:44:09 +0000 (09:44 +0000)]
Made pbuf flags unsigned. Added "incoming broadcast" flag.

21 years agoMajor stylo search/replace for "One space between keyword and opening bracket."
likewise [Thu, 1 May 2003 13:24:01 +0000 (13:24 +0000)]
Major stylo search/replace for "One space between keyword and opening bracket."

21 years agoadd PPP_DEBUG option and align all options to teh same colums using spaces and no...
jani [Thu, 1 May 2003 09:36:08 +0000 (09:36 +0000)]
add PPP_DEBUG option and align all options to teh same colums using spaces and no tabs.closes patch #1306 too

21 years agoPatch #1308. Disabled, as one issue in dhcp.c (file field overloading) needs fix.
likewise [Thu, 1 May 2003 09:03:20 +0000 (09:03 +0000)]
Patch #1308. Disabled, as one issue in dhcp.c (file field overloading) needs fix.

21 years agoFixed packet header debug formatters.
likewise [Thu, 1 May 2003 08:37:24 +0000 (08:37 +0000)]
Fixed packet header debug formatters.

21 years agoPatch #1183 applied. This drops short ICMP packets.
likewise [Thu, 1 May 2003 08:29:54 +0000 (08:29 +0000)]
Patch #1183 applied. This drops short ICMP packets.

21 years agoPatch #1183 applied. This drops short UDP/TCP packets.
likewise [Thu, 1 May 2003 08:03:51 +0000 (08:03 +0000)]
Patch #1183 applied. This drops short UDP/TCP packets.

21 years agoPatch #1308. Still disabled, as it needs to make sure no file field is not overloaded.
likewise [Thu, 1 May 2003 08:00:41 +0000 (08:00 +0000)]
Patch #1308. Still disabled, as it needs to make sure no file field is not overloaded.

21 years agoImplemented packet (de)queueing. Unused, etharp.c must be adapted next.
likewise [Thu, 1 May 2003 07:48:01 +0000 (07:48 +0000)]
Implemented packet (de)queueing. Unused, etharp.c must be adapted next.

21 years agoAdded dummy parameters for the empty macros snmp_add_ifinoctets and
anderscarlman [Sun, 27 Apr 2003 09:51:59 +0000 (09:51 +0000)]
Added dummy parameters for the empty macros snmp_add_ifinoctets and
snmp_add_ifoutoctets in order to avoid compiler warnings.

21 years agoRe-added code for checking tail-parameter for NULL in
anderscarlman [Sat, 26 Apr 2003 20:32:23 +0000 (20:32 +0000)]
Re-added code for checking tail-parameter for NULL in
pbuf_chain() to provide for better backward compatibility.

21 years agoMentioned changes to netif that imply changes for network drivers.
likewise [Fri, 25 Apr 2003 13:23:10 +0000 (13:23 +0000)]
Mentioned changes to netif that imply changes for network drivers.

21 years agoEither first or last packet can be queued through ARP_QUEUE_FIRST option.
likewise [Tue, 22 Apr 2003 15:09:56 +0000 (15:09 +0000)]
Either first or last packet can be queued through ARP_QUEUE_FIRST option.

21 years agoEither first or last packet can be queued. Fixed (err_t)NULL return value in etharp_q...
likewise [Tue, 22 Apr 2003 15:08:47 +0000 (15:08 +0000)]
Either first or last packet can be queued. Fixed (err_t)NULL return value in etharp_query().

21 years agoadd definitions for PF_UNSPEC and IPPROTO_IP
jani [Tue, 22 Apr 2003 13:37:14 +0000 (13:37 +0000)]
add definitions for PF_UNSPEC and IPPROTO_IP

21 years agoFixed tabs into spaces. Fixed other stylos.
likewise [Wed, 16 Apr 2003 07:39:48 +0000 (07:39 +0000)]
Fixed tabs into spaces. Fixed other stylos.

21 years agoobsolete PCB handling only active when TCP is enabled
jani [Tue, 15 Apr 2003 14:58:35 +0000 (14:58 +0000)]
obsolete PCB handling only active when TCP is enabled

21 years agoalignment fix from Marc Boucher
jani [Tue, 15 Apr 2003 14:56:03 +0000 (14:56 +0000)]
alignment fix from Marc Boucher

21 years agoMention DHCP fix.
likewise [Tue, 15 Apr 2003 14:43:36 +0000 (14:43 +0000)]
Mention DHCP fix.

21 years agoStylo.
likewise [Tue, 15 Apr 2003 14:40:55 +0000 (14:40 +0000)]
Stylo.

21 years agoChanged netif name formatting from %s to %c%c.
likewise [Tue, 15 Apr 2003 14:32:13 +0000 (14:32 +0000)]
Changed netif name formatting from %s to %c%c.

21 years agohexadecimal notation for NETIF_FLAGS_
likewise [Tue, 15 Apr 2003 12:44:15 +0000 (12:44 +0000)]
hexadecimal notation for NETIF_FLAGS_

21 years agoDebug levels set on some serious debug messages.
likewise [Tue, 15 Apr 2003 12:43:15 +0000 (12:43 +0000)]
Debug levels set on some serious debug messages.

21 years agoPrevent compiler warning on unused function arguments.
likewise [Tue, 15 Apr 2003 12:41:52 +0000 (12:41 +0000)]
Prevent compiler warning on unused function arguments.

21 years agoDebug message shows requested pbuf type (of ROM/REF) upon memory allocation failure.
likewise [Tue, 15 Apr 2003 12:38:48 +0000 (12:38 +0000)]
Debug message shows requested pbuf type (of ROM/REF) upon memory allocation failure.

21 years agodhcp_inform() did not set and unset netif->dhcp. always generated assert failure.
likewise [Tue, 15 Apr 2003 12:37:06 +0000 (12:37 +0000)]
dhcp_inform() did not set and unset netif->dhcp. always generated assert failure.

21 years agoPrevent warnings about unused function arguments.
likewise [Tue, 15 Apr 2003 11:27:52 +0000 (11:27 +0000)]
Prevent warnings about unused function arguments.

21 years agoAgain accepted NULL to indicate IP_ADDR_ANY.
likewise [Tue, 15 Apr 2003 09:16:39 +0000 (09:16 +0000)]
Again accepted NULL to indicate IP_ADDR_ANY.

21 years agoAdded NETIF_FLAG_LINK_UP. Not used yet.
likewise [Mon, 14 Apr 2003 12:29:45 +0000 (12:29 +0000)]
Added NETIF_FLAG_LINK_UP. Not used yet.

21 years agoDisabled pbuf_dechain() as it not currently in use.
likewise [Mon, 14 Apr 2003 12:17:08 +0000 (12:17 +0000)]
Disabled pbuf_dechain() as it not currently in use.

21 years agoDisabled pbuf_dechain() as it not currently in use. Fixed comment position.
likewise [Mon, 14 Apr 2003 11:37:12 +0000 (11:37 +0000)]
Disabled pbuf_dechain() as it not currently in use. Fixed comment position.

21 years agoStronger debugging/assertion.
likewise [Mon, 14 Apr 2003 11:36:17 +0000 (11:36 +0000)]
Stronger debugging/assertion.

21 years agoRemoved the lines setting dhcp->msg_in and dhcp->options_in to NULL, since this is...
anderscarlman [Sat, 12 Apr 2003 15:40:43 +0000 (15:40 +0000)]
Removed the lines setting dhcp->msg_in and dhcp->options_in to NULL, since this is done implicitly through dhcp_free_reply().

21 years agoGot rid of pbuf_pool_alloc_cache and pbuf_pool_free_cache. Also got rid of
davidhaas [Fri, 11 Apr 2003 14:39:15 +0000 (14:39 +0000)]
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.

21 years agoAll debug messages now show actual config _after_ setting netif config.
likewise [Fri, 11 Apr 2003 14:02:48 +0000 (14:02 +0000)]
All debug messages now show actual config _after_ setting netif config.

21 years agoFixed debug message for PBUF_REF/ROM allocation failure.
likewise [Fri, 11 Apr 2003 12:56:13 +0000 (12:56 +0000)]
Fixed debug message for PBUF_REF/ROM allocation failure.

21 years agoMacro IP_ADDR_ are cast non-const as lots of functions miss const qualifier for argum...
likewise [Fri, 11 Apr 2003 08:45:15 +0000 (08:45 +0000)]
Macro IP_ADDR_ are cast non-const as lots of functions miss const qualifier for arguments.

21 years agoip_addr_any and _broadcast are type-declared as being const.
likewise [Fri, 11 Apr 2003 08:10:17 +0000 (08:10 +0000)]
ip_addr_any and _broadcast are type-declared as being const.

21 years agoUpdated changelog to reflect some recent changes.
likewise [Thu, 10 Apr 2003 08:51:58 +0000 (08:51 +0000)]
Updated changelog to reflect some recent changes.

21 years agoFix memory leaks.
davidhaas [Wed, 9 Apr 2003 20:28:15 +0000 (20:28 +0000)]
Fix memory leaks.

When pbufs are chained, the second pbuf must be freed, if no higher level
application refers to it any longer.

21 years agoMade memory stats more accurate (real amount and max amount of memory used).
davidhaas [Wed, 9 Apr 2003 20:19:27 +0000 (20:19 +0000)]
Made memory stats more accurate (real amount and max amount of memory used).

Also fixed a protection bug which occurred when memory allocation failed.

21 years agoFixed bug where tearing down a connection would cause loss of memory.
davidhaas [Wed, 9 Apr 2003 20:12:12 +0000 (20:12 +0000)]
Fixed bug where tearing down a connection would cause loss of memory.

21 years agoFirst attempt to track/explain changes that happened in CVS tree.
likewise [Wed, 9 Apr 2003 15:22:11 +0000 (15:22 +0000)]
First attempt to track/explain changes that happened in CVS tree.

21 years agoEnabled code to abort/replace TCP pcbs upon netif address change.
likewise [Wed, 9 Apr 2003 15:17:57 +0000 (15:17 +0000)]
Enabled code to abort/replace TCP pcbs upon netif address change.

21 years agoAdded (non-active) code handling pcbs upon changing IP address.
likewise [Tue, 8 Apr 2003 12:19:02 +0000 (12:19 +0000)]
Added (non-active) code handling pcbs upon changing IP address.

21 years agoTCP data can be safely referenced as PBUF_ROM instead of PBUF_REF.
likewise [Mon, 7 Apr 2003 21:28:16 +0000 (21:28 +0000)]
TCP data can be safely referenced as PBUF_ROM instead of PBUF_REF.

21 years agoinitial PPP options
jani [Mon, 7 Apr 2003 08:54:18 +0000 (08:54 +0000)]
initial PPP options

21 years agoFixed bug #3112 (faulty behaviour calling tcp_listen() when already listening)
likewise [Sun, 6 Apr 2003 20:35:50 +0000 (20:35 +0000)]
Fixed bug #3112 (faulty behaviour calling tcp_listen() when already listening)

21 years agoAdded debugging to verify correct result of udp_bind() / udp_connect().
likewise [Fri, 4 Apr 2003 08:14:49 +0000 (08:14 +0000)]
Added debugging to verify correct result of udp_bind() / udp_connect().

21 years agoFixed stylo.
likewise [Fri, 4 Apr 2003 08:14:04 +0000 (08:14 +0000)]
Fixed stylo.

21 years agoOnly changes to comments.
likewise [Thu, 3 Apr 2003 19:11:02 +0000 (19:11 +0000)]
Only changes to comments.

21 years agoPrint debug message before actually changing netif IP address config.
likewise [Thu, 3 Apr 2003 12:09:39 +0000 (12:09 +0000)]
Print debug message before actually changing netif IP address config.

21 years agoUpdated to reflect current practice and URLs.
likewise [Thu, 3 Apr 2003 09:37:41 +0000 (09:37 +0000)]
Updated to reflect current practice and URLs.

21 years agoIn pbuf_take(): Got rid of variable 'f'. Fixed stylo (typo in style). Renamed 'top...
likewise [Thu, 3 Apr 2003 08:50:57 +0000 (08:50 +0000)]
In pbuf_take(): Got rid of variable 'f'. Fixed stylo (typo in style). Renamed 'top' to 'head'.

21 years agoUpdated sys_arch documentation to make new timeouts clearer.
davidhaas [Wed, 2 Apr 2003 15:21:56 +0000 (15:21 +0000)]
Updated sys_arch documentation to make new timeouts clearer.

21 years agoFixed last change to pbuf_take. There were two calls to pbuf_free in a row.
davidhaas [Tue, 1 Apr 2003 15:54:25 +0000 (15:54 +0000)]
Fixed last change to pbuf_take. There were two calls to pbuf_free in a row.

21 years agoFixed ip_addr_set() to deal with IP_ADDR_ANY. Added "ip_addr.h" include.
likewise [Tue, 1 Apr 2003 15:00:26 +0000 (15:00 +0000)]
Fixed ip_addr_set() to deal with IP_ADDR_ANY. Added "ip_addr.h" include.

21 years agoAdded assertion checking against dupes in pcb active list. Added comments.
likewise [Tue, 1 Apr 2003 14:52:41 +0000 (14:52 +0000)]
Added assertion checking against dupes in pcb active list. Added comments.

21 years agoIP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
likewise [Tue, 1 Apr 2003 14:50:00 +0000 (14:50 +0000)]
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
For easier debugging of IP addresses.

21 years agoIP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
likewise [Tue, 1 Apr 2003 14:49:37 +0000 (14:49 +0000)]
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).

21 years agoetharp_query() has error return type now. Matched dhcp.c with this change.
likewise [Tue, 1 Apr 2003 14:02:50 +0000 (14:02 +0000)]
etharp_query() has error return type now. Matched dhcp.c with this change.
Added debug messages in other places.

21 years agoAdded source code self documentation guidelines.
likewise [Tue, 1 Apr 2003 13:34:56 +0000 (13:34 +0000)]
Added source code self documentation guidelines.

21 years agoFixed another assert. Removed another redundant assignment.
likewise [Tue, 1 Apr 2003 12:28:45 +0000 (12:28 +0000)]
Fixed another assert. Removed another redundant assignment.

21 years agoLots of comments added. Removed redundant assignment. Moved assertion.
likewise [Tue, 1 Apr 2003 12:17:55 +0000 (12:17 +0000)]
Lots of comments added. Removed redundant assignment. Moved assertion.

21 years agoReverted back to David Haas' patch of pbuf_chain() from 1.34.
likewise [Tue, 1 Apr 2003 09:35:20 +0000 (09:35 +0000)]
Reverted back to David Haas' patch of pbuf_chain() from 1.34.

21 years agoReplaced pbuf.c 1.34 pbuf_take() change by simpler alternative.
likewise [Mon, 31 Mar 2003 23:28:54 +0000 (23:28 +0000)]
Replaced pbuf.c 1.34 pbuf_take() change by simpler alternative.

21 years agoIn keeping with pbuf->ref always having the count of the number of pointers
davidhaas [Mon, 31 Mar 2003 22:09:39 +0000 (22:09 +0000)]
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.

21 years agoFixed issue in pbuf_take(): old pbuf of type PBUF_REF was being referenced
davidhaas [Mon, 31 Mar 2003 21:32:30 +0000 (21:32 +0000)]
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.

21 years agoFix pbuf_chain() to update tot_len of last buffer in first chain properly.
davidhaas [Mon, 31 Mar 2003 20:45:08 +0000 (20:45 +0000)]
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).

21 years agopbuf_header() now only moves payload pointer upwards for PBUF_ROM/REF.
likewise [Mon, 31 Mar 2003 18:48:52 +0000 (18:48 +0000)]
pbuf_header() now only moves payload pointer upwards for PBUF_ROM/REF.

21 years agoFixed pbuf_dechain() assertion. Removed old documentation from pbuf.h.
likewise [Mon, 31 Mar 2003 11:39:48 +0000 (11:39 +0000)]
Fixed pbuf_dechain() assertion. Removed old documentation from pbuf.h.

21 years agoDocumentation changes. Added missing trailing newlines to debug messages.
likewise [Mon, 31 Mar 2003 10:32:35 +0000 (10:32 +0000)]
Documentation changes. Added missing trailing newlines to debug messages.

21 years agoFixed bug in mem_realloc (check alignment of size)
kieranm [Mon, 31 Mar 2003 09:36:18 +0000 (09:36 +0000)]
Fixed bug in mem_realloc (check alignment of size)

21 years agoFixed bug in do_delcon (set tcp_arg to NULL)
kieranm [Mon, 31 Mar 2003 09:35:47 +0000 (09:35 +0000)]
Fixed bug in do_delcon (set tcp_arg to NULL)

21 years agoFixed bug in netconn_peer (test pcb for NULL before accessing)
kieranm [Mon, 31 Mar 2003 09:34:56 +0000 (09:34 +0000)]
Fixed bug in netconn_peer (test pcb for NULL before accessing)

21 years agoFixed missing variable.
likewise [Mon, 31 Mar 2003 08:34:02 +0000 (08:34 +0000)]
Fixed missing variable.

21 years agoBetter error handling. Added debug messages for serious errors.
likewise [Mon, 31 Mar 2003 08:02:52 +0000 (08:02 +0000)]
Better error handling. Added debug messages for serious errors.

21 years agoAdded debug messages for serious errors.
likewise [Mon, 31 Mar 2003 08:00:01 +0000 (08:00 +0000)]
Added debug messages for serious errors.

21 years agoInitial start with source code and documentation style guidelines.
likewise [Sun, 30 Mar 2003 22:57:52 +0000 (22:57 +0000)]
Initial start with source code and documentation style guidelines.

21 years agoCorrected more pbuf.c functions to comply with pbuf->ref and ->tot_len invariant.
likewise [Sun, 30 Mar 2003 22:24:10 +0000 (22:24 +0000)]
Corrected more pbuf.c functions to comply with pbuf->ref and ->tot_len invariant.

21 years agoRemoved the pbuf_dechain() from udp_send() matching new pbuf code.
likewise [Sun, 30 Mar 2003 00:39:03 +0000 (00:39 +0000)]
Removed the pbuf_dechain() from udp_send() matching new pbuf code.

21 years agoMade lwip timeout measurements accurate by no longer returning 1 millisecond
davidhaas [Fri, 28 Mar 2003 20:46:40 +0000 (20:46 +0000)]
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.

21 years agoFixed minor compile issues.
davidhaas [Fri, 28 Mar 2003 19:45:37 +0000 (19:45 +0000)]
Fixed minor compile issues.

21 years agoFixed bugs #2968 (ref count) and #2670 (total length).
likewise [Fri, 28 Mar 2003 08:49:05 +0000 (08:49 +0000)]
Fixed bugs #2968 (ref count) and #2670 (total length).
Name of pbuf_unref() falsely suggests to undo pbuf_ref(), renamed to pbuf_take().

21 years agopbuf_realloc() did not update ->tot_len in a chain. Fixed dealloc of REF/ROMs.
likewise [Wed, 26 Mar 2003 13:50:03 +0000 (13:50 +0000)]
pbuf_realloc() did not update ->tot_len in a chain. Fixed dealloc of REF/ROMs.

21 years agoFixing bug #1903 with a new pbuf_realloc() that respects mixed-type chains.
likewise [Wed, 26 Mar 2003 13:30:38 +0000 (13:30 +0000)]
Fixing bug #1903 with a new pbuf_realloc() that respects mixed-type chains.

21 years agoStrong assert checking against queueing behaviour in udp_send().
likewise [Wed, 26 Mar 2003 10:59:31 +0000 (10:59 +0000)]
Strong assert checking against queueing behaviour in udp_send().

21 years agomore suggestions
jani [Wed, 26 Mar 2003 10:36:00 +0000 (10:36 +0000)]
more suggestions

21 years agoFixed typo affecting debugging.
likewise [Wed, 26 Mar 2003 00:31:55 +0000 (00:31 +0000)]
Fixed typo affecting debugging.

21 years agoBrackets around debug in DEBUGF. Cleaned comments.
likewise [Wed, 26 Mar 2003 00:31:24 +0000 (00:31 +0000)]
Brackets around debug in DEBUGF. Cleaned comments.

21 years agoAdded documentation and comments.
likewise [Tue, 25 Mar 2003 12:59:42 +0000 (12:59 +0000)]
Added documentation and comments.

21 years agoNew tail section of udp_send() that handles both queued and unqueued cases.
likewise [Tue, 25 Mar 2003 12:58:22 +0000 (12:58 +0000)]
New tail section of udp_send() that handles both queued and unqueued cases.

21 years agoTypo bug. The wrong semaphore was being signalled.
davidhaas [Mon, 24 Mar 2003 15:53:38 +0000 (15:53 +0000)]
Typo bug. The wrong semaphore was being signalled.