Skip to content
/ macf Public

Simple C program for reformatting mac addresses

License

Notifications You must be signed in to change notification settings

hexabyte8/macf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macf - MAC Address Formatter

Build

macf is a command-line utility for converting MAC addresses into different formats. It can process a single MAC address or multiple MAC addresses from a file.

Download

Pre-built binaries are available for Linux and macOS:

From GitHub Actions

  1. Go to the Actions tab
  2. Click on the latest successful "Build" workflow run
  3. Download the artifact for your platform:
    • macf-linux-x86_64 for Linux (x86_64)
    • macf-macos-arm64 for macOS (Apple Silicon ARM64)
  4. Extract the archive and make the binary executable: chmod +x macf

From Releases

When a release is published, download pre-built binaries from the Releases page:

  • macf-linux-x86_64.tar.gz for Linux (x86_64)
  • macf-macos-arm64.tar.gz for macOS (Apple Silicon ARM64)

Extract and install:

tar -xzf macf-*.tar.gz
cd macf-*
chmod +x macf
sudo mv macf /usr/local/bin/
sudo mv macf.1 /usr/local/share/man/man1/

Build from Source

To compile from source, you need GCC:

gcc -o macf main.c

Or use the provided installation script:

./install.sh

Features

  • Convert MAC addresses to various formats:
    • Cisco format: 0000.0000.0000
    • Dash-separated format: 00-00-00-00-00-00
    • Colon-separated format: 00:00:00:00:00:00
    • Raw format (no separators): 000000000000
  • Supports single MAC address input or file-based input.
  • Outputs results to standard output or a specified file.
  • Verbose mode for detailed output.

Usage

Syntax

macf [MAC_ADDRESS] FORMAT [-f FILE] [-v]

About

Simple C program for reformatting mac addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •