FreeBSD/contrib/ntp/ntpd/ntp_io.c
/*
 * function to dump the contents of the interface structure
 * for debugging use only.
 */
function to dump the contents of the interface structure
for debugging use only.
function to dump the contents of the interface structure for debugging use only .
void
interface_dump(const endpt *itf)
{
	printf("Dumping interface: %p\n", itf);
	printf("fd = %d\n", itf->fd);
	printf("bfd = %d\n", itf->bfd);
	printf("sin = %s,\n", stoa(&itf->sin));
	sockaddr_dump(&itf->sin);
	printf("bcast = %s,\n", stoa(&itf->bcast));
	sockaddr_dump(&itf->bcast);
	printf("mask = %s,\n", stoa(&itf->mask));
	sockaddr_dump(&itf->mask);
	printf("name = %s\n", itf->name);
	printf("flags = 0x%08x\n", itf->flags);
	printf("last_ttl = %d\n", itf->last_ttl);
	printf("addr_refid = %08x\n", itf->addr_refid);
	printf("num_mcast = %d\n", itf->num_mcast);
	printf("received = %ld\n", itf->received);
	printf("sent = %ld\n", itf->sent);
	printf("notsent = %ld\n", itf->notsent);
	printf("ifindex = %u\n", itf->ifindex);
	printf("peercnt = %u\n", itf->peercnt);
	printf("phase = %u\n", itf->phase);
}
void interface_dump ( const endpt * itf ) { printf ( " \n " , itf ) ; printf ( " \n " , itf -> fd ) ; printf ( " \n " , itf -> bfd ) ; printf ( " \n " , stoa ( & itf -> sin ) ) ; sockaddr_dump ( & itf -> sin ) ; printf ( " \n " , stoa ( & itf -> bcast ) ) ; sockaddr_dump ( & itf -> bcast ) ; printf ( " \n " , stoa ( & itf -> mask ) ) ; sockaddr_dump ( & itf -> mask ) ; printf ( " \n " , itf -> name ) ; printf ( " \n " , itf -> flags ) ; printf ( " \n " , itf -> last_ttl ) ; printf ( " \n " , itf -> addr_refid ) ; printf ( " \n " , itf -> num_mcast ) ; printf ( " \n " , itf -> received ) ; printf ( " \n " , itf -> sent ) ; printf ( " \n " , itf -> notsent ) ; printf ( " \n " , itf -> ifindex ) ; printf ( " \n " , itf -> peercnt ) ; printf ( " \n " , itf -> phase ) ; }
function to dump the contents of the interface structure
 for debugging use only.
function to dump the contents of the interface structure for debugging use only .