goldsimon
4eb90e75ef
examples/httpd: add a httpd fs tree for the examples (e.g. SSI)
8 years ago
goldsimon
9f9ead7792
httpd examples: fix a few whitespace and spelling things
8 years ago
goldsimon
f4ac194054
httpd: add example for LWIP_HTTPD_CGI
8 years ago
goldsimon
16351b5f3d
httpd: added example for LWIP_HTTPD_CGI_SSI
8 years ago
goldsimon
5e41ca8e23
freertos port: check we're not in interrupt
...
Also try to make LWIP_ASSERT_CORE_LOCKED() work for NO_SYS (check we're
not in interrupt)
8 years ago
goldsimon
1386081950
httpd: fs_example: implement delayed reading of file size
...
This also adapts to the change in persistent connections to httpd:
custom files need the flag FS_FILE_FLAGS_HEADER_PERSISTENT to be
served over a persistent connection.
8 years ago
goldsimon
44d4624999
httpd/fs_example: show delayed and limited read
...
This change makes the example a bit less readable but shows (and tests)
how delayed read works (if file size is known in fs_open_custom).
8 years ago
goldsimon
2dc42d0129
add addons/tcp_md5 (example implementation for new hooks)
...
This is an implementation of TCP MD5 signatures by using various hooks in
lwIP to implement custom tcp options and custom socket options.
See README on how to use it.
Signed-off-by: goldsimon <goldsimon@gmx.de>
8 years ago
Joel Cunningham
c0b4067910
win32: add test_netif to vs project files
8 years ago
goldsimon
d11f59fa86
win32 cc.h: allow inlining functions at the compiler's decision (disable warning)
8 years ago
goldsimon
3a76d48311
win32: add new file raw_priv.h to project
8 years ago
goldsimon
ed928d0a60
freertos port: fix LWIP_NETCONN_SEM_PER_THREAD
8 years ago
goldsimon
669b1843ce
freertos port: fix compiling sys_arch_netconn_sem_alloc() with strict warnings
8 years ago
goldsimon
0868a3a8ae
freertos port: make sys_now() overriable
...
for platforms that have a hardware timer, this can be more
accurate than using freertos ticks
8 years ago
goldsimon
8b8f408cc0
freertos port: add sys_mbox_trypost_fromisr() & ERR_NEED_SCHED
8 years ago
goldsimon
571728c172
win32 sys_arch: made global variables static; minor indentation fixes
8 years ago
goldsimon
0b7893b804
Added dummy sys_mbox_trypost to win32 and unix ports
8 years ago
goldsimon
f4140a0548
freertos port: allow thread stack size to be passed in number of stack words (freertos like; optional)
8 years ago
Our Air Quality
f73d8783d5
freertos: add core locking check support
...
Add support to check the core locking: sys_lock_tcpip_core, sys_unlock_tcpip_core, sys_mark_tcpip_thread, sys_check_core_locking
Signed-off-by: goldsimon <goldsimon@gmx.de>
8 years ago
Our Air Quality
68beada75e
freertos: misc fixes
...
* sys_msleep - typo
* sys_arch_protect - note and check the nesting (optional)
* sys_arch_mbox_fetch - handle msg being NULL
* sys_arch_mbox_tryfetch - handle msg being NULL
* sys_mbox_free - check that the queue is empty (optional)
Signed-off-by: goldsimon <goldsimon@gmx.de>
8 years ago
goldsimon
c27b222217
Work on freertos port: added preprocessor sanity checks of freertos configuration;
...
- renamed LWIP_FREERTOS_PROTECT_USES_MUTEX to LWIP_FREERTOS_SYS_ARCH_PROTECT_USES_MUTEX;
- sys_jiffies returns ticks, not time in ms
8 years ago
Dirk Ziegelmeier
5c76dee5fd
Update MSVC projects for timer unit test
8 years ago
Dirk Ziegelmeier
3c88535eec
Enable LWIP_NETIF_EXT_STATUS_CALLBACK in win32 port
8 years ago
Dirk Ziegelmeier
1f7d918301
Fix indent in sys_arch.c
8 years ago
Dirk Ziegelmeier
4a5ee4cc34
Some fixes in unix simhost for SLIP initialization
8 years ago
Axel Lin
4317e16a23
ports/freertos: Remove unused variable in sys_mbox_free
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
8 years ago
goldsimon
c49fd72046
freertos port: fix sys_now() for systems with ticks other than 1ms; use taskENTER_CRITICAL instead of vPortEnterCritical (same for exit)
8 years ago
goldsimon
b266694609
FreeRTOS port: fix default value of LWIP_FREERTOS_PROTECT_USES_MUTEX to 0
8 years ago
Axel Lin
2400a13529
ports/freertos: Fix timeout for sys_arch_mbox_fetch
...
Pass timeout_ticks instead of portMAX_DELAY to xQueueReceive if
timeout_ms is set.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
8 years ago
goldsimon
308998bba6
Added FreeRTOS port
8 years ago
Dirk Ziegelmeier
d20a35a72c
Work on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
...
Add note embedded systems should check about NOT being in an interrupt context
8 years ago
Dirk Ziegelmeier
16625d9e3d
Work on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
...
Fix check in LWIP_TCPIP_CORE_LOCKING case again - check current thread is holding the core lock instead of just checking the core lock is being held by _any_ thread
8 years ago
Dirk Ziegelmeier
015fcb5b6c
Work on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
...
Fix check in LWIP_TCPIP_CORE_LOCKING case
8 years ago
Dirk Ziegelmeier
68385d37de
Work on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
...
Implement checks in unix port
8 years ago
Dirk Ziegelmeier
66850e50fa
Fix compile for LWIP_TCPIP_CORE_LOCKING=0
8 years ago
Dirk Ziegelmeier
4c854d49bc
Work on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
...
Extend checks to support LWIP_TCPIP_CORE_LOCKING
8 years ago
Dirk Ziegelmeier
a334ca484a
Start working on task #14780 : Add debug helper asserts to ensure threading/locking requirements are met
8 years ago
Dirk Ziegelmeier
384c26553f
Also add mdns_resp_announce() to Win32 application
8 years ago
Dirk Ziegelmeier
2a58600d87
Call mdns_resp_announce() after adding services - needed due to latest changes in MDNS code.
8 years ago
Joel Cunningham
b8730f3dd4
win32: add test_def to vs project files
8 years ago
Dirk Ziegelmeier
a6a03c3554
Fix a type in SNMP example that may lead to confusion.
...
The number in SNMP_CREATE_TREE_NODE(0, private_nodes); is not actually used, but for consistency, it should be the same as in the base OID declaration.
8 years ago
Dirk Ziegelmeier
c374646ec3
lwip_prvmib.c: Use lwip_isdigit portability macro
8 years ago
goldsimon
4d5cf3e586
try to fix the unix port after moving this to 'examples'
8 years ago
goldsimon
441e335f53
adjust project/make files to files moved to new 'examples' folder
8 years ago
goldsimon
5dac13ab99
move examples for snmp and httpd to a new folder 'examples'
...
These examples should be correctly marked as such.
8 years ago
Joel Cunningham
01a91d3d6b
Add DNS-SD hook for LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE
...
This adds an implementation of LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE that
uses the DNS-SD API provided by mDNSResponder
This can be used to handle .local (or all queries) sent through
netconn_gethostbyname()
8 years ago
goldsimon
599b1f759d
socket_examples: use 'poll' in one of the tests...
8 years ago
goldsimon
f680173b84
win32 sys_arch: added checks that SYS_ARCH_PROTECT() is not called nested and that SYS_ARCH_PROTECT() is not called when we are about to invoke the OS scheduler
8 years ago
goldsimon
9274670ee5
win32/msvc: make snmpv3_mbedtls compilable (include path was missing)
8 years ago
goldsimon
35725dd040
Added httpd example for SSI (and added the two httpd examples to the win32 port)
8 years ago