Project

General

Profile

Actions

Feature #8075

closed

Add socket interface class to list interfaces

Added by drbrain (Eric Hodel) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
[ruby-core:53308]

Description

For IPv6 multicast an interface may be set to indicate which interface IPv6 packets should be sent on.

The attached patch allows interfaces to be looked up by name (or index) for use in setting this socket option.


Files

socket.interface.patch (6.55 KB) socket.interface.patch drbrain (Eric Hodel), 03/11/2013 12:20 PM

Updated by akr (Akira Tanaka) over 11 years ago

2013/3/11 drbrain (Eric Hodel) :

Feature #8075: Add socket interface class to list interfaces
https://bugs.ruby-lang.org/issues/8075

For IPv6 multicast an interface may be set to indicate which interface IPv6 packets should be sent on.

The attached patch allows interfaces to be looked up by name (or index) for use in setting this socket option.

I think this is a good feature to support RFC 3493
(Basic Socket Interface Extensions for IPv6).

Note that I didn't design/implement this feature just because
I have no experience with multicast.

Tanaka Akira

Updated by drbrain (Eric Hodel) over 11 years ago

=begin
The one method I am concerned about is (({Socket::Interface.list})), should this be (({Socket.interface_list})) like (({Socket.ip_address_list}))?

If the patch is fine as-is, shall I commit it?
=end

Updated by zzak (zzak _) over 11 years ago

  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)

Updated by drbrain (Eric Hodel) over 11 years ago

  • Status changed from Assigned to Closed

This was fixed by Socket.getifaddrs in r40593

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0