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

diosney opened this Issue Jul 25, 2012 · 5 comments

6 participants


Add the following returned parameters to networkInterfaces():

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

For example:

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

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




+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.

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