Add more returned data to os.networkInterfaces() #3765

Closed
diosney opened this Issue Jul 25, 2012 · 5 comments

6 participants

@diosney

Add the following returned parameters to networkInterfaces():

  • MAC address
  • Netmask
  • Gateway (or next-hop)
  • Status
  • MTU

For example:

{eth0:[ {
address: '10.0.1.123',
family: 'IPv4', 
internal: false, 
MAC: '00:21:fe:32:31:a5' , 
netmask: '255.255.255.0',
gateway: '10.0.1.1',
state: 'DOWN',
MTU: 1500
}] }
@tomas

+1 -- at least having the MAC address would be very useful.

@Mithgol

+1

@wanderview

+1 for netmask

@wanderview wanderview added a commit to wanderview/node that referenced this issue Feb 10, 2013
@wanderview wanderview Include netmask in os.networkInterfaces()
This commit depends on joyent/libuv#705 in order to compile.  The libuv
changes are not included here as I assume dependencies are incorporated
under a separate process.

This is a partial fix for #3765.
fd89d93
@tjfontaine

netmask and mac are in master and will be shipped in v0.12

@tjfontaine tjfontaine closed this Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment