523 |
void printservice(Service_T s) { |
void printservice(Service_T s) { |
524 |
|
|
525 |
Port_T n; |
Port_T n; |
526 |
|
Icmp_T i; |
527 |
Mail_T r; |
Mail_T r; |
528 |
Device_T dl; |
Device_T dl; |
529 |
Resource_T q; |
Resource_T q; |
585 |
|
|
586 |
if(n->SSL.use_ssl) { |
if(n->SSL.use_ssl) { |
587 |
|
|
588 |
printf(" %-20s = %s:%d%s [protocol %s via SSL]\n", "Host:Port", |
printf(" %-20s = %s:%d%s [protocol %s via SSL] with timeout %d seconds\n", |
589 |
n->hostname, n->port, n->request?n->request:"", |
"Host:Port", n->hostname, n->port, n->request?n->request:"", |
590 |
n->protocol->name); |
n->protocol->name, n->timeout); |
591 |
|
|
592 |
if(n->SSL.certmd5 != NULL) |
if(n->SSL.certmd5 != NULL) |
593 |
printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5); |
printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5); |
594 |
|
|
595 |
} else { |
} else { |
596 |
|
|
597 |
printf(" %-20s = %s:%d%s [protocol %s]\n", "Host:Port", |
printf(" %-20s = %s:%d%s [protocol %s] with timeout %d seconds\n", |
598 |
n->hostname, n->port, n->request?n->request:"", |
"Host:Port", n->hostname, n->port, n->request?n->request:"", |
599 |
n->protocol->name); |
n->protocol->name, n->timeout); |
600 |
|
|
601 |
} |
} |
602 |
|
|
603 |
} else if(n->family == AF_UNIX) { |
} else if(n->family == AF_UNIX) { |
604 |
|
|
605 |
printf(" %-20s = %s [protocol %s]\n", "Unix Socket", |
printf(" %-20s = %s [protocol %s] with timeout %d seconds\n", |
606 |
n->pathname, n->protocol->name); |
"Unix Socket", n->pathname, n->protocol->name, n->timeout); |
607 |
|
|
608 |
} |
} |
609 |
|
|
611 |
|
|
612 |
} |
} |
613 |
|
|
614 |
|
if(s->icmplist) |
615 |
|
for(i= s->icmplist; i; i= i->next) |
616 |
|
printf(" %-20s = if failed %s with timeout %d seconds then %s\n", |
617 |
|
"ICMP", icmpnames[i->type], i->timeout, actionnames[i->action]); |
618 |
|
|
619 |
for(t= s->timestamplist; t; t= t->next) { |
for(t= s->timestamplist; t; t= t->next) { |
620 |
|
|
621 |
if(t->test_changes) { |
if(t->test_changes) { |