552 Commits

Author SHA1 Message Date
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
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
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
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
d34851db91 Initial commit of snmp.h function prototypes. 2003-01-27 09:29:07 +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
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
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
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
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
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
jani
ef68392388 renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901 2002-12-18 12:49:01 +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
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
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
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
jani
53148943bd add new header file 2002-11-22 13:18:01 +00:00
jani
a57c91404f add MTU (maximum transmission unit) field to struct netif 2002-11-22 12:52:04 +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
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
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
jani
8f2284d5c7 reclaimed fields have been unused for a while.remove them. 2002-11-14 12:21:55 +00:00
jani
330647dad8 Add SLIP_DEBUG 2002-11-14 10:52:03 +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
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
b9353eaf12 Changed static etharp_query() to support queueing packets. This fix missed in last commit. 2002-11-11 14:34:12 +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
8077dd838c Added DHCP client by Leon Woestenberg 2002-11-08 15:57:23 +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
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
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