GithubHelp home page GithubHelp logo

cider-load-test / erlang-macaddr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmullis/erlang-macaddr

0.0 0.0 0.0 116 KB

Cross platform MAC address retriever

License: GNU Lesser General Public License v2.1

Erlang 100.00%

erlang-macaddr's Introduction

-=================-
 Macaddr For Erlang
-=================-
See docs/index.html for api and more detailed information.


What is this?
---------------------------

A cross platform MAC Address retriever for Erlang.
It is inspired by the macaddr gem for ruby (see http://rubyforge.org/projects/codeforpeople)


How do I use it?
---------------------------

To get a single MAC address

  1> macaddr:address().
     "00:32:7c:02:34:61"

  2> macaddr:address_list().
     ["00:32:7c:02:34:61", "00:2d:05:04:55:63"]



How do I build it?
---------------------------
make
make test   # will also make clean before running tests
make docs



How do I install it?
---------------------------
After building it, there are some options on using it.

1. You can modify your code path by adding the following like to ~/.erlang
    code:add_pathz("/wherever/you/built/macaddr").

2. Use the macaddr directory as-is in your erlang/lib.
     sudo mv macaddr /usr/local/lib/erlang/lib

3. Clone from git in your erlang/lib directory and keep macaddr up to date using git
     cd /usr/local/lib/erlang/lib
     sudo git clone  <macaddr git url> macaddr
     cd macaddr
     sudo make

erlang-macaddr's People

Contributors

mmullis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.