Project

General

Profile

Feature #13803

Add Socket::Ifaddr.vhid on supported platforms

Added by asomers (Alan Somers) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:82336]

Description

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) Ifaddr.vhid.patch asomers (Alan Somers), 08/10/2017 08:36 PM

Also available in: Atom PDF