christiaans
56c5fdbeaf
Added newlines in debug output, small optimalisations, more work on 'getnext', fixed 'get' on udp table.
2006-09-04 09:22:48 +00:00
christiaans
130d39cc03
Changed index structs to mib_list_node structs to place the table index trees directly in the mib tree.
2006-09-01 07:14:50 +00:00
christiaans
1485edf8e1
Added index tree node structs and functions, e.g. to be used for ARP table indexes.
2006-08-29 11:28:28 +00:00
christiaans
514ee867a6
Pacified GCC warnings and elaborated getnext to work on scalars, tables don't work yet.
2006-08-21 11:52:58 +00:00
christiaans
3cc7a406f4
Pacified GCC warnings and fixed double mem_free() while returning nosuchname err.
2006-08-21 11:51:19 +00:00
christiaans
c3f82acf7a
Pacified GCC warnings.
2006-08-21 11:50:03 +00:00
christiaans
cdb7557d88
Added SNMP counters.
2006-08-18 10:18:42 +00:00
christiaans
2dcbd016e6
Added tree expansion func protos for getnext.
2006-08-17 14:16:30 +00:00
christiaans
7d1728f05a
Started with getnext and ensure zero length identifiers are accepted.
2006-08-17 14:14:58 +00:00
christiaans
4b5c14470a
Fixed htons into htonl for trap desctination ip.
2006-08-17 14:11:45 +00:00
christiaans
f198b11f27
Accepting zero length identifiers e.g. for getnext operation. Uncommon but valid.
2006-08-17 14:09:57 +00:00
christiaans
7d16087789
Fixed bug #17200 , added check for broadcast destinations for PCBs bound to a unicast address.
2006-08-17 09:40:15 +00:00
christiaans
d734cd986c
Moved noleafs_get_object_def() and noleafs_get_value() protos from mib2.c to snmp_structs.h
2006-08-15 07:28:43 +00:00
christiaans
8559f3e583
MIB-2 object values near to completion, just committing for keeping the flame alive.
2006-08-11 14:16:36 +00:00
christiaans
d0b81d3b20
Corrected comment typo.
2006-08-11 14:13:39 +00:00
christiaans
43bf9a8e46
Added SNMP counters, moved some defines.
2006-08-11 14:12:05 +00:00
christiaans
19f57bf810
Exported udp_pcbs in udp.h (for SNMP agent).
2006-08-11 14:09:48 +00:00
christiaans
469012b544
Added etharp_find_addr(), finds eth/IP address pair by interface ptr and IP address.
2006-08-08 15:10:42 +00:00
christiaans
9b11c4670d
Corrected returned object id for interfaces.ifTable.ifEntry.ifSpecific to zeroDotZero (0.0).
2006-08-07 11:35:32 +00:00
christiaans
7eeaf8eaa5
Corrected object identifier codec for object ids not starting with .iso.dod (e.g. zeroDotZero (0.0)).
2006-08-07 11:32:44 +00:00
christiaans
a82e02ef15
Partial fix for bug #15926 , flushing TCP output in do_close().
2006-08-07 10:00:44 +00:00
christiaans
d8922d0410
Added minimalistic SNMP GET functionality.
2006-07-14 12:54:38 +00:00
christiaans
5c628d2a61
Added netif SNMP init.
2006-07-14 11:17:00 +00:00
christiaans
54bb20b486
Added SNMP statistics to struct netif and changed SNMP macro glue.
2006-07-14 09:58:02 +00:00
christiaans
57a6eaae7b
Added SNMP debug options.
2006-07-10 12:41:25 +00:00
christiaans
7a5cb21056
Fixed (experi)mental typo.
2006-07-07 11:33:36 +00:00
christiaans
333c3f18c0
Initial commit. Expirimental code, please note this is not yet fully functional.
2006-07-07 09:49:31 +00:00
christiaans
12f9adbdd3
Added ip_frag_init() prototype.
2006-07-04 08:24:55 +00:00
christiaans
a5cab96ff3
Added ip_frag_init() and some LWIP_DEBUGFs.
2006-07-04 08:24:17 +00:00
christiaans
dd060ceed3
Added ip_frag_init() to ip_init().
2006-07-04 08:23:33 +00:00
christiaans
63140ca7f8
Applied patch for cold case bug #11135 .
2006-06-27 10:33:52 +00:00
christiaans
cbe83f32b6
Honoured Pedro Alves namespace request, following lwip style struct naming.
2006-06-22 11:22:47 +00:00
christiaans
3bffb0a181
Added struct obj_id and a few system group access funcs.
2006-06-22 09:33:10 +00:00
christiaans
09dc9c89a8
Added mib-2 snmp group statistics prototypes.
2006-06-19 13:04:11 +00:00
christiaans
09707a3e81
Prepared some SNMP options.
2006-06-19 13:03:09 +00:00
christiaans
d821277430
Fixed cold case bug #1748 , printing of mem_size_t and u16_t statistics.
2006-06-15 07:10:04 +00:00
christiaans
1f01634029
Applied patch #5146 to handle allocation failures in accept() by Kevin Lawson.
2006-06-14 08:02:35 +00:00
curtmcd
dd314e1bdf
Fix incorrect calculation of dhcp->dns_count.
...
Comment out unused static dhcp_get_option_short() to avoid warning.
2006-06-08 00:16:56 +00:00
curtmcd
1dae102359
Fix debug print, remove reference to TCP_COARSE_TIMEOUT
2006-05-31 21:23:26 +00:00
curtmcd
b306594cad
Remove unused mem_reallocm
2006-05-31 21:23:01 +00:00
curtmcd
b60b7cf8fe
Use isprint() instead of isascii() as it's more common
...
Change return type of inet_aton from s8_t to int (standard)
Touch up comments and white space
2006-05-30 19:09:41 +00:00
curtmcd
0148128881
Fix gcc warning per discussion on lwip-users 2006.04.25: dereferencing
...
type-punned pointer will break strict-aliasing rules. Use memcpy
instead of structure copy; code is not in critical path.
2006-05-26 19:05:41 +00:00
curtmcd
076a884651
Add comment about purpose of struct ip_addr2.
...
Improve white space formatting, add parens in IP4_ADDR().
2006-05-26 18:52:27 +00:00
christiaans
7026bbcdd4
Removed conn->sem creation and destruction from netconn_write() and added sys_sem_new to netconn_new_*
2006-05-26 07:39:39 +00:00
curtmcd
6158aa684b
udp_input() operated by removing the IP and UDP headers, putting back
...
the UDP header, then re-removing it. However, pbuf_header() can't add
back the UDP header on pbufs of type PBUF_REF, so these would all get
dropped for bad checksum. This change addresses the problem and
simplifies things by stripping each header just once.
2006-05-26 02:40:54 +00:00
curtmcd
047e3455f7
Improve formatting by fixing wrong indents and lines too long.
2006-05-26 01:36:16 +00:00
christiaans
9ca9649c1b
Disabled ARP table update on ingress IP packets.
2006-05-05 13:34:13 +00:00
christiaans
7fc966dced
Optimized for speed and size. Test against zero for both the inverted and non-inverted address. (old and new-style broadcasts)
2006-04-24 07:26:06 +00:00
curtmcd
680afa4229
memp_memory could be unaligned, causing one buffer in the memp pool to
...
be unaligned, resulting in nasty random data corruption on some CPUs.
Also, clean up the code a little and save a few bytes.
2006-04-12 21:07:44 +00:00
likewise
313743c833
Fix for out-of-sequence FIN handling, patch by Oleg Tychev.
2006-04-08 00:36:25 +00:00
likewise
6cb19d7e34
Dangling inseg.p pointer fix by Pedro Alves.
2006-04-08 00:13:49 +00:00
christiaans
c9db715bae
addr->addr test size and speed optimalisation (helping a dumb compiler)
2006-04-04 07:21:54 +00:00
christiaans
7446e31fce
Address copy loops optimized for speed.
2006-03-29 13:16:40 +00:00
christiaans
94abf9d935
Added LWIP_PLATFORM_BYTESWAP optimalisation flag and macro glue.
2006-03-29 10:15:43 +00:00
christiaans
d9b4ab1658
Pbuf flag test size and speed optimalisation (helping a dumb compiler).
2006-03-28 15:06:33 +00:00
christiaans
39f8538776
Fixed compilation warning on sizeof(), reported by Beach at 20060320.
2006-03-21 08:28:15 +00:00
christiaans
61dc2e7dd5
Added pbuf_alloc() return value checks in ip_frag().
2006-03-03 11:25:36 +00:00
christiaans
11a820458f
Increased ip_reassbitmap size with 1, added assertions to catch boundary cases.
...
Beautified indentation again.
2006-03-02 15:45:19 +00:00
likewise
0b3b713123
Removed 'even sndbuf' fix in TCP, this fix was a ugly hack for the incomplete checksum routine that does not work now that the checksum routine is fixed.
2006-03-01 16:53:41 +00:00
christiaans
00f8cf57cd
Added IP reassembly timer.
2006-03-01 14:51:58 +00:00
christiaans
c55c375b0a
Removed tabs, default LWIP_HAVE_LOOPIF to 0 to slim footprint.
2006-03-01 10:41:23 +00:00
likewise
db76ca248b
2006-02-27 Merged patch by Curt McDowell
...
pbuf.c: Fix alignment; pbuf_init() would not work unless pbuf_pool_memory[] is properly aligned.
2006-02-27 14:11:19 +00:00
christiaans
182e1909b2
Patch from Curt McDowell fixes err_to_errno macro.
2006-02-13 08:14:11 +00:00
christiaans
3aea7bc053
Removed timer dependency on sys.c (raw-API). Beautified indentation.
2006-02-13 08:12:07 +00:00
christiaans
39c35732de
Code style fix, C++ into C comments.
2006-02-13 08:09:01 +00:00
christiaans
6c8850698d
Small optimalization for udp_input().
2006-01-02 12:06:02 +00:00
likewise
f8663a7129
Remove PCBs which stay in LAST_ACK state too long.
2005-12-20 11:03:18 +00:00
christiaans
7571fe5d13
Fixed unused variable warning.
2005-12-15 08:27:30 +00:00
christiaans
60dc1c22f7
Disabled the added summing routine to preserve code space, fixed some comments.
2005-12-15 08:26:00 +00:00
likewise
02b575e9e4
Added Curt McDowell's platform-independent optimized checksum routine.
2005-12-14 22:51:35 +00:00
likewise
6facaf8f05
Trailing dangling byte in checksum should be considered MSB.
2005-12-14 22:29:03 +00:00
likewise
319a972e75
Duplicate FIN ACK race condition fix by Kelvin Lawson.
2005-12-14 21:58:14 +00:00
christiaans
61cdbb30a6
Added some more fixes to the lwip_standard_chksum() comments.
2005-12-14 12:55:12 +00:00
likewise
e1dcfcbb76
Updated comment on optimization and aim of this generic algorithm.
2005-12-12 09:32:05 +00:00
christiaans
43d448e73f
Fixed lwip_standard_chksum() for unaligned memory access. Verified to work on c16x and BSD on P4.
2005-12-09 08:59:08 +00:00
christiaans
33fbb06604
Fixed void ptr address increment bug reported by Bertrik Sikken.
2005-11-25 12:23:03 +00:00
christiaans
e1b215aa73
Introduced cc.h formatters and removed SO_REUSE from transport layers.
2005-11-25 12:03:38 +00:00
christiaans
7599985a0a
Some build fixes for OpenBSD.
2005-10-10 07:27:31 +00:00
likewise
f05d392920
Unaligned 16-bit access fix for the standard checksum routine by Peter Jolasson.
2005-07-17 15:30:27 +00:00
likewise
e11d57c883
Fixes bug #13807 : slipif_input() garbles large (i.e. multiple pbufs) inbound datagrams.
2005-07-17 15:13:34 +00:00
likewise
baf377679a
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* tcp_in.c: Send reset on unexpected ACK in two cases. Fix submitted by olaf.peters@technolution.
2005-06-08 18:57:05 +00:00
likewise
f9355136d8
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* udp.c: Fixed memory leak; when ip_route() failed, a possibly allocated q was never de-allocated. Fixed by called ip_route() before allocating q.
2005-06-08 18:35:00 +00:00
likewise
533fc217d4
4 February 2004, Leon Woestenberg <leon.woestenberg@gmx.net>
...
tcp_in.c: Applied fix patch for bug #2679 .
tcp_out.c: Applied fix patch for bug #2679 .
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=2679
2005-02-04 13:43:13 +00:00
likewise
3160488352
queue was referenced before initialization in first goto memerr branch code. Replaced goto branch by its minimal equivalent error handling code.
2005-02-04 13:28:50 +00:00
likewise
8579e4144f
More robust DHCP ARP reply checking.
2005-01-24 23:02:29 +00:00
likewise
6880fa62f8
Added some missing string.h includes.
2005-01-24 21:05:47 +00:00
likewise
86c774443c
Fixed missing semicolon in LWIP_DEBUG statement.
2005-01-04 12:20:25 +00:00
likewise
3b715f4602
3 January 2004, Leon Woestenberg <leon.woestenberg@gmx>
...
udp.c: pcb->recv() callback was called even when it was NULL.
2005-01-03 17:54:21 +00:00
likewise
2a9ee35411
Removed assertion that always equaled true.
2004-12-27 14:50:03 +00:00
likewise
0e0a7d82de
Re-enabled ARP packet queueing. (Now that multi-packet queueing is disabled in etharp.c).
2004-12-27 14:45:12 +00:00
likewise
dfa96852f0
Disabled queueing more than 1 packet on a ARP entry, as I suspect this clashes with the TCP segment queueing.
2004-12-27 14:44:19 +00:00
likewise
a549ec0382
Added inline source documentation.
2004-12-27 14:42:02 +00:00
likewise
c61f01b206
tcp_write(): optimize order of valid states checks, most common first.
...
added assertion: when the queues are NULL, queuelen must be zero.
remove ACK flags from a PCB, only when we could succesfully sent
an empty ACK packet.
2004-12-26 01:36:37 +00:00
likewise
15257f4524
Update comment on ETHARP_QUEUEING. Defaulted to being disabled.
2004-12-24 21:58:53 +00:00
christiaans
089378ef87
christiaans: cosmetic change debug formatters as requested by Tom.
2004-12-07 08:16:27 +00:00
christiaans
805f495d84
christiaans: Fixed SO_REUSE default to 0. Actually we should fix udp so it won't depend on the socket layer.
2004-12-06 11:50:53 +00:00
likewise
928dd94ba6
etharp.c: Corrected DHCP_DOES_ARP_CHECK behaviour.
2004-11-30 17:22:18 +00:00
likewise
b429918b32
etharp.c: re-arranged code in find_entry(), supposedly making it more readable for all cases.
2004-11-29 11:01:20 +00:00
likewise
62a37a4876
Updates the FILES contents to better reflect the current state.
2004-11-29 09:39:51 +00:00
likewise
0e96ece6c6
Surround definition of tcp_timer_needed with #if !NO_SYS #endif. (see lwip-users 15-11-2004).
2004-11-28 18:23:00 +00:00