Feature Requests: Browse | Submit New | Admin

[#12417] Add a way to get local interfaces

Date:
2007-07-19 14:36
Priority:
3
Submitted By:
Daniel Berger (djberg96)
Assigned To:
Daniel Berger (djberg96)
Category:
sys-host
State:
Closed
Summary:
Add a way to get local interfaces

Detailed description
[Based on an email conversation with mksm.sama@gmail.com]

Add a way to iterate over local interfaces, e.g. eth, eth1, eth2, etc. The Host.ip_addr is DNS only.

Possible solutions are listed in Stevens "Unix Network Programming, Volume 1, 431 ff. and 459 ff.

The sysctl + NET_RF_IFLIST approach is easier but less portable.

- Me

Add A Comment: Notepad

Please login


Followup

Message
Date: 2014-01-18 14:12
Sender: Daniel Berger

Looks like Ruby 2.x added support for this in the socket library,
so closing.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2014-01-18 14:122014-01-18 14:12djberg96
resolution_idNone2014-01-18 14:12djberg96
status_idOpen2014-01-18 14:12djberg96