version 1.3, 2012/07/22 22:46:47
|
version 1.5, 2017/06/28 15:19:32
|
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, 2012 | Copyright 2004 - 2017 |
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 103 calcDistance(int ifid, int dist, int cor)
|
Line 103 calcDistance(int ifid, int dist, int cor)
|
errno, strerror(errno)); |
errno, strerror(errno)); |
return -1; |
return -1; |
} else |
} else |
VERB(1) printf("Info:: set slottime(%d) from %d to %d ... OK!\n", len, | VERB(1) printf("Info:: set slottime(%zd) from %d to %d ... OK!\n", len, |
slottime[1], slottime[0]); |
slottime[1], slottime[0]); |
|
|
memset(szStr, 0, STRSIZ); |
memset(szStr, 0, STRSIZ); |
Line 119 calcDistance(int ifid, int dist, int cor)
|
Line 119 calcDistance(int ifid, int dist, int cor)
|
errno, strerror(errno)); |
errno, strerror(errno)); |
return -1; |
return -1; |
} else |
} else |
VERB(1) printf("Info:: set acktimeout(%d) from %d to %d ... OK!\n", len, | VERB(1) printf("Info:: set acktimeout(%zd) from %d to %d ... OK!\n", len, |
timeout[1], timeout[0]); |
timeout[1], timeout[0]); |
|
|
memset(szStr, 0, STRSIZ); |
memset(szStr, 0, STRSIZ); |
Line 135 calcDistance(int ifid, int dist, int cor)
|
Line 135 calcDistance(int ifid, int dist, int cor)
|
errno, strerror(errno)); |
errno, strerror(errno)); |
return -1; |
return -1; |
} else |
} else |
VERB(1) printf("Info:: set ctstimeout(%d) from %d to %d ... OK!\n", len, | VERB(1) printf("Info:: set ctstimeout(%zd) from %d to %d ... OK!\n", len, |
timeout[1], timeout[0]); |
timeout[1], timeout[0]); |
|
|
return timeout[0]; |
return timeout[0]; |
Line 158 calcTimeout(int ifid, int cor)
|
Line 158 calcTimeout(int ifid, int cor)
|
printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); |
printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); |
return -1; |
return -1; |
} else |
} else |
VERB(1) printf("Info:: get slottime(%d) %d ... OK!\n", len, slottime[1]); | VERB(1) printf("Info:: get slottime(%zd) %d ... OK!\n", len, slottime[1]); |
|
|
memset(szStr, 0, STRSIZ); |
memset(szStr, 0, STRSIZ); |
snprintf(szStr, STRSIZ, SC_ACKTIMEOUT, ifid); |
snprintf(szStr, STRSIZ, SC_ACKTIMEOUT, ifid); |
Line 169 calcTimeout(int ifid, int cor)
|
Line 169 calcTimeout(int ifid, int cor)
|
printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); |
printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); |
return -1; |
return -1; |
} else |
} else |
VERB(1) printf("Info:: get acktimeout(%d) %d ... OK!\n", len, timeout[1]); | VERB(1) printf("Info:: get acktimeout(%zd) %d ... OK!\n", len, timeout[1]); |
|
|
slottime[0] = (timeout[1] - 3 - cor) / 2; |
slottime[0] = (timeout[1] - 3 - cor) / 2; |
VERB(3) printf("Info:: calculated slottime=%d\n", slottime[0]); |
VERB(3) printf("Info:: calculated slottime=%d\n", slottime[0]); |