version 1.1.1.2, 2012/10/09 09:22:28
|
version 1.1.1.3, 2016/11/02 10:09:10
|
Line 63 char nlpidstring[30];
|
Line 63 char nlpidstring[30];
|
* This converts the isonet to its printable format |
* This converts the isonet to its printable format |
*/ |
*/ |
const char * |
const char * |
isonet_print (u_char * from, int len) | isonet_print (const u_char * from, int len) |
{ |
{ |
int i = 0; |
int i = 0; |
char *pos = isonet; |
char *pos = isonet; |
Line 370 syst2string (int type)
|
Line 370 syst2string (int type)
|
* Print functions - we print to static vars |
* Print functions - we print to static vars |
*/ |
*/ |
const char * |
const char * |
snpa_print (u_char * from) | snpa_print (const u_char * from) |
{ |
{ |
int i = 0; |
int i = 0; |
u_char *pos = (u_char *)snpa; |
u_char *pos = (u_char *)snpa; |
Line 402 snpa_print (u_char * from)
|
Line 402 snpa_print (u_char * from)
|
} |
} |
|
|
const char * |
const char * |
sysid_print (u_char * from) | sysid_print (const u_char * from) |
{ |
{ |
int i = 0; |
int i = 0; |
char *pos = sysid; |
char *pos = sysid; |
Line 434 sysid_print (u_char * from)
|
Line 434 sysid_print (u_char * from)
|
} |
} |
|
|
const char * |
const char * |
rawlspid_print (u_char * from) | rawlspid_print (const u_char * from) |
{ |
{ |
char *pos = lspid; |
char *pos = lspid; |
if (!from) |
if (!from) |
Line 510 isis_jitter (unsigned long timer, unsigned long jitter
|
Line 510 isis_jitter (unsigned long timer, unsigned long jitter
|
* most IS-IS timers are no longer than 16 bit |
* most IS-IS timers are no longer than 16 bit |
*/ |
*/ |
|
|
j = 1 + (int) ((RANDOM_SPREAD * rand ()) / (RAND_MAX + 1.0)); | j = 1 + (int) ((RANDOM_SPREAD * random ()) / (RAND_MAX + 1.0)); |
|
|
k = timer - (timer * (100 - jitter)) / 100; |
k = timer - (timer * (100 - jitter)) / 100; |
|
|
Line 553 unix_hostname (void)
|
Line 553 unix_hostname (void)
|
* If no dynamic hostname found then returns formatted system ID. |
* If no dynamic hostname found then returns formatted system ID. |
*/ |
*/ |
const char * |
const char * |
print_sys_hostname (u_char *sysid) | print_sys_hostname (const u_char *sysid) |
{ |
{ |
struct isis_dynhn *dyn; |
struct isis_dynhn *dyn; |
|
|