Commit Graph

  • 20667e5163 Added debug levels for some serious errors (out of memory). likewise 2003-03-24 10:29:03 +0000
  • 74f2b5e5f7 some guidelines for contributors jani 2003-03-24 09:00:14 +0000
  • 96f2e162ef Fixed memory leak caused by my last pbuf_ref change. davidhaas 2003-03-21 23:01:20 +0000
  • 859f06a91e if LWIP_TCP is 0 do not link in TCP code.putting ugly ifdefs in api and core :(.Also only udp_init if LWIP_UDP is on jani 2003-03-21 10:48:21 +0000
  • 9cafc7a764 avoid compiler warning jani 2003-03-21 10:34:47 +0000
  • 32d9f25a6f Fixed up and made work a PBUF_REF type. Most of the code uses this now instead of PBUF_ROM. This addition allows support of copy-on-demand where the lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and replaces them with PBUF_POOL buffers. This is now used everywhere. pbuf_unref() is called in ARP queueing and in the coldfire driver, which puts frames on a DMA queue and frees them later. davidhaas 2003-03-19 22:14:49 +0000
  • 2f7e4bd587 patch 1197 form floriZ.When debug is on and port is 0 in udp_bind ERR_USE is always returned due to missing braces.Reindent that part of code while at it jani 2003-03-19 16:04:54 +0000
  • 84697ce713 Add priority argument to thread sys_thread_new.Patch from floriZ but slightly modfied jani 2003-03-19 15:27:56 +0000
  • 0846206bc0 rename STATS to LWIP_STATS and make it checked by #if not #ifdef.The rest of the _STATS defines should follow jani 2003-03-19 12:37:46 +0000
  • 441e9b8431 add tcpip_callback patch from Marc jani 2003-03-19 11:23:46 +0000
  • f9f21934ab Fix to last fix for bug 2826: find_arp_entry() was now not finding any entries unless there was an attached buffer. Fixed so that it finds entries without attached buffer. davidhaas 2003-03-18 14:48:40 +0000
  • 2673568cfd Added default settings for DBG_MIN_LEVEL and definitions for the possible levels. davidhaas 2003-03-17 16:59:22 +0000
  • 45c13ad08f Fixed bug #2826 (re-use of oldest ARP entry with queued packet leaks pbuf). Only if ARP_QUEUEING == 1. likewise 2003-03-16 23:46:29 +0000
  • 76d395c8de Fixed bug #2841 (etharp.c packet queueing always picks table entry 6). likewise 2003-03-16 22:44:05 +0000
  • 090b4087fc Using a negated unsigned value as func. arg. fails for Keil C166 compilers. likewise 2003-03-16 22:39:15 +0000
  • 7ece19c474 pbuf_unfold_reply() lost memory if already unfold. dhcp_stop() leaked memory if a unfold reply was still in existance. likewise 2003-03-16 22:36:54 +0000
  • dbdd0f520f Added source comments. likewise 2003-03-13 08:50:04 +0000
  • d47ef79c04 Moved DBG_MIN_LEVEL out of here to lwipopts.h likewise 2003-03-11 14:16:27 +0000
  • 400ff200ee Added comments on some ARP options. likewise 2003-03-11 13:57:25 +0000
  • daeb21b3b9 Include "netif.h" for ntohl and friends. likewise 2003-03-10 16:13:25 +0000
  • 7e36c58529 Make sure that BYTE_ORDER is actually defined. Panic with #error if not. likewise 2003-03-10 16:12:41 +0000
  • aa84869fdb Fixed cyclic dependency by including netif.h. Not sure if this breaks other compilers? likewise 2003-03-10 16:09:41 +0000
  • bd6b1a0237 DBG_TYPES_ON added (must be overridden in lwipopts.h). likewise 2003-03-10 16:08:52 +0000
  • adf088e575 DBG_TYPES_ON removed (must be in lwipopts.h instead). likewise 2003-03-10 16:07:50 +0000
  • 8613f2a48e factor out netif_set_addr so address of netif can be changed jani 2003-03-07 10:55:58 +0000
  • 12228ea34d update sysarch doc. patch #1233 jani 2003-03-07 10:48:32 +0000
  • f308f7cc80 Add sys_untimeout stub in case of NO_SYS jani 2003-03-07 10:29:25 +0000
  • eb1a41f3c9 socket functions use socklen_t, patch from floriZ.Also set/getsockopt use void * instead of char * as fourth arg jani 2003-03-03 10:29:21 +0000
  • ee2c049518 Fixed build for coldfire after last debug.h and opt.h changes. davidhaas 2003-02-25 21:46:04 +0000
  • 0ba9a45d32 icmp messages need only PBUF_IP layer jani 2003-02-25 16:00:21 +0000
  • bcfc7173f3 default value for NO_SYS jani 2003-02-24 13:57:39 +0000
  • d390ca7056 cleaned up opt.h a bit, added more option defaults ad changed SYS_LIGHTWEIGHT_PROT to be a 0/1 define.The same for COMPAT_SOCKET jani 2003-02-24 10:49:05 +0000
  • 18df3961e9 byte-order handling functions are in inet.c now and the uperrcase counterparts are gone. opt.h has all the configurable items debug does not need to be directly included. jani 2003-02-21 16:43:46 +0000
  • d372121d6e dhcp.h and ip.h declare struct netif and don't include netif.h to avoid warnings. jani 2003-02-20 17:16:30 +0000
  • 8e9aa84070 do not directly include lwipopts.h but lwip/opt.h instead jani 2003-02-20 16:32:22 +0000
  • 6319ffbcb8 delete ethernetif.h jani 2003-02-20 15:23:04 +0000
  • d1c03cbd69 Fixed some issues open after merging 'leon-dhcp'. likewise 2003-02-20 14:35:40 +0000
  • 37629fc1b6 Fixed some issues open after merging 'leon-dhcp'. Added new debugging. likewise 2003-02-20 13:13:51 +0000
  • cc31bb9358 make netif->init return err_t instead of void.Patch from David Le Corfec jani 2003-02-20 11:51:53 +0000
  • 35ef1e1b86 fix compiler error jani 2003-02-20 11:48:13 +0000
  • d8d787545e Merged with leon-dhcp branch. Tagged as POST_leon-dhcp afterwards. likewise 2003-02-20 08:41:59 +0000
  • 0a51d72098 Removed Id: fields as they give conflicts while merging to leon-dhcp branch. likewise 2003-02-19 22:07:42 +0000
  • e13c78820f Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined. davidhaas 2003-02-18 21:14:16 +0000
  • 7f1becc682 Allow minimal unix target to build in cygwin (but not necessarily run). davidhaas 2003-02-18 19:27:48 +0000
  • 1660e800e0 Made UDP flag defines unsigned (by adding the U suffix). likewise 2003-02-18 12:41:52 +0000
  • da40fbd054 move FD_SET defines to sockets.h from arch.h .Last arg of select is not a const according to linux and openBSD manpages jani 2003-02-17 11:34:48 +0000
  • 90bc698a40 Lightweight protection macros were not defined if NO_SYS was defined. likewise 2003-02-17 10:13:00 +0000
  • cb6cec0404 Disabled too restrictive behaviour in _bind() and _connect(). Reimplementation pending. likewise 2003-02-14 15:49:02 +0000
  • de29a0818e By request: moved lightweight protection to macros. davidhaas 2003-02-12 22:00:18 +0000
  • 4fc309b1dd Made sys_arch_prot() interface more generic by returning sys_prot_t instead of u32_t. davidhaas 2003-02-12 16:38:46 +0000
  • 353478180d Fix some compile issues with both coldfire and unix builds. davidhaas 2003-02-12 15:09:04 +0000
  • ea66eb6c23 one more C++ comment changed two prototypes added for the SNMP = 1 case jani 2003-02-12 08:06:50 +0000
  • 7b3e158c92 sys_thread_new() now returns the thread (request from Marc Boucher). davidhaas 2003-02-11 21:00:14 +0000
  • 848dea2058 Only access non-NULL pbufs on some paths where they can be NULL in newly introduced callback code jani 2003-02-11 16:33:02 +0000
  • f2d35751ca fix doxygen comment for netif_add jani 2003-02-11 09:51:22 +0000
  • 16833de1cf remove list.h jani 2003-02-11 09:10:10 +0000
  • 0cb0cd6611 C instead of C++ style comments. likewise 2003-02-10 23:51:06 +0000
  • dc49999124 Fixed some build issues regarding snmp.h davidhaas 2003-02-10 21:58:34 +0000
  • daebdd1d77 Removed my #error. likewise 2003-02-10 19:55:35 +0000
  • 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. likewise 2003-02-10 13:47:47 +0000
  • 32fbec2e48 Include arch/cc.h first, as architecture headers might #define NULL itself. likewise 2003-02-10 13:20:33 +0000
  • 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 jani 2003-02-10 11:15:19 +0000
  • 451926e5c3 don't include arch/lib.h jani 2003-02-07 10:23:15 +0000
  • 1868b2d244 tcp_timer_needed should be a noop when using the raw API.Fix link error bug #2489 jani 2003-02-07 10:13:51 +0000
  • dd2fa15e8a Add the following features and bugfixes: davidhaas 2003-02-06 22:18:56 +0000
  • d2e008d4b4 Update src/FILES and src/netif/FILES jani 2003-02-05 13:39:35 +0000
  • 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. davidhaas 2003-02-04 22:52:22 +0000
  • 987e9df948 Fixed comment typo. likewise 2003-02-04 18:50:30 +0000
  • 70d54479a1 Changed some comments into JavaDoc format. likewise 2003-02-04 18:49:46 +0000
  • c91b024153 Deleted proj/ subdir.It has moved to contrib. jani 2003-02-04 16:21:13 +0000
  • 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 davidhaas 2003-02-04 14:50:45 +0000
  • 442f46a1ce recvfrom accesses freed netbuf.If it's reused in the small window by another thread recvfrom returns bad from info.Patch #1041 by Florian Zschocke jani 2003-01-31 12:51:56 +0000
  • ea6432702f Added comments. Code cleanup. Clearer debugging in udp_input(). likewise 2003-01-30 15:02:48 +0000
  • faa9191191 Added commented about the signedness of pbuf_header() argument. likewise 2003-01-30 12:38:03 +0000
  • 8560f6ef2b Fixed DHCP packet input filter. Added numerous comments. Code cleanup. likewise 2003-01-30 10:18:40 +0000
  • b0c1e37364 Updated Makefiles to reflect new "contrib" directory for architecture specific code kieranm 2003-01-30 10:17:17 +0000
  • bb0194cc0c Some macro's were not surrounded by brackets. Was dangerous when nesting macro's. likewise 2003-01-30 09:32:31 +0000
  • 304dc9fd07 Moved msvc6 project files to contrib module. proff_fs 2003-01-29 16:34:56 +0000
  • bcfdf4c1cf Removed the src/arch tree from the lwip module. (Now in seperate contrib module). likewise 2003-01-29 13:18:40 +0000
  • 663b79ca72 ip_input() changed. A configured netif accepts any traffic and an unconfigured netif accepts only DHCP traffic. Fixes bug #2004. likewise 2003-01-28 18:24:25 +0000
  • 4a720425b7 Rebinding an active pcb did not check the given address/port against other bound pcb's. likewise 2003-01-27 13:58:45 +0000
  • 0e4d59541a Fixed assignment of pcb->flags if pcb was NULL in udp_new(). likewise 2003-01-27 12:35:16 +0000
  • ba666295eb Nullified stray pointer for debugging purposes. likewise 2003-01-27 11:31:30 +0000
  • d34851db91 Initial commit of snmp.h function prototypes. likewise 2003-01-27 09:29:07 +0000
  • 7dfd162a34 Added source documenting comments. likewise 2003-01-27 08:50:28 +0000
  • 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 jani 2003-01-24 09:24:44 +0000
  • 721d237120 Fixes so that UDP connect() works.Enable generation of ICMP destination unreachable when the port is unavailable jani 2003-01-23 16:46:01 +0000
  • 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 jani 2003-01-22 16:18:05 +0000
  • 16434f0d01 Don't allow multiple binds to the same UDP port/address pair.Closes bug #1896 jani 2003-01-21 14:09:31 +0000
  • 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) jani 2003-01-18 16:05:24 +0000
  • 2154ac3ecb Enhanced documentation on UDP PCB matchjng code. likewise 2003-01-17 15:16:33 +0000
  • 42309b5d6f put a state field in listen PCBs to since they are often treated as normal pcbs. patch #922, bug #2114 PRE_ARCH_MOVE jani 2003-01-17 14:18:55 +0000
  • 07af438a38 fix printing of recved packet.Discovered by Ed Sutter POST_REMOVE_ARCH jani 2003-01-16 13:09:19 +0000
  • fa8f6cb204 Free incoming pbuf's in the TCP event macro if the recv callback is NULL. Fixes bug #2156. likewise 2003-01-14 12:54:02 +0000
  • 049853362a ack duplicate segments too to prevent connection hanging when a single transmitted ACK gets lost jani 2003-01-14 09:38:10 +0000
  • 3e6202f614 do not set rtime too many times to 0.it's enough to do it in tcp_output_segment jani 2003-01-14 08:37:01 +0000
  • a993e962f5 fix compiler warnings in DEBUGF jani 2003-01-14 08:22:05 +0000
  • 1ad5537c9b Fixed some typo's in the comments. likewise 2003-01-13 13:22:09 +0000
  • ea0dc429a7 Added #include <string.h> for memset()/memcpy(). likewise 2003-01-13 13:14:45 +0000
  • 8d7f09fa92 remove global ctime.Each entry's ctime is now absolute.This avoids wrapping and also solves naming clash reported on the list jani 2003-01-13 09:38:21 +0000