Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

LaborEtArs
Copy link
Contributor

  • 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

@LaborEtArs
Copy link
Contributor Author

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));
Copy link
Collaborator

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

#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
Copy link
Collaborator

@d-a-v d-a-v Jan 17, 2020

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'

@d-a-v
Copy link
Collaborator

d-a-v commented Jan 17, 2020

There are unwanted submodule updates in this PR

  • libraries/LittleFS/lib/littlefs
  • libraries/SoftwareSerial
  • tools/sdk/ssl/bearssl

(see #7003 (comment))

@LaborEtArs
Copy link
Contributor Author

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.

@LaborEtArs LaborEtArs closed this Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants