version 1.1.2.9, 2010/03/24 16:43:01
|
version 1.1.2.10, 2011/06/08 09:27:55
|
Line 25 static void Usage()
|
Line 25 static void Usage()
|
"\n", compiled, compiledby, compilehost); |
"\n", compiled, compiledby, compilehost); |
} |
} |
|
|
|
#ifdef HAVE_KLDNEXT |
static int kldLoad() |
static int kldLoad() |
{ |
{ |
struct module_stat mstat; |
struct module_stat mstat; |
Line 51 static int kldLoad()
|
Line 52 static int kldLoad()
|
|
|
return 1; |
return 1; |
} |
} |
|
#endif |
|
|
// ------------------------------- |
// ------------------------------- |
|
|
Line 82 int main(int argc, char **argv)
|
Line 84 int main(int argc, char **argv)
|
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|
openlog("get1steth", LOG_CONS | LOG_PERROR, LOG_CONSOLE | LOG_USER); | openlog("get1steth", LOG_CONS | LOG_PERROR, LOG_USER); |
|
|
if (argc) { |
if (argc) { |
strlcpy(szIface, *argv, MAX_STR); |
strlcpy(szIface, *argv, MAX_STR); |
Line 136 int main(int argc, char **argv)
|
Line 138 int main(int argc, char **argv)
|
return 0; |
return 0; |
} |
} |
|
|
|
#ifdef HAVE_KLDNEXT |
s = kldLoad(); |
s = kldLoad(); |
if (s == -1) { |
if (s == -1) { |
syslog(LOG_ERR, "Error:: kldload(if_vlan) Can`t operate with vlans ...\n"); |
syslog(LOG_ERR, "Error:: kldload(if_vlan) Can`t operate with vlans ...\n"); |
return 1; |
return 1; |
} else |
} else |
VERB(3) syslog(LOG_NOTICE, "VLAN module ... %s\n", s ? "Loaded" : "Already loaded"); |
VERB(3) syslog(LOG_NOTICE, "VLAN module ... %s\n", s ? "Loaded" : "Already loaded"); |
|
#endif |
|
|
// create vlan |
// create vlan |
memset(&ifr, 0, sizeof ifr); |
memset(&ifr, 0, sizeof ifr); |