-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added input_netif to the stored data #7004
Conversation
LaborEtArs
commented
Jan 8, 2020
- Added a 'setMulticastInterface' method for netifs.
- The input_netif is also only available, while 'inside' of the recv-callback. Added this to the temp-saved data.
- Found problems with omitted UDP messages, therefore disabled the the omitting of messages.
- Made '_pcb' accessible
Reinserted the code that omits UDP messages |
void setMulticastInterface(netif* p_pNetIf) | ||
{ | ||
#if LWIP_VERSION_MAJOR == 1 | ||
udp_set_multicast_netif_addr(_pcb, (p_pNetIf ? ip_2_ip4(p_pNetIf->ip_addr) : ip_addr_any)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ip_2_ip4()
is useless with lwIP-1.4
Arduino/cores/esp8266/IPAddress.h
Line 33 in 00440cd
#define ip_2_ip4(x) (x) |
@@ -265,7 +290,6 @@ class UdpContext | |||
// ref'ing it to prevent release from the below pbuf_free(deleteme) | |||
pbuf_ref(_rx_buf); | |||
} | |||
// remove the already-consumed head of the chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it has to be replaced by
'remove parts of the pbuf chain that are not anymore "ref"ed'
There are unwanted submodule updates in this PR
(see #7003 (comment)) |
Can't remove these submodules. Every time I do checkout a new branch, these (and other) submodule are added automagically by git. Closing the PR now. |