Feature #8075
closed
Add socket interface class to list interfaces
Added by drbrain (Eric Hodel) almost 12 years ago.
Updated over 11 years ago.
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
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
=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
- Status changed from Open to Assigned
- Assignee set to drbrain (Eric Hodel)
- Status changed from Assigned to Closed
This was fixed by Socket.getifaddrs in r40593
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0