ipfrommac

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

README

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:

git clone https://github.com/ubiant/ipfrommac.git
cd ipfrommac
go build ./cmd/getIpFromMac

Usage

./getIpFromMac interface_name mac_address

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IpFromMac

func IpFromMac(ifaceName string, mac string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL