Commit Graph

  • 11a4f5538b Change names of 2 global variables again, as the previous names did not have lwip-style... goldsimon 2007-04-03 16:33:14 +0000
  • 26e88dc2c1 Don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets. See patch #5834. fbernon 2007-04-03 14:08:11 +0000
  • 34fcccc50b - Changed the names of some variables in SNMP module to avoid them shadowing each other (which produces a lot of warnings and makes the code hard to maintain) - Added missing defines for 3 snmp-functions if LWIP_SNMP==0 goldsimon 2007-04-02 20:39:24 +0000
  • 2f53df93e8 Removed printf formatter warning introduced by last check-in (changed local variable from u32_t to u16_t) goldsimon 2007-04-02 20:34:18 +0000
  • 996d5fda69 ip.c: if IP_REASSEMBLY is set to 1, don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets. fbernon 2007-03-30 13:30:42 +0000
  • f75be85eea Add NETIF_FLAG_ETHARP flag and comments in this skeleton. fbernon 2007-03-30 10:32:57 +0000
  • f1412f5e5a api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add missing pcb allocations checking (in do_bind, and for each raw_new). Fix style. fbernon 2007-03-30 09:42:16 +0000
  • 4208bcd8d1 Fix on NETIF_FLAG_ETHARP test (test inverted) fbernon 2007-03-30 09:25:41 +0000
  • 5368a760cf most of files: prefix all debug.h define with "LWIP_" to avoid any conflict with others environment defines (these were too "generic"). fbernon 2007-03-30 08:47:04 +0000
  • 9ec08fa76a Missing recv_timeout initialize in accept_function. Minor style fix (indent, mbox checking...) fbernon 2007-03-28 18:21:24 +0000
  • 913a99dd35 api.h, api_lib.c, sockets.c: netbuf_ref doesn't check its internal pbuf_alloc call result and can cause a crash. lwip_send now check netbuf_ref result. fbernon 2007-03-28 17:26:06 +0000
  • d956a39fec sockets.c Remove "#include <errno.h>" from sockets.c to avoid multiple definition of macros (in errno.h and lwip/arch.h) if LWIP_PROVIDE_ERRNO is defined. This is the way it should have been already (looking at doc/sys_arch.txt) goldsimon 2007-03-28 14:49:04 +0000
  • 01d9bd573e 2007-03-28 Kieran Mansley * opt.h Change default PBUF_POOL_BUFSIZE (again) to accomodate default MSS + IP and TCP headers *and* physical link headers kieranm 2007-03-28 12:27:38 +0000
  • d301b69dae Minor. Add LWIP_NETIF_HOSTNAME in skeleton and comment on #endif for LWIP_SNMP. fbernon 2007-03-28 10:29:06 +0000
  • c1fe7517ec opt.h, netif.h, dhcp.h, dhcp.c: New configuration option LWIP_NETIF_HOSTNAME allow to define a hostname in netif struct (this is just a pointer, so, you can use a hardcoded string, point on one of your's ethernetif field, or alloc a string you will free yourself). It will be used by DHCP to register a client hostname, but can also be use when you call snmp_set_sysname. fbernon 2007-03-28 09:39:12 +0000
  • cd1c96db56 netif.h, netif.c: A new NETIF_FLAG_ETHARP flag is defined in netif.h, to allow to initialize a network interface's flag with. It tell this interface is an ethernet device, and we can use ARP with it to do a "gratuitous ARP" (RFC 3220 "IP Mobility Support for IPv4" section 4.6) when interface is "up" with netif_set_up(). fbernon 2007-03-28 09:23:35 +0000
  • 4aee4c1ac7 Free pbuf if pbuf_header() fails goldsimon 2007-03-26 19:27:11 +0000
  • bef0503545 Removed warning: sizeof() was automatically casted to negative goldsimon 2007-03-26 18:57:30 +0000
  • 7aea2cd6f1 Remove warnings: "converting from 'u32_t' to 'u16_t': possible loss of data": check that received timeout values fit into u16_t. goldsimon 2007-03-26 18:52:52 +0000
  • 028d707077 Remove warning in netif_add(): "converting from 's16' to 'u8_t': possible loss of data" (static variable netifnum) goldsimon 2007-03-26 17:19:12 +0000
  • c9df03d1a9 Remove warnings: "comparision between signed and unsigned" and "converting from 'unsigned long' to 'u8_t': possible loss of data" goldsimon 2007-03-26 17:15:23 +0000
  • 19338d2774 opt.h, tcpip.c: New configuration option LWIP_ARP allow to disable ARP init at build time if you only use PPP or SLIP. The default is enable. Note we don't have to call etharp_init in your port's initilization sequence if you use tcpip.c, because this call is done in tcpip_init function. fbernon 2007-03-26 16:13:46 +0000
  • 005e5f2f72 api_lib.c (from Dmitry Potapov) : patch for netconn_write(), fixes a possible race condition which cause to send some garbage. It is not a definitive solution, but the patch does solve the problem for most cases. fbernon 2007-03-26 15:37:48 +0000
  • e54cd23ecb stats.h, stats.c, msg_in.c: Stats counters can be change to u32_t if necessary with the new option LWIP_STATS_LARGE. If you need this option, define LWIP_STATS_LARGE to 1 in your lwipopts.h. More, unused counters are not defined in the stats structs, and not display by stats_display(). Note that some options (SYS_STATS and RAW_STATS) are defined but never used. Fix msg_in.c with the correct #if test for a stat display. fbernon 2007-03-22 16:36:45 +0000
  • 544e469eeb api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used). fbernon 2007-03-22 09:34:18 +0000
  • db739d16ce api_lib.c: somes resources couldn't be freed if there was errors during netconn_new_with_proto_and_callback. fbernon 2007-03-22 09:27:04 +0000
  • 5fff6e7ff8 ethernetif.c: update netif->input calls to check return value. In older ports, it's a good idea to upgrade them, even if before, there could be another problem (access to an uninitialized mailbox). fbernon 2007-03-22 09:09:27 +0000
  • 776c01e60b fixed bug #5067 (essentialy a signed/unsigned warning fixed by casting to unsigned). goldsimon 2007-03-21 21:14:06 +0000
  • 3eb38d7611 api_lib.c, api_msg.c, tcpip.c: integrate sys_mbox_fetch(conn->mbox, NULL) calls from api_lib.c to tcpip.c's tcpip_apimsg(). Now, use a local variable and not a dynamic one from memp to send tcpip_msg to tcpip_thread in a synchrone call. Free tcpip_msg from tcpip_apimsg is not done in tcpip_thread. This give a faster and more reliable communication between api_lib and tcpip. fbernon 2007-03-21 16:38:58 +0000
  • 766159e27e opt.h: Add LWIP_NETIF_CALLBACK (to avoid compiler warning) and set it to 0. fbernon 2007-03-21 15:35:02 +0000
  • bb34d8cfd1 api_msg.c, igmp.c, igmp.h: Fix C++ style comments fbernon 2007-03-21 14:47:52 +0000
  • a880469d7d Remove obsolete include from my port. fbernon 2007-03-21 13:57:45 +0000
  • e5147d5562 * netif.c, netif.h: Apply patch#4197 with some changes (originator: rireland@hmgsl.com). Provides callback on netif up/down state change. kieranm 2007-03-21 13:24:20 +0000
  • d7ff85850c 2007-03-21 Kieran Mansley * opt.h Change default PBUF_POOL_BUFSIZE to accomodate default MSS + IP and TCP headers kieranm 2007-03-21 13:05:51 +0000
  • 7294cb080b * Fix all uses of pbuf_header to check the return value. In some cases just assert if it fails as I'm not sure how to fix them, but this is no worse than before when they would carry on regardless of the failure. kieranm 2007-03-21 12:55:00 +0000
  • b422864d5d sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and comment out missing header include in icmp.c kieranm 2007-03-21 12:50:04 +0000
  • eab3667b61 memp.h, stats.c: Fix stats_display function where memp_names table wasn't synchronized with memp.h fbernon 2007-03-20 18:12:06 +0000
  • 713e89cdb2 tcpip.c: Initialize tcpip's mbox, and verify if initialized in tcpip_input, tcpip_ethinput, tcpip_callback, tcpip_apimsg, to fix a init problem with network interfaces. Also fix a compiler warning. fbernon 2007-03-20 18:01:40 +0000
  • b290f0442d udp.c: Only try and use pbuf_header() to make space for headers if not a ROM or REF pbuf. kieranm 2007-03-20 16:58:08 +0000
  • b035a6196a Add return types to tcpip_apimsg() and api_msg_post() to check ERR_MEM problems (api_lib.c can be change now). fbernon 2007-03-19 20:35:32 +0000
  • e4cd00b5ea Remove unimplemented "memp_realloc" function from memp.h. fbernon 2007-03-19 20:23:58 +0000
  • 3bb13829fe checked in patch #5796: pbuf_alloc: len field claculation caused memory corruption. goldsimon 2007-03-11 20:07:37 +0000
  • 1af676385c Add igmp.h and igmp.c inside tree : fbernon 2007-03-11 19:45:32 +0000
  • a24a170b84 New configuration option LWIP_IGMP to enable IGMP processing. Based on only one filter per all network interfaces. Declare a new function in netif to enable to control the MAC filter (to reduce lwIP traffic processing). fbernon 2007-03-11 19:16:38 +0000
  • bc4b3764fc Fixed bug #19251 (missing `const' qualifier in socket functions), to get more compatible to standard POSIX sockets. goldsimon 2007-03-11 17:57:13 +0000
  • 9b143dd5dc Based on patch from Dmitry Potapov, bug#19225. fbernon 2007-03-11 16:53:37 +0000
  • 5c65d4733b Keepalive values can be configured at run time with LWIP_TCP_KEEPALIVE, but don't change this unless you know what you're doing (default are RFC1122 compliant). Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set in seconds. fbernon 2007-03-11 15:53:43 +0000
  • 41a84ef1d3 Fixed bug #11400-2: New etharp queueing introduced bug: memp_memory was allocated too small. goldsimon 2007-03-09 07:15:04 +0000
  • 86cecd6700 Keepalive values can be configured at compile time, but don't change this unless you know what you're doing (default are RFC1122 compliant). fbernon 2007-03-08 21:02:39 +0000
  • fdcb87db19 Implement LWIP_SO_RCVTIMEO configuration option to enable/disable SO_RCVTIMEO on UDP sockets/netconn. fbernon 2007-03-08 20:58:46 +0000
  • a868832776 Initialize dhcp timers in tcpip_thread (if LWIP_DHCP) to protect the stack from concurrent access. goldsimon 2007-03-08 10:37:31 +0000
  • 5eabd4591a SNMP UDP ports can be configured at compile time goldsimon 2007-03-08 10:32:29 +0000
  • 91afefa61a Reverted pbuf_alloc() to REV 1.82 goldsimon 2007-03-07 15:47:54 +0000
  • ea7bdb8e9e Last change (reduce code size if not used) had a bug... goldsimon 2007-03-06 19:37:32 +0000
  • 7cda728469 Fix some "little" build problems, and a redundancy call to "lwip_stats.link.recv++;" in low_level_input() & ethernetif_input(). If LINK_STATS was defined, tcpip.c couldn't be build. Even if IP_FRAG or IP_REASSEMBLY were set, ip_frag.c functions are not build. fbernon 2007-03-06 19:31:49 +0000
  • 7fd37d4e87 Implement SO_RCVTIMEO on UDP sockets/netconn. fbernon 2007-03-06 16:41:02 +0000
  • 874bfe19d2 Reduce code size: don't include code in those files if IP_FRAG == 0 and IP_REASSEMBLY == 0 goldsimon 2007-03-06 15:27:58 +0000
  • ed07d481d6 opt.h, ip_frag.h, tcpip.h, tcpip.c, ethernetif.c: add new configuration option named ETHARP_TCPIP_ETHINPUT, which enable the new tcpip_ethinput. Allow to do ARP processing for incoming packets inside tcpip_thread (protecting ARP layer against concurrent access). You can also disable old code using tcp_input with new define ETHARP_TCPIP_INPUT set to 0. Older ports have to use tcpip_ethinput. fbernon 2007-03-06 14:18:02 +0000
  • 7115975212 fixed compiler warning "initialization dircards qualifiers from pointer target type" goldsimon 2007-03-06 07:28:22 +0000
  • ddf0982d0f opt.h, sockets.h: add new configuration options (LWIP_POSIX_SOCKETS_IO_NAMES, ETHARP_TRUST_IP_MAC, review SO_REUSE). Also include directly tcp.h in sockets.h to improve application independancy from ip stack (avoid to include directly in application the "unknown" tcp.h if you need options like TCP_NODELAY and TCP_KEEPALIVE in application. fbernon 2007-03-05 14:43:11 +0000
  • 7b54ddd828 Corrected patch to bug #19168 goldsimon 2007-03-04 17:21:43 +0000
  • 1ffd049833 api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced. fbernon 2007-03-04 16:25:04 +0000
  • 12e0a2ef7d api_lib.c: Fix "[patch #5764] api_lib.c cleanup: after patch #5687" (from Dmitry Potapov). The api_msg struct stay on the stack (not moved to netconn struct). fbernon 2007-03-04 14:49:46 +0000
  • 9da7afb345 Fixed buf #19168 based on patch by Dmitry Potapov goldsimon 2007-03-04 12:45:58 +0000
  • 1f544e087b Fix BUG#11400 - don't corrupt existing pbuf chain when enqueuing multiple pbufs to a pending ARP request goldsimon 2007-03-04 12:12:42 +0000
  • e1b6a4cb21 udp.c: remove obsolete line "static struct udp_pcb *pcb_cache = NULL;" Its is static, and never used in udp.c except udp_init(). fbernon 2007-03-03 17:00:44 +0000
  • bb8522b737 tcpip.c: Moved call to ip_init(), udp_init() and tcp_init() from tcpip_thread() to tcpip_init() goldsimon 2007-03-03 16:22:38 +0000
  • e075581d76 no message fbernon 2007-03-02 19:35:15 +0000
  • 527d18a526 2007-02-28 Kieran Mansley (based on patch from Simon Goldschmidt) * api_lib.c, tcpip.c, memp.c, memp.h: make API msg structs allocated on the stack and remove the API msg type from memp kieranm 2007-02-28 14:15:43 +0000
  • 5ace5976a1 * pbuf.c: Fix BUG#17645 - ensure pbuf payload pointer is not moved outside the region of the pbuf by pbuf_header() kieranm 2007-02-28 13:45:35 +0000
  • c52ac01fbc sockets.c: Fix BUG#19161 - ensure milliseconds timeout is non-zero when supplied timeout is also non-zero kieranm 2007-02-28 12:52:44 +0000
  • f4f2bfe379 Ensure the size of each pbuf in the pool meets alignment constraints jifl 2007-02-27 16:50:05 +0000
  • 75beb3bd35 Fix incorrect comparison in get_socket(). Spotted by Frederic Bernon. jifl 2007-02-26 20:16:38 +0000
  • 1d22294974 * sockets.h, sockets.c: Move socket initialization to new lwip_socket_init() function. jifl 2007-02-26 20:01:04 +0000
  • de665f7cf9 2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt) * api_lib.c: Use memcpy in netbuf_copy_partial. jifl 2007-02-26 19:49:49 +0000
  • 205520c620 Fix the fix for GETSHORT and GETLONG bug #19052, needs to be tested by some PPP user. christiaans 2007-02-14 08:08:35 +0000
  • 3551b2a2a1 Release 1.2.0. likewise 2006-12-05 10:09:17 +0000
  • 11f2e8d1a6 Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc(). christiaans 2006-12-04 08:24:25 +0000
  • a91374a916 Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc(). christiaans 2006-12-01 15:38:56 +0000
  • 36e6c26545 Included xid to some DEBUGFs. christiaans 2006-12-01 13:52:07 +0000
  • 9a68f74857 Fixed false triggers of request_timeout. christiaans 2006-11-30 16:25:43 +0000
  • b96c15890c Disabled alignment fix. Stepping back, #17922 fix fails on my target, DHCP won't start, I don't understand. christiaans 2006-11-28 13:29:05 +0000
  • 5a6b26d69e In netif_add() fixed clearing of ip_addr, netmask, gw and flags. christiaans 2006-11-28 13:12:15 +0000
  • a3d912a801 Fixed uninitalized variable warnings (using gcc 4.1.1) christiaans 2006-11-27 15:37:44 +0000
  • b4f1deaa46 Accepted patch #5493 IP frag/reass config item tweak. christiaans 2006-11-27 14:48:21 +0000
  • 976bce4c7f Changed heap to use naturally aligned start address and added near-fit case to #17922 fix. christiaans 2006-11-27 14:23:24 +0000
  • 77e0f77850 Added snmp_send_trap() parameter, caller must pass enterprise id for enterprise secific traps. christiaans 2006-11-27 08:43:10 +0000
  • a885cbf8ed Removed mem_dump() reference. christiaans 2006-11-22 09:56:39 +0000
  • b6af5d9bda Initial attempt at fixing bug #17922, calling for reviewers. This seems to work for me, more or less, but it looks like it breaks TCP. christiaans 2006-11-22 08:27:38 +0000
  • b72677c3ce Added missing NULL return checks for snmp_mib_lrn_alloc() and trimmed whitespace at line ends. christiaans 2006-11-17 11:07:25 +0000
  • 5e44122552 Trimmed whitespace at line ends. christiaans 2006-11-17 11:05:26 +0000
  • d4b6471d39 Replaced tabs with space. christiaans 2006-11-17 10:51:13 +0000
  • fe1bea9538 Added netif_set_up and call protection for NULL function pointers. Bug #16602 and #17777. christiaans 2006-11-02 12:25:57 +0000
  • 2f41e2b0ec Made ip_id static again, fixing bug #18065. This is required when outputting IP fragments. christiaans 2006-11-01 09:33:14 +0000
  • bd86f95512 Cold case #9191 fixes for NC30 compiler for the M16 mcu, reported by Bjorn Sundman. christiaans 2006-10-25 07:51:17 +0000
  • 5fcf6418cf Added warning about using mem_malloc in sys_arch.c, cold case bug #1913 . christiaans 2006-10-24 09:10:26 +0000
  • 4e583dab2e Again, fixed decoding of negative integers in snmp_asn1_dec_s32t(), tnx to though testing by Sander. christiaans 2006-10-13 13:45:06 +0000
  • bc182cab7c Removed EXPERIMENTAL status. christiaans 2006-10-13 12:00:35 +0000
  • f6f6f11838 Fixed decoding of negative integers in snmp_asn1_dec_s32t(), removed EXPERIMENTAL status. christiaans 2006-10-13 11:59:45 +0000
  • b5f4672155 Partially accepted patch #5449 for ANSI C compatibility / build fixes. Fixed bug #17574 corrected UDP-Lite protocol identifier. christiaans 2006-10-11 12:04:04 +0000