From: asomers@... Date: 2017-08-10T23:11:22+00:00 Subject: [ruby-core:82340] [Ruby trunk Feature#13803] Add Socket::Ifaddr.vhid on supported platforms Issue #13803 has been updated by asomers (Alan Somers). Tracker changed from Bug to Feature ruby -v deleted (2.5.0dev) Backport deleted (2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN) There was a copy/paste error in my transcript. It should've read ~~~ $ sudo ifconfig epair create $ sudo ifconfig epair0a 192.0.2.2/24 vhid 99 $ irb > require 'socket' > Socket.getifaddrs[11] => # > Socket.getifaddrs[11].vhid => 99 ~~~ ---------------------------------------- Feature #13803: Add Socket::Ifaddr.vhid on supported platforms https://bugs.ruby-lang.org/issues/13803#change-66133 * Author: asomers (Alan Somers) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- VHIDs are used in the failover process for interfaces using the CARP protocol. This patch adds support for getting the VHID of an interface address. Tested on FreeBSD 11.0 and FreeBSD 12.0-CURRENT $ sudo ifconfig epair create $ sudo ifconfig epair0a 192.0.2.2/24 vhid 99 $ irb > require 'socket' > Socket.getifaddrs[11] => # > Socket.getifaddrs[11].vhid => 99 ---Files-------------------------------- Ifaddr.vhid.patch (1.62 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: