A Clojure library designed to ease operations related to networking.
Getting the list of available network interfaces (if your system has for instance 4 interfaces called like this: eno1, lo and wlp320):
(get-interfaces-names)
produces the following list: '("eno1" "lo" "wlp3s0")
Getting details for a specific interface:
(interface-details "eno1")
produces the following map as a result:
{:name "eno1",
:type "ether",
:ip-v4 "192.168.1.9",
:ip-v6 "aaaa::bbbb:cccc:0000:dddd",
:mac-address "d0:67:e5:38:71:b0",
:net-mask "255.255.255.0",
:gateway "192.168.1.1"}))))
Copyright © 2017 GNU public Licence V. 3.0
Can you improve this documentation? These fine people already did:
esteban & EstebanEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close