Simon Goldschmidt
|
c18abd4fbe
|
Fixed bug #41686 (ipv4 ip_reass() crash error) introduced some months ago while fixing bug #41041...
|
2014-05-19 22:07:57 +02:00 |
|
Simon Goldschmidt
|
c3ac875055
|
Fixed typo-bug introduced some months ago while fixing bug #41041...
|
2014-05-19 22:03:19 +02:00 |
|
Simon Goldschmidt
|
3f016fcc5a
|
Multiple small/minor issues: bug #36492 Static Analysis on code 1.4.0
|
2014-04-06 21:43:37 +02:00 |
|
Simon Goldschmidt
|
018719d9d3
|
patch #8027: Completed HW checksuming for IPv4 and IPv6 ICMP's
|
2014-01-17 22:32:36 +01:00 |
|
Simon Goldschmidt
|
381a7b110a
|
fixed bug #41041 Potential use-after-free in IPv6 reassembly
|
2014-01-10 21:47:42 +01:00 |
|
kieranm
|
e2f014f457
|
cleanup: fix minor build failures on unix
|
2010-06-28 13:24:14 +00:00 |
|
goldsimon
|
f61b80ca6a
|
Fixed bug #29361 (ip_frag has problems with zero-copy DMA MACs) by adding custom pbufs and implementing custom pbufs that reference other (original) pbufs. Additionally set IP_FRAG_USES_STATIC_BUF=0 as default to be on the safe side.
|
2010-06-21 18:50:16 +00:00 |
|
goldsimon
|
dae247809b
|
Add preprocessor-macros for compile-time htonl calculation (and use them throughout the stack where applicable)
|
2010-05-16 15:57:42 +00:00 |
|
goldsimon
|
a00448c35a
|
create a new (contiguous) PBUF_RAM for every outgoing fragment if LWIP_NETIF_TX_SINGLE_PBUF==1
|
2010-03-28 10:22:48 +00:00 |
|
goldsimon
|
8bbe3d2fe0
|
Correctly cast pointers when assigning from void*
|
2010-03-26 14:05:56 +00:00 |
|
goldsimon
|
b6babe38ea
|
Use braces for if blocks
|
2010-02-12 09:51:30 +00:00 |
|
goldsimon
|
5d360a6711
|
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
|
2010-02-04 18:47:44 +00:00 |
|
goldsimon
|
5fa0347e64
|
Cleanly separate the portability file inet.h and its contents from the stack: moved htonX- functions to def.h (and the new def.c - they are not ipv4 dependent), let inet.h depend on ip_addr.h and not the other way round. This fixes bug #28732.
|
2010-01-29 08:20:32 +00:00 |
|
goldsimon
|
dbcce3a4be
|
bug #26523: Compiler Warnings
|
2010-01-23 17:48:36 +00:00 |
|
goldsimon
|
96b788bea7
|
patch #6528: the buffer used for IP_FRAG_USES_STATIC_BUF could be too small depending on MEM_ALIGNMENT
|
2009-02-18 16:54:02 +00:00 |
|
goldsimon
|
13a139eef7
|
fixed bug #24517: IP reassembly crashes on unaligned IP headers by packing the struct ip_reass_helper.
|
2008-10-15 18:20:23 +00:00 |
|
fbernon
|
c580c2be75
|
Minor changes: fix a warning: "src\core\ipv4\ip_frag.c (782) : warning: potential uninitialized reference to "newpbuflen" in func "_ip_frag""
|
2008-01-22 18:56:40 +00:00 |
|
fbernon
|
baab7c04f7
|
Minor changes: fix some traces in ip_frag.c (coding style and end of lines)
|
2008-01-21 16:53:10 +00:00 |
|
goldsimon
|
1faf0ab9e3
|
Moved inet files into ipv4/ipv6 directory; splitted inet.c/inet.h into inet and chksum part; changed includes in all lwIP files as appropriate
|
2007-11-16 19:31:10 +00:00 |
|
fbernon
|
86dc53b72a
|
Minor change (coding style, #if/#endif to include icmp.h is not necessary)
|
2007-10-16 07:11:35 +00:00 |
|
goldsimon
|
6d9b44e243
|
IP_REASSEMBLY: send ICMP time exceeded when discarding datagrams for which the first fragment was received; try to keep the header of the first (octet 0) fragment; combined code to make it smaller; fixed bug in timer: when freeing packets, counter was not updated correctly
|
2007-10-15 19:33:16 +00:00 |
|
goldsimon
|
e864ba6c91
|
IP_REASSEMBLY: Changed 'packet' to 'datagram' to match the names used in the RFCs
|
2007-10-15 19:28:09 +00:00 |
|
goldsimon
|
1f08a5e5f5
|
Added code to free the oldest packets if the IP_REASS_MAX_PBUFS limit is reached or MEMP_REASSDATA is empty.
|
2007-10-11 19:49:06 +00:00 |
|
goldsimon
|
199648ff37
|
Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero!
|
2007-10-09 19:59:56 +00:00 |
|
goldsimon
|
0f9799d7e0
|
Added todo: free the oldest entry when the MEMP_REASSDATA pool is empty or the IP_REASS_MAX_PBUFS limit is reached
|
2007-10-09 19:31:54 +00:00 |
|
goldsimon
|
8980c3f74e
|
Typo in chain_frag_into_packet_and_validate (but obviously worked anyway...)
|
2007-10-09 06:13:12 +00:00 |
|
goldsimon
|
e561c7b49d
|
Added check for overlapping or duplicate fragments. ip_reass_init() is not needed any more (the check is done in chain_frag_into_packet_and_validate()).
|
2007-10-07 11:52:32 +00:00 |
|
goldsimon
|
b7ef6077df
|
Changed IP_REASSEMBLY to enqueue the received pbufs so that multiple packets can be reassembled simultaneously and no static reassembly buffer is needed.
|
2007-10-06 15:24:43 +00:00 |
|
fbernon
|
e3cd1ac1f9
|
Minor changes (but in lot of files): add #if/#endif for options where they could miss. #if LWIP_xxx if always put after #include "lwip/opt.h" (note this one indirectly include cc.h). Move others includes inside #if/#endif block.
|
2007-09-07 23:01:59 +00:00 |
|
fbernon
|
9152d6671c
|
Comments Fix for Doxygen documentation
|
2007-08-09 22:21:44 +00:00 |
|
goldsimon
|
f9c30017b0
|
Fixed bug #20429: use the new pbuf_copy_partial instead of the old copy_from_pbuf, which illegally modified the given pbuf; Introduced pbuf_copy_partial, making netbuf_copy_partial use this function.
|
2007-07-25 18:53:45 +00:00 |
|
goldsimon
|
eb875de67e
|
Added assertions where PBUF_RAM pbufs are used and an assumption is made that this pbuf is in one piece (i.e. not chained). These assumptions clash with the possibility of converting to fully pool-based pbuf implementations, where PBUF_RAM pbufs might be chained.
|
2007-07-03 20:28:35 +00:00 |
|
fbernon
|
bdbc96f453
|
opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162. Rename MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid some macro names collision with some OS macros.
|
2007-06-13 17:17:26 +00:00 |
|
goldsimon
|
3a09de82e3
|
Corrected #if ... when to include copy_from_pbuf()
|
2007-06-08 22:20:59 +00:00 |
|
goldsimon
|
d8d281281c
|
Done some work on task #1549 (function documentation)
|
2007-06-08 12:08:44 +00:00 |
|
goldsimon
|
3a607a197e
|
opt.h, ip_frag.c, ip_frag.h, ip.c: Added option IP_FRAG_USES_STATIC_BUF (defaulting to off for now) that can be set to 0 to send fragmented packets by passing PBUF_REFs down the stack.
|
2007-06-03 18:36:42 +00:00 |
|
goldsimon
|
255d5a748f
|
Included patch #5920: Create define to override C-library memcpy. 2 Defines are created: MEMCPY() for normal memcpy, SMEMCPY() for situations where some compilers might inline the copy and save a function call. Also replaced all calls to memcpy() with calls to (S)MEMCPY().
|
2007-05-10 05:20:05 +00:00 |
|
fbernon
|
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.
|
2007-03-06 19:31:49 +00:00 |
|
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 |
|
christiaans
|
b4f1deaa46
|
Accepted patch #5493 IP frag/reass config item tweak.
|
2006-11-27 14:48:21 +00:00 |
|
christiaans
|
43bf9a8e46
|
Added SNMP counters, moved some defines.
|
2006-08-11 14:12:05 +00:00 |
|
christiaans
|
a5cab96ff3
|
Added ip_frag_init() and some LWIP_DEBUGFs.
|
2006-07-04 08:24:17 +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 |
|
christiaans
|
3aea7bc053
|
Removed timer dependency on sys.c (raw-API). Beautified indentation.
|
2006-02-13 08:12:07 +00:00 |
|
christiaans
|
e1b215aa73
|
Introduced cc.h formatters and removed SO_REUSE from transport layers.
|
2005-11-25 12:03:38 +00:00 |
|
likewise
|
6880fa62f8
|
Added some missing string.h includes.
|
2005-01-24 21:05:47 +00:00 |
|
softins
|
a4f5673ff3
|
Small corrections to some debugging statements, to pacify compiler.
|
2004-07-22 08:06:00 +00:00 |
|
likewise
|
8bb3cab9d2
|
Adpated comments to match Doxygen/JavaDoc style.
|
2004-05-05 13:28:44 +00:00 |
|
likewise
|
e1c4bfad05
|
Merged from DEVEL, except for the API change in etharp.c.
|
2004-02-07 00:30:03 +00:00 |
|