Coder Social home page Coder Social logo

macvendor's Introduction

Introduction

What is MAC-address?

Every network card has a MAC-address which distinctly identifies the device. The address is divided to six octets and usually octet dividers are expressed as colons or dashes. The first three octets identifies the vendor. Vendors are contolled by IEEE standards association.

Purpose of the program

At times there is a need to check the vendor of an associated client in LAN or just to check the vendor in generally.The first implementation of this program was done in Python but I wanted to refresh my memory and decided to port the program to C language also. Program uses CURL library for fetching the newest vendors file. CURL lib was chosen since it's well written, BSD licensed and actively developed.

Dependencies

  • libcurl-dev

  • (maybe) libbsd-dev

Install

Curl developer libraries are needed and therefore those should be present. In Debian based system, check can be done with the following command:

dpkg -l |grep -i libcurl |grep dev

If if returns nothing, your system likely lacks support. In Ubuntu 11.04 functionality can be achieved this way:

sudo apt-get install libcurl4-gnutls-dev

Then follow the steps below.

Get the source code:

git clone [email protected]:weezel/macvendor.git

Go to source code directory:

cd macvendor

Build and compile macvendor and move macvendor binary under $HOME/bin

make

Usage

Search vendor for 00:00:00:00:00:00 MAC-address:

macvendor 00:00:00:00:00:00

Update vendors database:

macvendor -u

macvendor's People

Contributors

weezel avatar

Watchers

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