Project

General

Profile

Feature #8075

Add socket interface class to list interfaces

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

Status:
Closed
Priority:
Normal
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.

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

History

#1 [ruby-core:53316] Updated by akr (Akira Tanaka) over 4 years ago

2013/3/11 drbrain (Eric Hodel) drbrain@segment7.net:

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

#2 [ruby-core:53321] Updated by drbrain (Eric Hodel) over 4 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

#3 [ruby-core:55236] Updated by zzak (Zachary Scott) about 4 years ago

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

#4 [ruby-core:55762] Updated by drbrain (Eric Hodel) about 4 years ago

  • Status changed from Assigned to Closed

This was fixed by Socket.getifaddrs in r40593

Also available in: Atom PDF