Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 489 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 489 Bytes

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