[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #43028] IP_MULTICAST_TTL affects unicast datagrams
From: |
Joel Cunningham |
Subject: |
[lwip-devel] [bug #43028] IP_MULTICAST_TTL affects unicast datagrams |
Date: |
Tue, 19 Aug 2014 19:59:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?43028>
Summary: IP_MULTICAST_TTL affects unicast datagrams
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: jcunningham
Submitted on: Tue 19 Aug 2014 07:59:55 PM GMT
Category: UDP
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.4.1
_______________________________________________________
Details:
When setting the IP_MULTICAST_TTL socket option via setsockopt(), all
transmitted datagrams from that socket now use the TTL value specified in the
setsockopt() call regardless of whether the destination of the datagram is
unicast or multicast. My understanding of the socket option is that it should
only affect datagrams sent (on that socket) to a multicast group.
Taking a look at the implementation, IP_MULTICAST_TTL sets the
sock->conn->pcb.udp->ttl which is used for every call to ip_output_if from
udp.c
Further, the getsockopt() returns sock->conn->pcb.ip->ttl (as opposed to
pcb.udp->ttl for the setter)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?43028>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #43028] IP_MULTICAST_TTL affects unicast datagrams,
Joel Cunningham <=