Dirk Ziegelmeier
623f9ce046
Remove one debug message from Daniel's patch
10 years ago
Daniel Elstner
4d4710dadf
Bug #49125 addendum: Remove group from list before callback
...
When leaving a multicast group, remove the group from the list
before invoking the MAC filter callback. This avoids the need
for the callee to skip over the group that is about to be deleted.
10 years ago
Dirk Ziegelmeier
2facd2d64d
Apply modified patch from Daniel Elstner to fix bug #49124 : mDNS should not use snprintf()
10 years ago
Dirk Ziegelmeier
ee4cd45c98
Fix bug #49125 : Need a way to iterate multicast groups for MAC filtering
...
-> let list heads be a public symbol
10 years ago
Dirk Ziegelmeier
58c8e0f8ca
Implement request by Marco Veeneman: Make snmp_send_trap() public
10 years ago
Dirk Ziegelmeier
8dbd1abdc4
Minor coding style fixes while reading SNMP code
10 years ago
Dirk Ziegelmeier
ef0dc65515
Fix GCC warning "invalid suffix on literal; C++11 requires a space between literal and string macro" in arch.h. Pointed out by Thomas Nittel.
10 years ago
Dirk Ziegelmeier
8cd43a3dd9
Documentation: Add one more note PCB is already freed in tcp_err callback.
10 years ago
Erik Ekman
4a73bcbc65
mdns: Revert answer count patch
...
Answers written to outpackets can be additional answers
or normal answers to questions.
10 years ago
Axel Lin
f38705c38c
mdns: Update answers counter in mdns_add_answer rather than each caller
...
This simplifies the code and less error prone.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
10 years ago
Joel Cunningham
b7c2553b46
bug #48964 : Make PBUF_POOL sanity checks contingent on PBUF_POOL_SIZE
...
This commit adds support to the sanity checks in init.c to ensure that
PBUF_POOL is in use
In ports with drivers/netifs that use PBUF_REF for the RX pathway, there
is no need for the PBUF_POOL memory pool. This allows the port to define
PBUF_POOL_SIZE to 0
10 years ago
Axel Lin
f8a95aa27f
dns: Drop unnecessary txid variable in dns_check_entry
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
10 years ago
Dirk Ziegelmeier
d66442ba91
Fix compile when TCP, UDP and RAW are disabled
10 years ago
Dirk Ziegelmeier
aeae4e91db
Fix compile when UDP is disabled
10 years ago
sg
34682facd1
Remove ip4_frag IP_FRAG_USES_STATIC_BUF code: nearly the same as the other code, but IP_FRAG_USES_STATIC_BUF doesn't work when queuing pbufs
10 years ago
Dirk Ziegelmeier
ac6b64cf66
Implement a more readable fix for pbuf_memcmp than my last fix
10 years ago
Dirk Ziegelmeier
b944ceb89d
Fix compile when LWIP_NUM_NETIF_CLIENT_DATA == 0 and AUTOIP or DHCP are enabled
10 years ago
Axel Lin
ab8a1a0430
netbuf: Fixup a copule LWIP_ERROR messages
...
Fix trivial copy-n-paste mistake.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
10 years ago
Dirk Ziegelmeier
4325aca0f7
Fix pbuf_memcmp() implementation by using pbuf_try_get_at() instead of pbuf_get_at(). Payload out-of-bounds access was not handled correctly.
10 years ago
sg
23147b0e21
added more out of range checks to dns_recv() (see bug #48924 )
10 years ago
Dirk Ziegelmeier
9078f31544
Minor: memcpy -> MEMCPY / SMEMCPY
10 years ago
sg
a08ed9148d
added pbuf_try_get_at() (much like pbuf_get_at() but can return out-of-pbuf error)
10 years ago
Dirk Ziegelmeier
8d45162a59
Fix usage of uninitialized data in dhcp.c by checking pbuf_copy_partial() return value
10 years ago
Dirk Ziegelmeier
f5135b05d9
Minor coding style fixes in mdns.c
10 years ago
Dirk Ziegelmeier
2137f49d32
Fix usage of uninitialized data in nd6.c because of unchecked pbuf_copy_partial() return value
10 years ago
Dirk Ziegelmeier
aef3d2cb87
Minor coding style fix in pbuf.c
10 years ago
Dirk Ziegelmeier
840d1e60fa
Fix bug #48924 : Potential out of bound reads in DNS codes of lwip project by adding checks for pbuf_copy_partial() return values.
...
Add some comments to clarify handling of untrusted network data handling.
10 years ago
Axel Lin
198fa5dbfa
Remove duplicated include for lwip/inet_chksum.h
...
Include it once is enough.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
10 years ago
Axel Lin
ef827e85b8
apps/mdns: Fixup LWIP_ERROR message in mdns_build_host_domain
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
10 years ago
Dirk Ziegelmeier
e545262d98
Remove superfluous parameter from mdns_domain_debug_print()
10 years ago
Dirk Ziegelmeier
fb62e9350f
Fix wrong sizeof() and remove superfluous NULL pointer check in MDNS
10 years ago
Axel Lin
db6aa82a10
memp: Fix comment for memp_overflow_check_element_overflow/underflow
...
These functions now take desc rather than memp_type as second parameter.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
10 years ago
Joel Cunningham
c9dff6b5aa
Correct TCP_OOSEQ_MAX_* opt.h documentation
...
This corrects documentation on TCP_OOSEQ_MAX_BYTES and _PBUFS to list
their dependency on TCP_QUEUE_OOSEQ==1 (out of order sequence queueing
enabled) rather than ==0 (disabled)
10 years ago
Dirk Ziegelmeier
4b45baee10
Add some dual-stack notes to documentation
10 years ago
Dirk Ziegelmeier
05a6d82fa1
Let comment in pbuf.h be consistent with provided example function
10 years ago
Dirk Ziegelmeier
0d510dd66d
Add API macros for netif client data handling and update documentation accordingly
10 years ago
Dirk Ziegelmeier
537bd836c9
Minor: More documentation updates
10 years ago
Dirk Ziegelmeier
57468b8a30
Minor: Several documentation updates
10 years ago
sg
452f5d6296
fix tcpip.c for LWIP_TIMERS==0
10 years ago
Dirk Ziegelmeier
2980a12373
Fix ntohs -> htons in ethernet.c
10 years ago
goldsimon
89aa4e7d79
fixed bug #47921 : link-local prefix in router advertisement must not be processes for SLAAC (patch by abhishek ambure)
10 years ago
goldsimon
3e23eb764b
fixed compiling TCP_OOSEQ_MAX_BYTES || TCP_OOSEQ_MAX_PBUFS (local variable 'p' was hidden)
10 years ago
Dirk Ziegelmeier
aeb3834219
Add debug assert to my last commit and improve comment in opt.h
10 years ago
Dirk Ziegelmeier
475d49440c
Fix handling of LWIP_HOOK_VLAN_SET(). Previous implementation supplied uninitialized arguments to the macro (struct eth_hdr).
...
Change macro signature to be universal: netif, pbuf, src, dst, eth_type - whatever the user needs to decide about VLAN header.
Return value <0 means "no VLAN header", 0 <= return_value <= 0xFFFF -> value is prio_vid of header.
Clean up ethernet_output function to be more readable.
10 years ago
Axel Lin
a2ca85a260
tcp: Make tcp_state_str/tcp_backoff/tcp_persist_backoff static
...
They are only referenced in tcp.c, so make them static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
10 years ago
sg
4c390ad39c
update netif address change triggers to tpc & udp to work with IPv6, too
10 years ago
Erik Ekman
a1db05c11e
Fix const argument warning in netif_ip6_addr_set
...
../../../../../lwip/src/netif/ppp/ppp.c:1276:37: error: passing
'const ip6_addr_t *' (aka 'const struct ip6_addr *') to parameter of type
'ip6_addr_t *' (aka 'struct ip6_addr *') discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6);
^~~~~~~~~~~~~
../../../../../lwip/src/include/lwip/ip_addr.h:340:24: note: expanded from macro
'IP6_ADDR_ANY6'
^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../lwip/src/include/lwip/netif.h:436:73: note: passing argument to
parameter 'addr6' here
void netif_ip6_addr_set(struct netif *netif, s8_t addr_idx, ip6_addr_t *addr6);
10 years ago
Axel Lin
bf5866b27d
tcp: Prevents a 0 sized (invalid) backlog
...
commit 44e1a2d8e2 accidently includes below changes in tcp_listen_with_backlog
- tcp_backlog_set(lpcb, backlog);
+ lpcb->backlog = backlog;
Thus pass 0 to the backlog parameter of netconn_listen_with_backlog() fails.
Fixes: 44e1a2d8e2 ("define tcp_backlog_set() as dummy-define when backlog feature is disable")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
10 years ago
goldsimon
298ec340e5
set netif IPv6 address & state via function to implement change triggers (task #13517 )
10 years ago
goldsimon
1ba0e17157
ip6_addr: a valid address is either preferred or deprecated, no need to reserve 3 bits for that
10 years ago