Feature #8075

Add socket interface class to list interfaces

Added by Eric Hodel about 1 year ago. Updated 10 months ago.

[ruby-core:53308]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:ext
Target version:2.1.0

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 Magnifier (6.55 KB) Eric Hodel, 03/11/2013 12:20 PM

History

#1 Updated by Akira Tanaka about 1 year 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 Updated by Eric Hodel about 1 year ago

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

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

#3 Updated by Zachary Scott 11 months ago

  • Status changed from Open to Assigned
  • Assignee set to Eric Hodel

#4 Updated by Eric Hodel 10 months ago

  • Status changed from Assigned to Closed

This was fixed by Socket.getifaddrs in r40593

Also available in: Atom PDF