From 5a9f49fd4e7a0a77fd29c2e07f9d47ce7b0746e3 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Wed, 16 May 2018 12:28:19 -0800 Subject: Fixing OUI options in macaddrinfo --- src/macaddrinfo.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/macaddrinfo.c b/src/macaddrinfo.c index ca01d59..ab553d8 100644 --- a/src/macaddrinfo.c +++ b/src/macaddrinfo.c @@ -315,7 +315,7 @@ const mau_command mau_cmdmap[] = { "generate", // command name mau_cmd_generate, // entry function - "cDdlRr:uxMQXW" MAU_GETOPT_SHORT, // getopt short options + "cDdlRr:uxMNQXW" MAU_GETOPT_SHORT, // getopt short options (struct option []) { {"microsoft", no_argument, NULL, 'M' }, @@ -975,6 +975,27 @@ int mau_getopt(mau_config * cnf, int argc, char * const * argv, cnf->verbose++; return(-2); + case 'M': + cnf->use_oui = 1; + cnf->oui[0] = 0x00; + cnf->oui[1] = 0x15; + cnf->oui[2] = 0x5d; + return(-2); + + case 'N': + cnf->use_oui = 1; + cnf->oui[0] = 0x00; + cnf->oui[1] = 0x20; + cnf->oui[2] = 0x91; + return(-2); + + case 'Q': + cnf->use_oui = 1; + cnf->oui[0] = 0x52; + cnf->oui[1] = 0x54; + cnf->oui[2] = 0x00; + return(-2); + case 'W': cnf->use_oui = 1; cnf->oui[0] = 0x00; -- cgit v1.2.3