curtmcd
dd314e1bdf
Fix incorrect calculation of dhcp->dns_count.
...
Comment out unused static dhcp_get_option_short() to avoid warning.
2006-06-08 00:16:56 +00:00
curtmcd
1dae102359
Fix debug print, remove reference to TCP_COARSE_TIMEOUT
2006-05-31 21:23:26 +00:00
curtmcd
b306594cad
Remove unused mem_reallocm
2006-05-31 21:23:01 +00:00
curtmcd
b60b7cf8fe
Use isprint() instead of isascii() as it's more common
...
Change return type of inet_aton from s8_t to int (standard)
Touch up comments and white space
2006-05-30 19:09:41 +00:00
curtmcd
6158aa684b
udp_input() operated by removing the IP and UDP headers, putting back
...
the UDP header, then re-removing it. However, pbuf_header() can't add
back the UDP header on pbufs of type PBUF_REF, so these would all get
dropped for bad checksum. This change addresses the problem and
simplifies things by stripping each header just once.
2006-05-26 02:40:54 +00:00
curtmcd
047e3455f7
Improve formatting by fixing wrong indents and lines too long.
2006-05-26 01:36:16 +00:00
christiaans
7fc966dced
Optimized for speed and size. Test against zero for both the inverted and non-inverted address. (old and new-style broadcasts)
2006-04-24 07:26:06 +00:00
curtmcd
680afa4229
memp_memory could be unaligned, causing one buffer in the memp pool to
...
be unaligned, resulting in nasty random data corruption on some CPUs.
Also, clean up the code a little and save a few bytes.
2006-04-12 21:07:44 +00:00
likewise
313743c833
Fix for out-of-sequence FIN handling, patch by Oleg Tychev.
2006-04-08 00:36:25 +00:00
likewise
6cb19d7e34
Dangling inseg.p pointer fix by Pedro Alves.
2006-04-08 00:13:49 +00:00
christiaans
c9db715bae
addr->addr test size and speed optimalisation (helping a dumb compiler)
2006-04-04 07:21:54 +00:00
christiaans
94abf9d935
Added LWIP_PLATFORM_BYTESWAP optimalisation flag and macro glue.
2006-03-29 10:15:43 +00:00
christiaans
d9b4ab1658
Pbuf flag test size and speed optimalisation (helping a dumb compiler).
2006-03-28 15:06:33 +00:00
christiaans
61dc2e7dd5
Added pbuf_alloc() return value checks in ip_frag().
2006-03-03 11:25:36 +00:00
christiaans
11a820458f
Increased ip_reassbitmap size with 1, added assertions to catch boundary cases.
...
Beautified indentation again.
2006-03-02 15:45:19 +00:00
likewise
0b3b713123
Removed 'even sndbuf' fix in TCP, this fix was a ugly hack for the incomplete checksum routine that does not work now that the checksum routine is fixed.
2006-03-01 16:53:41 +00:00
likewise
db76ca248b
2006-02-27 Merged patch by Curt McDowell
...
pbuf.c: Fix alignment; pbuf_init() would not work unless pbuf_pool_memory[] is properly aligned.
2006-02-27 14:11:19 +00:00
christiaans
3aea7bc053
Removed timer dependency on sys.c (raw-API). Beautified indentation.
2006-02-13 08:12:07 +00:00
christiaans
6c8850698d
Small optimalization for udp_input().
2006-01-02 12:06:02 +00:00
likewise
f8663a7129
Remove PCBs which stay in LAST_ACK state too long.
2005-12-20 11:03:18 +00:00
christiaans
60dc1c22f7
Disabled the added summing routine to preserve code space, fixed some comments.
2005-12-15 08:26:00 +00:00
likewise
02b575e9e4
Added Curt McDowell's platform-independent optimized checksum routine.
2005-12-14 22:51:35 +00:00
likewise
6facaf8f05
Trailing dangling byte in checksum should be considered MSB.
2005-12-14 22:29:03 +00:00
likewise
319a972e75
Duplicate FIN ACK race condition fix by Kelvin Lawson.
2005-12-14 21:58:14 +00:00
christiaans
61cdbb30a6
Added some more fixes to the lwip_standard_chksum() comments.
2005-12-14 12:55:12 +00:00
likewise
e1dcfcbb76
Updated comment on optimization and aim of this generic algorithm.
2005-12-12 09:32:05 +00:00
christiaans
43d448e73f
Fixed lwip_standard_chksum() for unaligned memory access. Verified to work on c16x and BSD on P4.
2005-12-09 08:59:08 +00:00
christiaans
33fbb06604
Fixed void ptr address increment bug reported by Bertrik Sikken.
2005-11-25 12:23:03 +00:00
christiaans
e1b215aa73
Introduced cc.h formatters and removed SO_REUSE from transport layers.
2005-11-25 12:03:38 +00:00
likewise
f05d392920
Unaligned 16-bit access fix for the standard checksum routine by Peter Jolasson.
2005-07-17 15:30:27 +00:00
likewise
baf377679a
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* tcp_in.c: Send reset on unexpected ACK in two cases. Fix submitted by olaf.peters@technolution.
2005-06-08 18:57:05 +00:00
likewise
f9355136d8
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* udp.c: Fixed memory leak; when ip_route() failed, a possibly allocated q was never de-allocated. Fixed by called ip_route() before allocating q.
2005-06-08 18:35:00 +00:00
likewise
533fc217d4
4 February 2004, Leon Woestenberg <leon.woestenberg@gmx.net>
...
tcp_in.c: Applied fix patch for bug #2679 .
tcp_out.c: Applied fix patch for bug #2679 .
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=2679
2005-02-04 13:43:13 +00:00
likewise
3160488352
queue was referenced before initialization in first goto memerr branch code. Replaced goto branch by its minimal equivalent error handling code.
2005-02-04 13:28:50 +00:00
likewise
8579e4144f
More robust DHCP ARP reply checking.
2005-01-24 23:02:29 +00:00
likewise
6880fa62f8
Added some missing string.h includes.
2005-01-24 21:05:47 +00:00
likewise
86c774443c
Fixed missing semicolon in LWIP_DEBUG statement.
2005-01-04 12:20:25 +00:00
likewise
3b715f4602
3 January 2004, Leon Woestenberg <leon.woestenberg@gmx>
...
udp.c: pcb->recv() callback was called even when it was NULL.
2005-01-03 17:54:21 +00:00
likewise
a549ec0382
Added inline source documentation.
2004-12-27 14:42:02 +00:00
likewise
c61f01b206
tcp_write(): optimize order of valid states checks, most common first.
...
added assertion: when the queues are NULL, queuelen must be zero.
remove ACK flags from a PCB, only when we could succesfully sent
an empty ACK packet.
2004-12-26 01:36:37 +00:00
christiaans
089378ef87
christiaans: cosmetic change debug formatters as requested by Tom.
2004-12-07 08:16:27 +00:00
likewise
f3def542ee
Compile dammit
2004-11-25 14:03:31 +00:00
likewise
aa249922df
Removed redundant closing bracket.
2004-11-25 13:59:06 +00:00
likewise
37a0c57bed
2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* ip.c: Exploit the fact that ip_addr_isbroadcast() now checks that the
given IP address actually belongs to the network of the given interface.
2004-11-25 13:57:05 +00:00
likewise
90b7e68b4e
Removed the Smurf.
2004-11-25 13:52:34 +00:00
likewise
fd49ee3c8d
2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* ipv4/ip_addr.h: Renamed ip_addr_maskcmp() to _netcmp() as we are
comparing network addresses (identifiers), not the network masks
themselves.
* ipv4/ip_addr.c: ip_addr_isbroadcast() now checks that the given
IP address actually belongs to the network of the given interface.
2004-11-25 13:33:07 +00:00
likewise
ae4955f59e
Replaced erronous LWIP_ERRORF with LWIP_DEBUGF
2004-11-25 11:23:37 +00:00
likewise
fab107a9df
DECLINE message was unicast instead of broadcast
2004-11-25 11:10:53 +00:00
kieranm
bb87d19e84
Kieran Mansley - kjm25@cam.ac.uk - 24th Nov 2004
...
* Increase pcb->snd_buf by 1 when an ACK is received in SYN_SENT state to ensure correct operation
2004-11-24 17:05:41 +00:00
kieranm
64aa4c716d
Kieran Mansley - kjm25@cam.ac.uk - 24th Nov 2004
...
* Increased argument checking at start of pbuf_queue() and made resulting errors more verbose
2004-11-24 17:03:03 +00:00
likewise
791fa28817
Removed static declaration of dhcp_release().
2004-11-04 19:19:29 +00:00
kieranm
751557bcbf
16th October 2004 - Kieran Mansley - kjm25@cam.ac.uk
...
- Add code to tcp_recved() to send an ACK (window update)
immediately, even if one is already pending, if the rcv_wnd is above a
threshold (currently TCP_WND/2)
- This avoids waiting for a timer to expire to send a delayed ACK in
order to open the window if the stack is only receiving data.
2004-10-16 12:57:52 +00:00
likewise
0ad7ea16d2
Bring interface up/down with netif_set_up/down(). Fixes bug 10547.
2004-10-14 11:57:53 +00:00
kieranm
4cb8192c1d
Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004
...
* Corrected "out by one" error on one of the TCP_SEQ_BETWEEN macro calls introduced recently
2004-09-20 16:53:48 +00:00
kieranm
2ed5bc5195
Kieran Mansley - kjm25@cam.ac.uk - 12th September 2004
...
Applied patch from Sam Jansen as detailed in
http://lists.gnu.org/archive/html/lwip-users/2004-07/msg00106.html
to correctly handle retransmission after a retransmission timeout
2004-09-12 16:34:06 +00:00
kieranm
fae1397468
Rename lwip_chksum and add LWIP_CHKSUM macro so that ports can "override" the standard implementation with one of their own.
2004-09-12 16:17:58 +00:00
kieranm
e871548772
Fixed typo (missing "{") in previous checkin
2004-09-12 16:03:54 +00:00
kieranm
a3d27e30e0
Add TCP_SEQ_BETWEEN macro for comparing a range of sequence numbers
2004-09-12 15:56:12 +00:00
likewise
b9ebcd7738
Ingress TCP keep-alive with garbage byte support.
2004-08-17 09:32:31 +00:00
softins
1fa0d66f15
Stop compiler complaining of empty if statement when LWIP_DEBUGF() empty.
2004-07-27 16:08:26 +00:00
softins
4680307a34
Stop compiler complaining of empty if statement when LWIP_DEBUGF() empty.
...
Close an unclosed comment.
2004-07-27 16:08:05 +00:00
softins
1da6c35a6d
Added a couple of casts to quiet the compiler.
...
No need to test isascii(c) before isdigit(c) or isxdigit(c).
2004-07-27 14:43:58 +00:00
likewise
7c427a4dce
Made some comments more explicit.
2004-07-25 23:41:01 +00:00
likewise
c2abae538b
pbuf_free() assert triggered by NULLified inseg.p. Reported by Karl Jeacle on 25-7-2004 on lwip-users.
2004-07-25 23:17:07 +00:00
kieranm
eb69032773
Kieran Mansley - kjm25@cam.ac.uk - 23rd July 2004
...
Now handle CLOSED state in tcp_close() explicitely, and free the pcb.
This is for the case that a pcb has been allocated but never used (so
is in the default "CLOSED" state) and needs to be freed.
2004-07-23 13:07:00 +00:00
likewise
fb5452910f
I hate it when it takes twice to fix a typo
2004-07-22 22:10:17 +00:00
likewise
a6d37fcb25
Removed copy-paste errors.
2004-07-22 22:07:00 +00:00
likewise
786cbee510
Support for learning DNS servers through DHCP.
2004-07-22 21:56:09 +00:00
softins
a4f5673ff3
Small corrections to some debugging statements, to pacify compiler.
2004-07-22 08:06:00 +00:00
softins
1121f2b7f7
Made data types consistent in inet_ntoa().
...
Added casts for return values of checksum routines, to pacify compiler.
2004-07-22 08:03:02 +00:00
softins
d7699ca81d
Changed debug statements to use the tidier ip4_addrN() macros.
2004-07-21 09:23:11 +00:00
likewise
58b64d42f1
Additional fix for TCP retransmit fix (as discussed by Sam Jansen en Kieran Mansley on lwip-devel, July 13 2004).
2004-07-14 23:21:53 +00:00
likewise
a6ab0405ea
Disabled some code by #if 0 #endif rather than /* */.
2004-07-14 23:19:08 +00:00
kieranm
8273b54108
Kieran Mansley - 14th July 2004
...
* Only move a single segment from the unacked queue to the unsent queue when performing a retransmit
2004-07-14 09:48:27 +00:00
kieranm
c356f560e8
Kieran Mansley - 14th July 2004
...
* Fixed whitespace indenting in parts of tcp_in.c
* Changed adjustment of ssthresh in response to fast retransmit
* Commented out iteration of unsent list when new ACK received as we no longer put all unacked data on unsent list when retransmitting
2004-07-14 09:45:01 +00:00
likewise
7524893802
Dependencies on C library memset() etc., so include <string.h>.
2004-07-04 23:43:38 +00:00
likewise
07f52b4b96
Fixed compile errors.
2004-06-30 22:14:03 +00:00
likewise
0be3598990
Style fixes.
2004-06-30 18:42:54 +00:00
likewise
c3284c30cd
Make restarting() DHCP on on interface more robust by cleaning old state information.
2004-06-30 18:42:33 +00:00
likewise
31c1e72b8c
ip_forward() returns netif on which packet was forwarded.
2004-06-30 18:39:17 +00:00
likewise
d11fcafad8
Added netif up/down basics.
2004-06-30 18:38:07 +00:00
kieranm
27c6d299cf
Kieran Mansley - kjm25@cam.ac.uk - 30th May 2004
...
* Fixed bug #9160 after discussion on mailing list
- alters use of MEM_ALIGN_SIZE in pbuf_alloc when calling mem_malloc for a PBUF_RAM pbuf
2004-05-30 14:04:30 +00:00
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
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
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
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
likewise
a5148c14a1
Fixed use of struct ip_addr in DHCP header.
2004-04-30 01:00:21 +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
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
237b5a2467
Fix in the ip_addr_isbroadcast() check.
2004-04-23 16:45:06 +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
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
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
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
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
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
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
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
e4a6d199fe
Merged from DEVEL into main tree.
2003-11-14 13:17:23 +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
bbc33080e7
Merged from DEVEL.
2003-06-19 11:15:39 +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
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
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
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
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
398bf575d9
C++ comments cleanup
2003-05-06 12:15:08 +00:00
likewise
03bc7c868b
Major stylo search/replace for "One space between keyword and opening bracket."
2003-05-01 13:24:01 +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
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
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
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
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
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
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
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
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