项目作者: oskaritimperi

项目描述 :
Nim library to enumerate all network interfaces
高级语言: Nim
项目地址: git://github.com/oskaritimperi/ifaddr-nim.git
创建时间: 2020-02-19T20:15:16Z
项目社区:https://github.com/oskaritimperi/ifaddr-nim

开源协议:MIT License

下载


ifaddr - Enumerate IP addresses on the local network adapters

This is a Nim port of a Python package of the same name. See the original here.

Check the example code in tests/test1.nim. It should output something like the following:

  1. IPs of network adapter lo
  2. 127.0.0.1/8
  3. 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01/128
  4. IPs of network adapter wlp2s0
  5. 192.168.0.101/24
  6. FE:80:00:00:00:00:00:00:65:93:59:F2:33:F0:AB:33/64