public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/211] New: IP SSM multicast support missing
@ 2004-06-09 17:27 terpstra at gkec dot tu-darmstadt dot de
  2004-06-09 17:29 ` [Bug libc/211] " terpstra at gkec dot tu-darmstadt dot de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: terpstra at gkec dot tu-darmstadt dot de @ 2004-06-09 17:27 UTC (permalink / raw)
  To: glibc-bugs

Glibc is presently missing support for the API defined in RFC 3678.
The linux kernel (>= 2.6.0) supports this API.

I have attached a patch which add the necessary fields to bits/in.h.
This includes both IGMPv3 (IPv4) and MLDv2 (IPv6) versions.

However, the functions get/setipv4sourcefilter and get/setsourcefilter still
need to be added to netinet/in.h.

sys/sockio.h should also be extended.

-- 
           Summary: IP SSM multicast support missing
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: terpstra at gkec dot tu-darmstadt dot de
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
@ 2004-06-09 17:29 ` terpstra at gkec dot tu-darmstadt dot de
  2004-07-12 23:50 ` cra at wpi dot edu
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: terpstra at gkec dot tu-darmstadt dot de @ 2004-06-09 17:29 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From terpstra at gkec dot tu-darmstadt dot de  2004-06-09 17:29 -------
Created an attachment (id=109)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=109&action=view)
A first version of SSM multicast for libc

This patch alone does not satisfy RFC3678.
Hopefully, however, it is enough to start glibc people fixing this.


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
  2004-06-09 17:29 ` [Bug libc/211] " terpstra at gkec dot tu-darmstadt dot de
@ 2004-07-12 23:50 ` cra at wpi dot edu
  2004-07-12 23:56 ` cra at wpi dot edu
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-12 23:50 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cra at wpi dot edu  2004-07-12 23:50 -------
sockio.h ioctl interface is obsolete according to this:

http://www.uwsg.indiana.edu/hypermail/linux/kernel/0407.1/1084.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cra at wpi dot edu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
  2004-06-09 17:29 ` [Bug libc/211] " terpstra at gkec dot tu-darmstadt dot de
  2004-07-12 23:50 ` cra at wpi dot edu
@ 2004-07-12 23:56 ` cra at wpi dot edu
  2004-07-13  0:06 ` [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 " cra at wpi dot edu
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-12 23:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cra at wpi dot edu  2004-07-12 23:56 -------
*** Bug 5 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexis at videolan dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2004-07-12 23:56 ` cra at wpi dot edu
@ 2004-07-13  0:06 ` cra at wpi dot edu
  2004-07-13  9:32 ` terpstra at gkec dot tu-darmstadt dot de
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-13  0:06 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|IP SSM multicast support    |IP SSM multicast, IGMPv3,
                   |missing                     |RFC3678 support missing


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (3 preceding siblings ...)
  2004-07-13  0:06 ` [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 " cra at wpi dot edu
@ 2004-07-13  9:32 ` terpstra at gkec dot tu-darmstadt dot de
  2004-07-13 10:27 ` cra at wpi dot edu
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: terpstra at gkec dot tu-darmstadt dot de @ 2004-07-13  9:32 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From terpstra at gkec dot tu-darmstadt dot de  2004-07-13 09:31 -------
Subject: Re:  IP SSM multicast support missing

On Mon, Jul 12, 2004 at 11:50:41PM -0000, cra at wpi dot edu wrote:
> ------- Additional Comments From cra at wpi dot edu  2004-07-12 23:50 -------
> sockio.h ioctl interface is obsolete according to this:
> 
> http://www.uwsg.indiana.edu/hypermail/linux/kernel/0407.1/1084.html

This does not say that the setsockopt interface is obsolete.
It is not.

The patch I included added the options and structures needed to use the
setsockopt interface. There is also a full-state interface I did not do.

The setsockopt defines and structures I attached ARE included in the kernel
and conform to RFC 3678 which (afaik) is not obsolete. Please note that RFC
3678 is recent (Jan, 2004) and should represent the current state of the art.

The SIOC??MSFILTER interface is mentioned in Section 8 Appendix A of RFC
3678 as historic. I can believe that it is obsolete since it is not included
in the kernel tree.

These interfaces are not the same.

There are three interfaces to multicast:
	Delta based (very old, but still used and in kernel) -- my patch
	Full-state based [old] -- what is mentioned in that email
	Full-state based [new] -- still needs to be dealt with

The full-state interface is missing, it is:

#include <netinet/in.h>

int setipv4sourcefilter(int s, struct in_addr interface,
                        struct in_addr group, uint32_t fmode,
                        uint32_t numsrc, struct in_addr *slist);
int getipv4sourcefilter(int s, struct in_addr interface,
                        struct in_addr group, uint32_t *fmode,
                        uint32_t *numsrc, struct in_addr *slist);

int setsourcefilter(int s, uint32_t interface,
                    struct sockaddr *group, socklen_t grouplen,
                    uint32_t fmode, uint_t numsrc,
                    struct sockaddr_storage *slist);
                    uint32_t *numsrc, struct in_addr *slist);
int getsourcefilter(int s, uint32_t interface,
                    struct sockaddr *group, socklen_t grouplen,
                    uint32_t fmode, uint_t *numsrc,
                    struct sockaddr_storage *slist);



-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (4 preceding siblings ...)
  2004-07-13  9:32 ` terpstra at gkec dot tu-darmstadt dot de
@ 2004-07-13 10:27 ` cra at wpi dot edu
  2004-07-13 11:24 ` terpstra at gkec dot tu-darmstadt dot de
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-13 10:27 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cra at wpi dot edu  2004-07-13 10:27 -------
(In reply to comment #1, comment #4)
> sys/sockio.h should also be extended.
> On Mon, Jul 12, 2004 at 11:50:41PM -0000, cra at wpi dot edu wrote:
> > sockio.h ioctl interface is obsolete according to this:
> This does not say that the setsockopt interface is obsolete.
> It is not.

I did not say that the setsockopt interface is obsolete.  I said that the ioctl
interface is obsolete.  I was referring to sockios.h (I cannot find a sockio.h
anywhere) which has ioctl numbers in it, which you said in comment #1 needed to
be extended.  To my knowledge, it does not, as there are no new ioctls to implement.


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (5 preceding siblings ...)
  2004-07-13 10:27 ` cra at wpi dot edu
@ 2004-07-13 11:24 ` terpstra at gkec dot tu-darmstadt dot de
  2004-07-13 19:55 ` cra at wpi dot edu
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: terpstra at gkec dot tu-darmstadt dot de @ 2004-07-13 11:24 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From terpstra at gkec dot tu-darmstadt dot de  2004-07-13 11:24 -------
Subject: Re:  IP SSM multicast, IGMPv3, RFC3678 support missing

On Tue, Jul 13, 2004 at 10:27:30AM -0000, cra at wpi dot edu wrote:
> I did not say that the setsockopt interface is obsolete.  I said that the ioctl
> interface is obsolete.  I was referring to sockios.h (I cannot find a sockio.h
> anywhere) which has ioctl numbers in it, which you said in comment #1 needed to
> be extended.  To my knowledge, it does not, as there are no new ioctls to implement.

Ok, never mind then. =)

