Commit Graph

769 Commits

Author SHA1 Message Date
goldsimon
874bfe19d2 Reduce code size: don't include code in those files if IP_FRAG == 0 and IP_REASSEMBLY == 0 2007-03-06 15:27:58 +00:00
fbernon
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. 2007-03-06 14:18:02 +00:00
goldsimon
7115975212 fixed compiler warning "initialization dircards qualifiers from pointer target type" 2007-03-06 07:28:22 +00:00
fbernon
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.
2007-03-05 14:43:11 +00:00
goldsimon
7b54ddd828 Corrected patch to bug #19168 2007-03-04 17:21:43 +00:00
fbernon
1ffd049833 api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced. 2007-03-04 16:25:04 +00:00
fbernon
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).
2007-03-04 14:49:46 +00:00
goldsimon
9da7afb345 Fixed buf #19168 based on patch by Dmitry Potapov 2007-03-04 12:45:58 +00:00
goldsimon
1f544e087b Fix BUG#11400 - don't corrupt existing pbuf chain when enqueuing multiple pbufs to a pending ARP request 2007-03-04 12:12:42 +00:00
fbernon
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().
2007-03-03 17:00:44 +00:00
goldsimon
bb8522b737 tcpip.c: Moved call to ip_init(), udp_init() and tcp_init() from tcpip_thread() to tcpip_init() 2007-03-03 16:22:38 +00:00
fbernon
e075581d76 no message 2007-03-02 19:35:15 +00:00
kieranm
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
2007-02-28 14:15:43 +00:00
kieranm
5ace5976a1 * pbuf.c: Fix BUG#17645 - ensure pbuf payload pointer is not moved
outside the region of the pbuf by pbuf_header()
2007-02-28 13:45:35 +00:00
kieranm
c52ac01fbc sockets.c: Fix BUG#19161 - ensure milliseconds timeout is non-zero
when supplied timeout is also non-zero
2007-02-28 12:52:44 +00:00
jifl
f4f2bfe379 Ensure the size of each pbuf in the pool meets alignment constraints 2007-02-27 16:50:05 +00:00
jifl
75beb3bd35 Fix incorrect comparison in get_socket().
Spotted by Frederic Bernon.
2007-02-26 20:16:38 +00:00
jifl
1d22294974 * sockets.h, sockets.c: Move socket initialization to new
lwip_socket_init() function.
2007-02-26 20:01:04 +00:00
jifl
de665f7cf9 2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt)
* api_lib.c: Use memcpy in netbuf_copy_partial.
2007-02-26 19:49:49 +00:00
christiaans
205520c620 Fix the fix for GETSHORT and GETLONG bug #19052, needs to be tested by some PPP user. 2007-02-14 08:08:35 +00:00
likewise
3551b2a2a1 Release 1.2.0. 2006-12-05 10:09:17 +00:00
christiaans
11f2e8d1a6 Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc(). 2006-12-04 08:24:25 +00:00
christiaans
a91374a916 Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc(). 2006-12-01 15:38:56 +00:00
christiaans
36e6c26545 Included xid to some DEBUGFs. 2006-12-01 13:52:07 +00:00
christiaans
9a68f74857 Fixed false triggers of request_timeout. 2006-11-30 16:25:43 +00:00
christiaans
b96c15890c Disabled alignment fix. Stepping back, #17922 fix fails on my target, DHCP won't start, I don't understand. 2006-11-28 13:29:05 +00:00
christiaans
5a6b26d69e In netif_add() fixed clearing of ip_addr, netmask, gw and flags. 2006-11-28 13:12:15 +00:00
christiaans
a3d912a801 Fixed uninitalized variable warnings (using gcc 4.1.1) 2006-11-27 15:37:44 +00:00
christiaans
b4f1deaa46 Accepted patch #5493 IP frag/reass config item tweak. 2006-11-27 14:48:21 +00:00
christiaans
976bce4c7f Changed heap to use naturally aligned start address and added near-fit case to #17922 fix. 2006-11-27 14:23:24 +00:00
christiaans
77e0f77850 Added snmp_send_trap() parameter, caller must pass enterprise id for enterprise secific traps. 2006-11-27 08:43:10 +00:00
christiaans
a885cbf8ed Removed mem_dump() reference. 2006-11-22 09:56:39 +00:00
christiaans
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. 2006-11-22 08:27:38 +00:00
christiaans
b72677c3ce Added missing NULL return checks for snmp_mib_lrn_alloc() and trimmed whitespace at line ends. 2006-11-17 11:07:25 +00:00
christiaans
5e44122552 Trimmed whitespace at line ends. 2006-11-17 11:05:26 +00:00
christiaans
d4b6471d39 Replaced tabs with space. 2006-11-17 10:51:13 +00:00
christiaans
fe1bea9538 Added netif_set_up and call protection for NULL function pointers. Bug #16602 and #17777. 2006-11-02 12:25:57 +00:00
christiaans
2f41e2b0ec Made ip_id static again, fixing bug #18065. This is required when outputting IP fragments. 2006-11-01 09:33:14 +00:00
christiaans
bd86f95512 Cold case #9191 fixes for NC30 compiler for the M16 mcu, reported by Bjorn Sundman. 2006-10-25 07:51:17 +00:00
christiaans
5fcf6418cf Added warning about using mem_malloc in sys_arch.c, cold case bug #1913 . 2006-10-24 09:10:26 +00:00
christiaans
4e583dab2e Again, fixed decoding of negative integers in snmp_asn1_dec_s32t(), tnx to though testing by Sander. 2006-10-13 13:45:06 +00:00
christiaans
bc182cab7c Removed EXPERIMENTAL status. 2006-10-13 12:00:35 +00:00
christiaans
f6f6f11838 Fixed decoding of negative integers in snmp_asn1_dec_s32t(), removed EXPERIMENTAL status. 2006-10-13 11:59:45 +00:00
christiaans
b5f4672155 Partially accepted patch #5449 for ANSI C compatibility / build fixes. Fixed bug #17574 corrected UDP-Lite protocol identifier. 2006-10-11 12:04:04 +00:00
christiaans
729da3c873 Fixed Nagle algorithm as reported by Bob Grice. 2006-10-10 07:48:27 +00:00
christiaans
8a31c6f807 Only mentioning SNMP development additions instead of changes, since we're in pre-alpha. 2006-10-06 10:44:24 +00:00
christiaans
2539b5cf61 Fixed up mib_external_node support, snmpwalk works for external objects. 2006-10-06 08:41:24 +00:00
christiaans
f7881e58bb Improved message parse robustness. Rejecting 'error requests'. Removed invalid genError return on varbindlist parse error, changed badValue into noSuchName error for non-writeable objects. 2006-10-04 09:15:23 +00:00
christiaans
25ed4e9d16 Fixed clearing of head and tail pointers in snmp_mib_node_delete(). 2006-10-03 10:41:48 +00:00
christiaans
7eddf93b36 Added missing snmp_delete_arpidx_tree() in find_entry where entry state was set to ETHARP_STATE_EMPTY. 2006-10-03 10:39:37 +00:00