Commit Graph

1248 Commits

Author SHA1 Message Date
goldsimon
c91caa06d3 Set/get ARP hwlen and protolen in one piece. 2007-06-30 11:42:41 +00:00
goldsimon
6c3c184bc7 Added check to prevent tcp_pcb->snd_queuelen from overflowing. 2007-06-29 17:09:47 +00:00
fbernon
af71292aba Minor fix (extra spaces) 2007-06-29 13:37:33 +00:00
goldsimon
24e29cecae Fixed bug #20287: Fixed nagle algorithm (sending was done too early if a segment contained chained pbufs) 2007-06-28 20:05:38 +00:00
fbernon
ab4c3a326f autoip.c: replace most of rand() calls by a macro LWIP_AUTOIP_RAND which compute a "pseudo-random" value based on netif's MAC and some autoip fields. It's always possible to define this macro in your own lwipopts.h to always use C library's rand(). Note that autoip_create_rand_addr doesn't use this macro. 2007-06-28 18:05:38 +00:00
goldsimon
d73ca29a07 Fixed minor indentation fault 2007-06-28 10:29:13 +00:00
fbernon
d6fbe45296 netifapi.h, netifapi.c, tcpip.h, tcpip.c: Update code to handle the option LWIP_TCPIP_CORE_LOCKING, and do some changes to be coherent with last modifications in api_lib/api_msg (use pointers and not type with table, etc...) 2007-06-28 10:11:05 +00:00
fbernon
dd1cd5e491 sockets.c: process NETCONN_RAW connections with LWIP_TCPIP_CORE_LOCKING=1 2007-06-28 09:56:37 +00:00
goldsimon
2b02db2675 Remove warning in tcp_enqueue (cast from u32_t to u16_t) 2007-06-27 16:42:20 +00:00
goldsimon
6f93a8f091 Set the err_to_errno_table to be const 2007-06-26 17:38:52 +00:00
goldsimon
47074c897e Removed warning: LWIP_DEBUGF had wrong argument count 2007-06-26 08:12:15 +00:00
goldsimon
2270f0d172 Fixed bug #20259: struct udp_hdr was lacking the packin defines. 2007-06-26 07:32:17 +00:00
goldsimon
1b5d3466ba etharp_arp_input: stricter checking of hwtype, proto, hwlen & protolen allows us to leave some header fields like they are when sending ARP reply (only changing the addresses is needed) 2007-06-25 18:03:23 +00:00
goldsimon
dcc2247a90 Fixed bug #20253: icmp_dest_unreach was called with a wrong p->payload for udp packets with no matching pcb. 2007-06-25 17:30:16 +00:00
goldsimon
00b7aeb49b Fixed bug #20220: UDP PCB search in udp_input(): a non-local match could get udp input packets if the remote side matched. 2007-06-25 17:24:31 +00:00
goldsimon
4f5b781b88 Moved filling of ethernet header for outgoing IP packets into an extra function to reduce code size. 2007-06-25 17:20:10 +00:00
goldsimon
b51d1b79a3 Combined etharp_request with etharp_raw for both LWIP_AUTOIP =0 and =1 to remove redundant code. 2007-06-24 12:51:22 +00:00
goldsimon
4848de3a8e etharp_tmr function had a bug (pending entries were pending for too long) 2007-06-24 12:46:13 +00:00
goldsimon
88b1cebe1d Sorry, checked in some of my local changes with the LWIP_ERROR modification! 2007-06-23 13:09:58 +00:00
goldsimon
bb9e9e5480 Changed the expression of LWIP_ERROR to the same as for LWIP_ASSERT 2007-06-22 20:50:21 +00:00
goldsimon
786a7fbaf4 no-pool-big-enough was not correctly caught 2007-06-22 20:26:30 +00:00
goldsimon
0ce27296aa ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined 2007-06-22 20:23:26 +00:00
fbernon
a1d176b643 autoip.h/.c: change autoip_init & autoip_create_rand_addr to use netif's MAC address and tried_llipaddr to generate an "autoip"... 2007-06-22 18:54:34 +00:00
goldsimon
0c18e653e8 Introduced the option MEM_USE_POOLS to use 4 pools with different sized elements instead of a heap. This both prevents memory fragmentation and gives a higher speed at the cost of more memory consumption. Turned off by default. 2007-06-21 20:12:11 +00:00
goldsimon
065b8c945b Added ASSERT to check that lwip_send(to) is not called for length not fitting into u16_t (for UDP & RAW sockets) 2007-06-21 19:58:31 +00:00
goldsimon
f49fc35f55 Converted the length argument of netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into int to be able to send a bigger buffer than 64K with one time (mainly used from lwip_send). 2007-06-21 19:32:26 +00:00
goldsimon
67795ad26e Corrected do_write for LWIP_TCPIP_CORE_LOCKING=1 2007-06-21 19:14:02 +00:00
goldsimon
2aef8bad55 Moved the nagle algorithm from netconn_write/do_write into a define (tcp_output_nagle) in tcp.h to provide it to raw api users, too. 2007-06-21 18:55:09 +00:00
goldsimon
9f05cabf87 Fixed bug #20021: Moved sendbuf-processing in netconn_write from api_lib.c to api_msg.c to also prevent multiple context-changes on low memory or empty send-buffer. 2007-06-21 18:40:21 +00:00
fbernon
4c07b1606c Minor changes: fix some comments for Doygen documentation 2007-06-21 07:17:29 +00:00
goldsimon
d3f0a3211d Changed etharp to use a defined hardware address length of 6 to avoid loading netif->hwaddr_len every time (since this file is only used for ethernet and struct eth_addr already had a defined length of 6). 2007-06-19 16:22:55 +00:00
fbernon
ec7333d406 Some changes for AutoIP integration in tcpip.c, and some comments. 2007-06-19 10:11:27 +00:00
fbernon
6a40426421 Minor fix: warning, type... for patch #5952 : Integration of AutoIP module 2007-06-18 21:45:34 +00:00
goldsimon
c9ebb895a1 Removed warning "empty body in an if statement" in tcp_receive() for LWIP_DEBUG=0 2007-06-18 20:08:31 +00:00
goldsimon
f66bbda8b1 Ooops, checked in a wrong (test-) version before! 2007-06-18 19:52:55 +00:00
goldsimon
da2d9f3733 Shortened some lines to ~80 2007-06-18 19:36:58 +00:00
goldsimon
9e0252b209 Corrected two formatters in LWIP_DEBUGF calls 2007-06-18 19:23:27 +00:00
goldsimon
531ea17088 Forgot to implement getsockopt for SO_NO_CHECK 2007-06-17 19:18:59 +00:00
fbernon
e89f5983be tcp_in.c: Fix bug #20126 : Zero ssthresh bug (by Per-Henrik Lundblom and Kieran Mansley). 2007-06-17 16:15:34 +00:00
goldsimon
6784fd64f3 Done some work on task #6933: converted some LWIP_ASSERTs to LWIP_ERROR to give back an error return value for LWIP_NOASSERT=1 2007-06-17 15:20:21 +00:00
goldsimon
ced2543be0 Done some work on task #6933: converted some LWIP_ASSERTs to LWIP_ERROR to give back an error return value for LWIP_NOASSERT=1 2007-06-17 14:39:50 +00:00
goldsimon
261e92c57b In accept_function, one LWIP_ERROR had a wrong expression (since it is inverted compared to LWIP_ASSERT...) 2007-06-17 14:38:32 +00:00
goldsimon
55bd48dc10 Always align PBUF_POOL_BUFSIZE, pbuf_init is not needed any more, minor changes to meet coding style requirements 2007-06-17 14:36:19 +00:00
goldsimon
96dc30dea2 Done some work on task #1549 (function documentation) 2007-06-17 12:18:11 +00:00
goldsimon
ea7b0052f3 Implemented socket options SO_NO_CHECK for UDP sockets to disable UDP checksum generation on transmit. 2007-06-17 11:46:30 +00:00
goldsimon
1db9013bc4 Done some work on task #1549 (function documentation) 2007-06-16 15:08:47 +00:00
goldsimon
060cbe15d6 Done some work on task #1549 (function documentation), added some LWIP_ERROR checks, don't call pcb_new() from do_bind() and do_connect() since a netconn without pcb can't exist any more (after the recent changes to netconn_new_*()) 2007-06-16 15:07:11 +00:00
goldsimon
8532d0d152 Added comments for the callback functions included in struct tcp_listen_pcb 2007-06-16 15:04:50 +00:00
goldsimon
173e63f01b Minor fix: coding style 2007-06-16 15:03:09 +00:00
goldsimon
066daf21ef Added comments for the callback functions included in structs tcp_pcb, udp_pcb and raw_pcb. 2007-06-16 14:33:37 +00:00