Skip to content

ubiant/ipfrommac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IpFromMac


IpFromMac is a golang library to retrieve IPv4 address from a MAC address. The library is based on the arpscan example from the gopacket library.

Installation

Directly as a go package:

import "github.com/ubiant/ipfrommac"

With the getIpFromMac command:

go get github.com/ubiant/ipfrommac
go build github.com/ubiant/ipfrommac/cmd/getIpFromMac

Usage

./getIpFromMac interface_name mac_address