There is this old interface which maybe should be there for backwards
compatability... But, that's no big deal since Linux has simply never 
had it.



-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (6 preceding siblings ...)
  2004-07-13 11:24 ` terpstra at gkec dot tu-darmstadt dot de
@ 2004-07-13 19:55 ` cra at wpi dot edu
  2004-07-13 19:57 ` cra at wpi dot edu
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-13 19:55 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cra at wpi dot edu  2004-07-13 19:55 -------
Here is a tested, working patch with more of the implementation.  Everything
except the new advanced API functions and prototypes themselves should be there
now.  According to the Linux kernel folks, the libc advanced full state-based
API get/setipv4sourcefilter and get/setsourcefilter functions should be
implemented internally using get/setsockopt on IP_MSFILTER and MCAST_MSFILTER. 
Even without the advanced API, this patch will help a lot of people.

Please apply so we can finally have basic SSM support.  Thanks.


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (7 preceding siblings ...)
  2004-07-13 19:55 ` cra at wpi dot edu
@ 2004-07-13 19:57 ` cra at wpi dot edu
  2004-07-23  4:40 ` drepper at redhat dot com
  2004-08-06  5:00 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: cra at wpi dot edu @ 2004-07-13 19:57 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cra at wpi dot edu  2004-07-13 19:57 -------
Created an attachment (id=132)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=132&action=view)
Patch to implement basic API, start of advanced API


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #109 is|0                           |1
           obsolete|                            |


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (8 preceding siblings ...)
  2004-07-13 19:57 ` cra at wpi dot edu
@ 2004-07-23  4:40 ` drepper at redhat dot com
  2004-08-06  5:00 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2004-07-23  4:40 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2004-07-23 04:40 -------
The patch is not correct since it moves structures in the wrong headers.

I have started adding the definitions to headers in the current CVS sources. 
I'll get to writing the code for the interfaces in the not too distant future.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|gotom at debian dot or dot  |drepper at redhat dot com
                   |jp                          |
             Status|NEW                         |ASSIGNED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 support missing
  2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
                   ` (9 preceding siblings ...)
  2004-07-23  4:40 ` drepper at redhat dot com
@ 2004-08-06  5:00 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2004-08-06  5:00 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2004-08-06 05:00 -------
I have added all the type and macro definitions and coded the four interface. 
The result is in CVS now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=211

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-08-06  5:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09 17:27 [Bug libc/211] New: IP SSM multicast support missing terpstra at gkec dot tu-darmstadt dot de
2004-06-09 17:29 ` [Bug libc/211] " terpstra at gkec dot tu-darmstadt dot de
2004-07-12 23:50 ` cra at wpi dot edu
2004-07-12 23:56 ` cra at wpi dot edu
2004-07-13  0:06 ` [Bug libc/211] IP SSM multicast, IGMPv3, RFC3678 " cra at wpi dot edu
2004-07-13  9:32 ` terpstra at gkec dot tu-darmstadt dot de
2004-07-13 10:27 ` cra at wpi dot edu
2004-07-13 11:24 ` terpstra at gkec dot tu-darmstadt dot de
2004-07-13 19:55 ` cra at wpi dot edu
2004-07-13 19:57 ` cra at wpi dot edu
2004-07-23  4:40 ` drepper at redhat dot com
2004-08-06  5:00 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).