layer2

package
v0.0.0-...-663be50 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePrettyMacAddress

func MakePrettyMacAddress(mac []byte) string

-----------------------------------------------------------------------------

MakePrettyMacAddress()

----------------------------------------------------------------------------- This function will create a human readable MAC address in upper case using the : notation between octets

func ParseSuppliedLayer2Address

func ParseSuppliedLayer2Address(mac string) []byte

----------------------------------------------------------------------------- ParseSuppliedLayer2Address() ----------------------------------------------------------------------------- Figure out if we need to change a layer 2 mac address

func ReplaceMacAddresses

func ReplaceMacAddresses(packet gopacket.Packet, userSuppliedMacAddress, userSuppliedMacAddressNew []byte)

----------------------------------------------------------------------------- ReplaceMacAddresses() ----------------------------------------------------------------------------- Lets compare the mac address supplied with the one in the pcap file for both the DST MAC and SRC MAC but only if a MAC address is supplied as an ARG This change will be made regardless of packet type

Types

This section is empty.

Jump to

Keyboard shortcuts

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