[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49578] lwip_socket_drop_registered_memberships API ma
From: |
Arpit Agarwal |
Subject: |
[lwip-devel] [bug #49578] lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET |
Date: |
Fri, 11 Nov 2016 10:06:42 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?49578>
Summary: lwip_socket_drop_registered_memberships API may not
work with LWIP_SOCKET_OFFSET
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: arpit_iitg
Submitted on: Fri 11 Nov 2016 10:06:40 AM GMT
Category: sockets/netconn
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
The API directly tries to use sockets array to leave multicast group.
Reference Code Line:
netconn_join_leave_group(sockets[s].conn, &multi_addr, &if_addr,
NETCONN_LEAVE);
So in case LWIP_SOCKET_OFFSET is in use, this will not work.
It can be easily fixed using below code:
netconn_join_leave_group(sock.conn, &multi_addr, &if_addr, NETCONN_LEAVE);
as we already have socket corresponding to socket descriptor passed in
argument.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49578>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49578] lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET,
Arpit Agarwal <=