export function getEthernetSource ( packet ) { return decimalToHex ( packet . payload . shost . addr ) ; } export function decimalToHex ( numbers ) { let hexStrings = numbers . map ( decimal => decimal . toString ( 16 ) . padStart ( 2 , '0' ) ) ; return hexStrings . join ( ':' ) ; }