Dirk Ziegelmeier
7f60cb3889
Improve netif client data API for lwIP internal clients - these can use a compile-time constant to access their data now
2016-08-18 12:37:21 +02:00
Dirk Ziegelmeier
ebf7959880
Coding style fixes in netif.c
2016-08-18 11:44:19 +02:00
Dirk Ziegelmeier
0c7a59b5db
Minor: Documentation fixes
2016-08-18 11:06:50 +02:00
Dirk Ziegelmeier
c9ad58308a
Minor documentation fixes
2016-08-18 10:59:18 +02:00
Dirk Ziegelmeier
a262a2f252
MDNS: Add callback to be called manually when IP has changed to announce new IP
2016-08-18 10:59:08 +02:00
Dirk Ziegelmeier
fa6a2d48cc
Fix DHCP unit test after my last changes
2016-08-18 06:09:02 +02:00
Dirk Ziegelmeier
c62bfd8146
Port AUTOIP to new netif client data API
2016-08-17 21:26:08 +02:00
Dirk Ziegelmeier
1db9631e7d
Port DHCP to new netif client data API
2016-08-17 21:04:44 +02:00
Dirk Ziegelmeier
c8c804140d
Fix possible NULL pointer dereference in mdns.c introduced in my last commit
2016-08-17 21:00:59 +02:00
Dirk Ziegelmeier
ee815e4e7a
Finish porting MDNS to new netif client data API
2016-08-17 20:09:28 +02:00
Dirk Ziegelmeier
c28fb298b7
Introduce an API to store arbitrary data pointers in struct netif
...
Let MDNS to use the new API
TODO: AutoIP, DHCP
2016-08-17 16:37:15 +02:00
Dirk Ziegelmeier
93b286e508
Also rename LWIP_MDNS to LWIP_MDNS_RESPONDER in unit tests...
2016-08-17 16:03:42 +02:00
Dirk Ziegelmeier
2a90f33757
MDNS responder: two functions can take struct mdns_host instead of netif as argument
2016-08-17 12:32:33 +02:00
Dirk Ziegelmeier
efb7b3d5f8
Rename LWIP_MDNS to LWIP_MDNS_RESPONDER
2016-08-17 12:07:38 +02:00
Dirk Ziegelmeier
02d51e3ac5
Add missing file doxygen header in two mdns files
2016-08-16 09:46:19 +02:00
Dirk Ziegelmeier
fec657bb38
MDNS: Substitute a few strlens by sizeof()
2016-08-16 09:33:53 +02:00
Dirk Ziegelmeier
858287fc3a
MDNS: Fix several MSVC warnings
2016-08-16 08:33:16 +02:00
Dirk Ziegelmeier
af6b707e9a
mdns_opts.h: Add missing include lwip/opt.h
2016-08-16 08:28:59 +02:00
Dirk Ziegelmeier
ab72ed8517
Fix options #include in mdns code
2016-08-16 08:22:41 +02:00
Dirk Ziegelmeier
482a4d2ce9
MDNS: Correct setting TTL when IGMP is not enabled
2016-08-16 08:09:19 +02:00
Dirk Ziegelmeier
c61c8f3766
Use udp_get_multicast_ttl/udp_set_multicast_ttl accessors where applicable
2016-08-16 08:08:06 +02:00
Dirk Ziegelmeier
af48bec63c
Update MDNS docs after porting to dual-stack API
2016-08-14 17:12:01 +02:00
Dirk Ziegelmeier
39ac8e2c57
Remove some MDNS functions from documentation, they are only visible for unit tests
2016-08-14 17:08:39 +02:00
Dirk Ziegelmeier
52449e12c0
Forgot to save before committing...
2016-08-14 16:56:34 +02:00
Dirk Ziegelmeier
2335c1a73c
Port MDNS to new dual-stack API
2016-08-14 16:47:45 +02:00
Dirk Ziegelmeier
ebe0e6f98d
Some documentation cosmetics in mdns.c
2016-08-14 15:42:22 +02:00
Dirk Ziegelmeier
4d85def20a
Update README applications sections
2016-08-14 15:39:58 +02:00
Dirk Ziegelmeier
b472648e40
Fix wrong copyright header in mdns_opts.h
2016-08-14 15:36:41 +02:00
Dirk Ziegelmeier
a2894ede1c
MDNS: make a few arguments const where suitable
2016-08-14 15:31:49 +02:00
Dirk Ziegelmeier
306113c8c3
Add MDNS to doxygen docs
2016-08-14 15:22:05 +02:00
Erik Ekman
4919932c49
Apply patch #8755 : Multicast DNS responder support from Erik Ekman
2016-08-14 15:07:45 +02:00
Sylvain Rochet
4af297fc20
PPP: fix don't print valid LCP echo request/reply packets if the link is up
...
The check for link up was missing, meaning valid LCP echo request/reply
packets are filtered whatever the PPP state is, despite what the comment
says.
Fix it by checking the PPP state as we would like to have done when it
was written.
2016-08-13 16:02:38 +02:00
Sylvain Rochet
4e1f8effaf
PPP: fix ppp_write internal documentation
...
This function returns an err_t, not a number of characters written.
2016-08-13 16:02:38 +02:00
Dirk Ziegelmeier
5493220c93
Move DNS protocol structs to separate header. Needed for Erik Ekman's MDNS implementation.
2016-08-13 09:05:28 +02:00
Dirk Ziegelmeier
ce6ea0df15
Convert SNMP snmp_vb_enumerator_err_t to a typedef and fix resulting compile error
2016-08-12 22:59:21 +02:00
Dirk Ziegelmeier
6dcb2b2415
Work on bug #48730 : Enums should be used instead of multiple defines (where applicable)
2016-08-12 22:51:43 +02:00
Dirk Ziegelmeier
36b9caed23
Fix compile of unit test
2016-08-11 23:54:59 +02:00
Dirk Ziegelmeier
13251526fa
Strip path prefix in doxygen docs - no /home/dziegel/ in the future :-)
2016-08-11 21:25:28 +02:00
Dirk Ziegelmeier
b34baff546
Convert state #defines in autoip.h and dhcp.h to enums. May be useful in *_state structs to simplify debugging in the future.
2016-08-11 21:04:39 +02:00
goldsimon
6f62fe5998
ensure the 'prot' headers are as small & portable as possible
2016-08-11 15:11:34 +02:00
goldsimon
dc7340bbd5
started with bug #48728 : move protocol definitions to 'include/prot/*.h' files (started with some IPv4 protocols)
2016-08-11 14:36:09 +02:00
Ajay Bhargav
d95ab511d0
netif:ppp: fix mempool build issues when PPP is enabled
...
During documentation updated LWIP_MEMPOOL_PROTOTYPE was moved inside
"#if MEMP_MEM_MALLOC" which cause ppp build to break. This patch fix that
issue.
ref commit-id: 2f950a7dcc
Signed-off-by: Ajay Bhargav <contact@rickeyworld.info>
2016-08-11 12:54:55 +02:00
goldsimon
bf3e8e6a48
minor coding style fixes in IPv6 code
2016-08-11 09:23:43 +02:00
Sylvain Rochet
3194c9c4cf
PPP: filter more packets in ppp_dump_packet
...
VJ packets, Compressed packets, IPv4 and IPv6 packets are useless in
the PPP packet dump. We properly filtered IPv4 and IPv6 packets but
we forgot filtering VJ and Compressed packets.
Improve the filtering rule to filter packets which are not auth
protocol (< 0xC000) and which are not control protocol (0x8000 bit
not set).
2016-08-10 23:39:28 +02:00
Axel Lin
18fcc1d504
[PATCH] debug: Add braces around empty body in an 'if' statement
...
I have below code in my cc.h:
#ifdef MYSDK_LWIP_DEBUG
#define LWIP_PLATFORM_ASSERT(x) MYSDK_ASSERTION_FAIL_ACTION()
#else
#define LWIP_PLATFORM_ASSERT(x)
#endif /* ifdef MYSDK_LWIP_DEBUG */
I got below error when in non-debug build:
src/include/lwip/debug.h:76:32: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
LWIP_PLATFORM_ASSERT(message); } while(0)
^
Fix the build error by adding braces around empty body in an 'if' statement.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: sg <goldsimon@gmx.de>
2016-08-09 21:52:13 +02:00
Dirk Ziegelmeier
5c0944e01a
Don't document tcp_send_empty_ack and tcp_keepalive - users should never need them
2016-08-09 10:17:16 +02:00
Dirk Ziegelmeier
5a09fd3e35
Don't document ip4_route and ip6_route, users should use ip_route instead
2016-08-09 10:16:40 +02:00
Dirk Ziegelmeier
0005b7c2d0
Revert my last change in sntp.c - allow usage of custom error values in err_t
2016-08-09 08:20:28 +02:00
Dirk Ziegelmeier
6ba03d543f
Activate TCP backlog in documentation
2016-08-09 08:18:42 +02:00
Dirk Ziegelmeier
61dae47a71
Relete SNMP README and incorporate it's text in doxygen docs
2016-08-08 22:40:57 +02:00