misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-20 03:55:06 +01:00
commit 0fc5bb371a

View file

@ -4,7 +4,7 @@ import (
"strings" "strings"
) )
var oui = map[string]string{ var oui = map[string]string {
"681605": "Systems And Electronic Development Fzco", "681605": "Systems And Electronic Development Fzco",
"74dbd1": "Ebay", "74dbd1": "Ebay",
"000099": "MTX", "000099": "MTX",
@ -22930,6 +22930,7 @@ var oui = map[string]string{
"784b87": "Murata Manufacturing Co.", "784b87": "Murata Manufacturing Co.",
} }
func OuiLookup(mac string) string { func OuiLookup(mac string) string {
octects := strings.Split(mac, ":") octects := strings.Split(mac, ":")
if len(octects) > 3 { if len(octects) > 3 {