goldsimon
|
ef3666ef26
|
Checked in some ideas of patch #6460 (loop optimizations) and created defines for swapping bytes and folding u32 to u16.
|
2008-06-17 20:06:25 +00:00 |
|
goldsimon
|
eba83ab740
|
Changed loopback code (less difference between NO_SYS = 0 / 1), added setting LWIP_LOOPBACK_MAX_PBUFS to limit loopback-queued pbufs
|
2008-06-17 19:39:22 +00:00 |
|
goldsimon
|
88ff8c83e9
|
Checked in slightly modified version of patch # 6370: Moved loopif code to netif.c so that loopback traffic is supported on all netifs (all local IPs).
|
2008-06-12 20:10:08 +00:00 |
|
fbernon
|
7fa9010f35
|
igmp.h, igmp.c: Fix bug #22613 "IGMP iphdr problem" (could have some problems to fill the IP header on some targets, use now the ip.h macros to do it).
|
2008-03-17 13:40:00 +00:00 |
|
jifl
|
a48370d5e9
|
* inet_chksum.c: Allow choice of one of the sample algorithms to be
made from lwipopts.h. Fix comment on how to override LWIP_CHKSUM.
|
2008-03-10 16:12:31 +00:00 |
|
fbernon
|
2637f2ad3a
|
inet_chksum.c: minor change for coding style
|
2008-03-04 14:26:44 +00:00 |
|
kieranm
|
42344ce20c
|
2008-03-04 Kieran Mansley (contributions by others)
* Numerous small compiler error/warning fixes from contributions to
mailing list after 1.3.0 release candidate made.
|
2008-03-04 13:41:23 +00:00 |
|
goldsimon
|
c54777d957
|
Coding style: use named constants instead of numbers only
|
2008-01-27 11:22:14 +00:00 |
|
fbernon
|
7b11fb75d9
|
Minor changes: replace directy call to memcpy by MEMCPY macro.
|
2008-01-26 16:11:39 +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 |
|
fbernon
|
52e6922e5a
|
ip.c: Integrate patch #6369" ip_input : checking before realloc".
|
2008-01-14 20:53:23 +00:00 |
|
jifl
|
b333b7c9dc
|
* opt.h, ip.c: Rename IP_OPTIONS define to IP_OPTIONS_ALLOWED to avoid
conflict with Linux system headers.
|
2008-01-09 10:05:23 +00:00 |
|
jifl
|
7e616ea71c
|
* core/ipv4/ip.c (ip_input): Rename ipsrcchecking -> check_ip_src, to make
purpose clearer.
|
2008-01-03 17:49:25 +00:00 |
|
fbernon
|
22e2540eb6
|
autoip.c, etharp.c: ip_addr.h: Integrate patch #6348: "Broadcast ARP packets in autoip". The change in etharp_raw could be removed, since all calls to etharp_raw use ethbroadcast for the "ethdst_addr" parameter. But it could be wrong in the future.
|
2007-12-31 13:22:03 +00:00 |
|
fbernon
|
8d39b1a152
|
ip.c: Fix bug #21846 "LwIP doesn't appear to perform any IP Source Address Filtering" reported by Tom Evans.
|
2007-12-30 01:09:11 +00:00 |
|
goldsimon
|
f3f7bd00e5
|
ip_input: check if a packet is for inp first before checking all other netifs on netif_list (speeds up packet receiving in most cases)
|
2007-12-03 17:55:01 +00:00 |
|
goldsimon
|
788892ee7c
|
Minor coding style changes
|
2007-11-28 21:44:17 +00:00 |
|
goldsimon
|
f07c1cf874
|
fixed bug #21643 (udp_send/raw_send don't fail if netif is down) by letting ip_route only use netifs that are up.
|
2007-11-28 06:48:50 +00:00 |
|
goldsimon
|
3874f5f5e8
|
Minor coding style changes
|
2007-11-27 19:55:31 +00:00 |
|
fbernon
|
9940b049ec
|
Minor changes (documentation).
|
2007-11-25 00:28:06 +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
|
0686380302
|
Removed bug on memory failure introduced 3 months ago in rev 1.34 (input pbuf was freed on puf_alloc failure)
|
2007-10-15 19:18:02 +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
|
87c5a61d07
|
Minor changes by Andrew Dennison: add sanity check, improve debug messages for memp, fix some warnings...
|
2007-09-21 12:36:35 +00:00 |
|
goldsimon
|
0bf32b957d
|
Fixed bug #21107 (didn't reset IP TTL in ICMP echo replies)
|
2007-09-19 06:12:34 +00:00 |
|
fbernon
|
939180c1a1
|
igmp.h, igmp.c, netif.h, netif.c, ip.c: To enable to have interfaces with IGMP, and others without it, there is a new NETIF_FLAG_IGMP flag to set in netif->flags if you want IGMP on an interface. igmp_stop() is now called inside netif_remove(). igmp_report_groups() is now called inside netif_set_link_up() (need to have LWIP_NETIF_LINK_CALLBACK=1) to resend reports once the link is up (avoid to wait the next query message to receive the matching multicast streams).
|
2007-09-09 20:46:33 +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
|
ca866c0d7d
|
Integrate "task #7272 : LWIP_ICMP option". The new option LWIP_ICMP enable/disable ICMP module inside the IP stack (enable per default). Be careful, disabling ICMP make your product non-compliant to RFC1122, but help to reduce footprint, and to reduce "visibility" on the Internet.
|
2007-09-05 17:20:45 +00:00 |
|
fbernon
|
c1f89c5640
|
Move some build time checkings inside init.c for task #7142 "Sanity check user-configurable values".
|
2007-09-05 13:19:25 +00:00 |
|
fbernon
|
d4616a7fc6
|
Replace mem_malloc call by memp_malloc, and use a new MEMP_NUM_IGMP_GROUP option (see opt.h to define the value). It will avoid potential fragmentation problems, use a counter to know how many times a group is used on an netif, and free it when all applications leave it. MEMP_NUM_IGMP_GROUP got 8 as default value (and init.c got a sanity check if LWIP_IGMP!=0).
|
2007-09-04 15:15:20 +00:00 |
|
fbernon
|
62b4741b19
|
Changes for "#20503 IGMP Improvement". Initialize igmp_mac_filter to NULL in netif_add (this field should be set in the netif's "init" function). Use the "imr_interface" field (for socket layer) and/or the "interface" field (for netconn layer), for join/leave operations. The igmp_join/leavegroup first parameter change from a netif to an ipaddr. This field could be a netif's ipaddr, or "any" (same meaning than ip_addr_isany).
|
2007-09-03 14:53:18 +00:00 |
|
fbernon
|
d7cd90b5b8
|
Add in igmp_joingroup & igmp_leavegroup a LWIP_ERROR checking on netif value.
|
2007-09-03 09:56:38 +00:00 |
|
fbernon
|
c671f8e7ef
|
Replace API programmation error checking for IGMP join/leave (ismulticast(addr)) by LWIP_ERROR checking.
|
2007-08-30 15:48:14 +00:00 |
|
fbernon
|
ab36270885
|
igmp.h, igmp.c: Some changes to remove some redundant code, add some traces, and fix some coding style.
|
2007-08-30 14:20:54 +00:00 |
|
fbernon
|
36b6f308e6
|
Minor fix (coding style, comments, spaces, endline...)
|
2007-08-30 09:14:28 +00:00 |
|
fbernon
|
cd208314e0
|
igmp.h, igmp.c, tcpip.c, init.c, netif.c: change igmp_init and add igmp_start. igmp_start is call inside netif_add. Now, igmp initialization is in the same spirit than the others modules. Modify some IGMP debug traces.
|
2007-08-29 21:12:32 +00:00 |
|
marcbou
|
0b8b9e8033
|
Changed // style comment to /* style */ comment.
|
2007-08-16 20:41:56 +00:00 |
|
fbernon
|
9152d6671c
|
Comments Fix for Doxygen documentation
|
2007-08-09 22:21:44 +00:00 |
|
fbernon
|
d057e95ce3
|
Minor Fix (remove unused USE_ROUTER_ALERT and some coding style)
|
2007-08-09 20:21:59 +00:00 |
|
fbernon
|
ac2932bac3
|
stats.h, stats.c, igmp.h, igmp.c, opt.h: Fix for bug #20503 : IGMP Improvement. Introduce IGMP_STATS to centralize statistics management.
|
2007-08-09 20:09:22 +00:00 |
|
fbernon
|
7c104c8fbb
|
igmp.h, igmp.c, ip.c: Fix minor changes from bug #20503 : IGMP Improvement. This is mainly on using lookup/lookfor, and some coding styles...
|
2007-08-09 16:53:47 +00:00 |
|
fbernon
|
f1c4a9ebfa
|
Minor fix (warning when LWIP_DEBUG is undefined)
|
2007-07-29 08:31:31 +00:00 |
|
fbernon
|
42eead8f41
|
igmp.c: Fix bug #20595 to accept IGMPv3 "Query" messages.
|
2007-07-26 17:10:56 +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 |
|
goldsimon
|
96e4ec4a15
|
Added option LWIP_NETIF_HWADDRHINT (default=off) to cache ARP table indices with each pcb instead of single-entry cache for the complete stack.
|
2007-07-02 20:41:22 +00:00 |
|
goldsimon
|
0113b735ad
|
Fixed a little cast-warning from u32_t to u16_t
|
2007-07-02 20:07:19 +00:00 |
|
fbernon
|
ab4c3a326f
|
autoip.c: replace most of rand() calls by a macro LWIP_AUTOIP_RAND which compute a "pseudo-random" value based on netif's MAC and some autoip fields. It's always possible to define this macro in your own lwipopts.h to always use C library's rand(). Note that autoip_create_rand_addr doesn't use this macro.
|
2007-06-28 18:05:38 +00:00 |
|
fbernon
|
a1d176b643
|
autoip.h/.c: change autoip_init & autoip_create_rand_addr to use netif's MAC address and tried_llipaddr to generate an "autoip"...
|
2007-06-22 18:54:34 +00:00 |
|
fbernon
|
ec7333d406
|
Some changes for AutoIP integration in tcpip.c, and some comments.
|
2007-06-19 10:11:27 +00:00 |
|
fbernon
|
6a40426421
|
Minor fix: warning, type... for patch #5952 : Integration of AutoIP module
|
2007-06-18 21:45:34 +00:00 |
|
goldsimon
|
f1d95379bc
|
Changed all references to old debug defines to the new ones (e.g. LWIP_DBG_TRACE)
|
2007-06-16 11:39:01 +00:00 |
|
goldsimon
|
7c4377af0e
|
Added debug output for icmp_input if ip_output_if worked or not.
|
2007-06-16 11:23:26 +00:00 |
|
goldsimon
|
c0925d2d04
|
minor fix in assertion text
|
2007-06-14 07:21:55 +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 |
|
fbernon
|
5993c816d8
|
Minor fix. Add "static" to IGMP's global variables, and rename group_list to igmp_group_list...
|
2007-06-11 07:27:12 +00:00 |
|
fbernon
|
15ccac78d9
|
Minor fix. Add comments in source file from documentation text file by Dominik Spies.
|
2007-06-11 07:26:10 +00:00 |
|
fbernon
|
d81841f54e
|
Minor fix (coding style)
|
2007-06-10 20:02:43 +00:00 |
|
goldsimon
|
95f4c02381
|
Included switch LWIP_UDPLITE (enabled by default) to switch off UDP-Lite support if not needed (reduces udp.c code size)
|
2007-06-10 12:02:24 +00:00 |
|
fbernon
|
e01f342048
|
Contrib module by Dominik Spies: autoip.h, autoip.c, dhcp.h, dhcp.c, netif.h, netif.c, etharp.h, etharp.c, opt.h: AutoIP implementation available for IPv4, with new options LWIP_AUTOIP and LWIP_DHCP_AUTOIP_COOP if you want to cooperate with DHCP. Some tips to adapt (see TODO mark in the source code).
|
2007-06-09 16:57:04 +00:00 |
|
goldsimon
|
3a09de82e3
|
Corrected #if ... when to include copy_from_pbuf()
|
2007-06-08 22:20:59 +00:00 |
|
fbernon
|
9768657fc7
|
Minor fix (spaces)
|
2007-06-08 16:24:28 +00:00 |
|
goldsimon
|
a185e19bc1
|
Let lookup_group() call lookfor_group() to reduce code size, done some work on task #1549 (function documentation) and minor changes to meet coding standard
|
2007-06-08 12:54:40 +00:00 |
|
goldsimon
|
b7603f8600
|
Done some work on task #1549 (function documentation)
|
2007-06-08 12:52:46 +00:00 |
|
goldsimon
|
d8d281281c
|
Done some work on task #1549 (function documentation)
|
2007-06-08 12:08:44 +00:00 |
|
goldsimon
|
fb5a1a2c0f
|
Minor changes to meet coding standard
|
2007-06-08 11:51:57 +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
|
a6b0d40f9d
|
Converted some DEBUGFs that should never happen to LWIP_ASSERTs
|
2007-06-03 17:18:33 +00:00 |
|
goldsimon
|
4f7dc3c76c
|
Done some work on task #1549 (function documentation)
|
2007-06-03 11:26:55 +00:00 |
|
goldsimon
|
7abfe74fa4
|
Corrected bug #19937: ICMP assumes p_buf has space for ethernet header. Allocating new pbuf if the input pbuf isn't big enough.
|
2007-06-03 10:48:23 +00:00 |
|
goldsimon
|
d5a159d7af
|
Done some work on task #1549 (function documentation)
|
2007-06-02 17:12:36 +00:00 |
|
fbernon
|
0f8a2d6418
|
tcpip.c, igmp.h, igmp.c: Fixed bug "#19800 : IGMP: igmp_tick() will not work with NO_SYS=1". Note that igmp_init is always in tcpip_thread (and not in tcpip_init) because we have to be sure that network interfaces are already added (mac filter is updated only in igmp_init for the moment).
|
2007-05-16 14:12:52 +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 |
|
jifl
|
748ba22a19
|
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).
|
2007-04-12 18:55:44 +00:00 |
|
fbernon
|
26e88dc2c1
|
Don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets. See patch #5834.
|
2007-04-03 14:08:11 +00:00 |
|
fbernon
|
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.
|
2007-03-30 13:30:42 +00:00 |
|
fbernon
|
5368a760cf
|
most of files: prefix all debug.h define with "LWIP_" to avoid any conflict with others environment defines (these were too "generic").
|
2007-03-30 08:47:04 +00:00 |
|
fbernon
|
bb34d8cfd1
|
api_msg.c, igmp.c, igmp.h: Fix C++ style comments
|
2007-03-21 14:47:52 +00:00 |
|
fbernon
|
a880469d7d
|
Remove obsolete include from my port.
|
2007-03-21 13:57:45 +00:00 |
|
kieranm
|
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.
|
2007-03-21 12:55:00 +00:00 |
|
kieranm
|
b422864d5d
|
sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and
comment out missing header include in icmp.c
|
2007-03-21 12:50:04 +00:00 |
|
fbernon
|
1af676385c
|
Add igmp.h and igmp.c inside tree :
src/core/ipv4/igmp.c
src/include/ipv4/lwip/igmp.h
|
2007-03-11 19:45:32 +00:00 |
|
fbernon
|
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).
Mace Gael for the upper layers, Steve Reynolds for lower ones...
|
2007-03-11 19:16:38 +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
|
d4b6471d39
|
Replaced tabs with space.
|
2006-11-17 10:51:13 +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
|
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
|
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 |
|