Skip to content

estebanleonsoto/network-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

network-utils

A Clojure library designed to ease operations related to networking.

Usage

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"}))))

License

Copyright © 2017 GNU public Licence V. 3.0

About

Utility functions to work with network interfaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published