diff options
| -rw-r--r-- | src/macaddrinfo.c | 23 |
1 files changed, 22 insertions, 1 deletions
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[] = | |||
| 315 | { | 315 | { |
| 316 | "generate", // command name | 316 | "generate", // command name |
| 317 | mau_cmd_generate, // entry function | 317 | mau_cmd_generate, // entry function |
| 318 | "cDdlRr:uxMQXW" MAU_GETOPT_SHORT, // getopt short options | 318 | "cDdlRr:uxMNQXW" MAU_GETOPT_SHORT, // getopt short options |
| 319 | (struct option []) | 319 | (struct option []) |
| 320 | { | 320 | { |
| 321 | {"microsoft", no_argument, NULL, 'M' }, | 321 | {"microsoft", no_argument, NULL, 'M' }, |
| @@ -975,6 +975,27 @@ int mau_getopt(mau_config * cnf, int argc, char * const * argv, | |||
| 975 | cnf->verbose++; | 975 | cnf->verbose++; |
| 976 | return(-2); | 976 | return(-2); |
| 977 | 977 | ||
| 978 | case 'M': | ||
| 979 | cnf->use_oui = 1; | ||
| 980 | cnf->oui[0] = 0x00; | ||
| 981 | cnf->oui[1] = 0x15; | ||
| 982 | cnf->oui[2] = 0x5d; | ||
| 983 | return(-2); | ||
| 984 | |||
| 985 | case 'N': | ||
| 986 | cnf->use_oui = 1; | ||
| 987 | cnf->oui[0] = 0x00; | ||
| 988 | cnf->oui[1] = 0x20; | ||
| 989 | cnf->oui[2] = 0x91; | ||
| 990 | return(-2); | ||
| 991 | |||
| 992 | case 'Q': | ||
| 993 | cnf->use_oui = 1; | ||
| 994 | cnf->oui[0] = 0x52; | ||
| 995 | cnf->oui[1] = 0x54; | ||
| 996 | cnf->oui[2] = 0x00; | ||
| 997 | return(-2); | ||
| 998 | |||
| 978 | case 'W': | 999 | case 'W': |
| 979 | cnf->use_oui = 1; | 1000 | cnf->use_oui = 1; |
| 980 | cnf->oui[0] = 0x00; | 1001 | cnf->oui[0] = 0x00; |
