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

rp2040/rp2350: support setsockopt(IPPROTO_IP, IP_MULTICAST_TTL, ttl) #9938

Open
jepler opened this issue Jan 5, 2025 · 0 comments
Open

rp2040/rp2350: support setsockopt(IPPROTO_IP, IP_MULTICAST_TTL, ttl) #9938

jepler opened this issue Jan 5, 2025 · 0 comments

Comments

@jepler
Copy link
Member

jepler commented Jan 5, 2025

This is needed for todbot/CircuitPython_MicroOSC#1

It appears this is enabled at the lwip library level but needs to be enabled at the socketpool layer, a la the lwip_setsockopt_impl implementation which says:

        case IP_MULTICAST_TTL:
          LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, u8_t, NETCONN_UDP);
          udp_set_multicast_ttl(sock->conn->pcb.udp, (u8_t)(*(const u8_t *)optval));
          break;  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants