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