|
version 1.1.1.1.2.7, 2011/10/14 09:04:04
|
version 1.3, 2015/05/19 23:25:30
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 74 main(int argc, char **argv)
|
Line 74 main(int argc, char **argv)
|
| { |
{ |
| char ch, szDev[STRSIZ] = { 0 }; |
char ch, szDev[STRSIZ] = { 0 }; |
| int h, len; |
int h, len; |
| struct io_ether_addr ea; | struct e_ether_addr ea; |
| |
|
| srandomdev(); |
srandomdev(); |
| do { |
do { |
| Crypted = (u_int) random() % UINT_MAX; |
Crypted = (u_int) random() % UINT_MAX; |
| } while (!Crypted); |
} while (!Crypted); |
| |
|
| strlcpy(Key, DEFAULT_KEY, sizeof Key); |
|
| |
|
| Get1stEth(szDev, STRSIZ); |
Get1stEth(szDev, STRSIZ); |
| |
|
| |
strlcpy(Key, DEFAULT_KEY, sizeof Key); |
| |
|
| while ((ch = getopt(argc, argv, "hvut:d:k:")) != -1) |
while ((ch = getopt(argc, argv, "hvut:d:k:")) != -1) |
| switch (ch) { |
switch (ch) { |
| case 't': |
case 't': |
|
Line 113 main(int argc, char **argv)
|
Line 113 main(int argc, char **argv)
|
| printf("Error:: not specified mac for connect ...\n"); |
printf("Error:: not specified mac for connect ...\n"); |
| return 1; |
return 1; |
| } |
} |
| if (!io_ether_aton(argv[0], &ea)) { | if (!e_ether_aton(argv[0], &ea)) { |
| printf("Error:: invalid mac ...\n"); |
printf("Error:: invalid mac ...\n"); |
| return 1; |
return 1; |
| } |
} |