BSD Ports

net/p5-Net-MAC-Vendor 1.2100 FreeBSD

Look up the vendor for a MAC

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
40e8a8d40e
License
ART10, GPLv1+
Categories
net, perl5
Package size
11.2 KiB, 19.2 KiB installed

Description

The Institute of Electrical and Electronics Engineers (IEEE) assigns an Organizational Unique Identifier (OUI) to manufacturers of network interfaces. Each interface has a Media Access Control (MAC) address of six bytes. The first three bytes are the OUI.

This module allows you to take a MAC address and turn it into the OUI and vendor information. You can, for instance, scan a network, collect MAC addresses, and turn those addresses into vendors. With vendor information, you can often guess at what you are looking at (e.g. an Apple product).

You can use this as a module as its individual functions, or call it as a script with a list of MAC addresses as arguments. The module can figure it out.

This module tries to persistently cache with DBM::Deep the OUI information so it can avoid using the network. If it cannot load DBM::Deep, it uses a normal hash (which is lost when the process finishes). You can preload this cache with the load_cache() function. So far, the module looks in the current working directory for a file named mac_oui.db to find the cache. I need to come up with a way to let the user set that location.

In the other systems

SystemPortVersion
FreeBSDnet/p5-Net-MAC-Vendor1.2100
DragonFlynet/p5-Net-MAC-Vendor1.2000_1
HardenedBSDnet/p5-Net-MAC-Vendor1.2100
GhostBSDnet/p5-Net-MAC-Vendor1.2000_1

Install

Binary package:

pkg install p5-Net-MAC-Vendor

From the ports tree:

cd /usr/ports/net/p5-Net-MAC-Vendor/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Net-MAC-Vendor>0:net/p5-Net-MAC-Vendor

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.21001.21001.2000_11.2000_11.2100
FreeBSD:14:quarterly1.21001.2100n/a1.2000_11.2100
FreeBSD:15:latest1.21001.2100n/a1.2000_11.2000_1
FreeBSD:15:quarterly1.21001.2100n/an/an/a
FreeBSD:16:latest1.21001.2100n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 25
Run dependencies 25

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Net/MAC/Vendor.pm
  • %%PERL5_MAN3%%/Net::MAC::Vendor.3.gz
distinfo 1
FileSizeSHA256
Net-MAC-Vendor-1.21.tar.gz2.292101e+063b9ead25353de7c36d98cb25599810b017f92dd33059afa92040b4a2b2be51de
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
40e8a8d40e Muhammad Moinur Rahman net/p5-Net-MAC-Vendor: Update version 1.2000=>1.2100
Changelog: https://metacpan.org/release/BDFOY/Net-MAC-Vendor-1.21/changes