FreeBSD/sys/netinet6/in6_mcast.c
/*
 * Dump an in6_multi structure to the console.
 */
Dump an in6_multi structure to the console.
Dump an in6_multi structure to the console .
void
in6m_print(const struct in6_multi *inm)
{
	int t;
	char ip6tbuf[INET6_ADDRSTRLEN];
	if ((ktr_mask & KTR_MLD) == 0)
		return;
	printf("%s: --- begin in6m %p ---\n", __func__, inm);
	printf("addr %s ifp %p(%s) ifma %p\n",
	    ip6_sprintf(ip6tbuf, &inm->in6m_addr),
	    inm->in6m_ifp,
	    if_name(inm->in6m_ifp),
	    inm->in6m_ifma);
	printf("timer %u state %s refcount %u scq.len %u\n",
	    inm->in6m_timer,
	    in6m_state_str(inm->in6m_state),
	    inm->in6m_refcount,
	    mbufq_len(&inm->in6m_scq));
	printf("mli %p nsrc %lu sctimer %u scrv %u\n",
	    inm->in6m_mli,
	    inm->in6m_nsrc,
	    inm->in6m_sctimer,
	    inm->in6m_scrv);
	for (t = 0; t < 2; t++) {
		printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
		    in6m_mode_str(inm->in6m_st[t].iss_fmode),
		    inm->in6m_st[t].iss_asm,
		    inm->in6m_st[t].iss_ex,
		    inm->in6m_st[t].iss_in,
		    inm->in6m_st[t].iss_rec);
	}
	printf("%s: --- end in6m %p ---\n", __func__, inm);
}
void in6m_print ( const struct in6_multi * inm ) { int t ; char ip6tbuf [ INET6_ADDRSTRLEN ] ; if ( ( ktr_mask & KTR_MLD ) == 0 ) return ; printf ( " \n " , __func__ , inm ) ; printf ( " \n " , ip6_sprintf ( ip6tbuf , & inm -> in6m_addr ) , inm -> in6m_ifp , if_name ( inm -> in6m_ifp ) , inm -> in6m_ifma ) ; printf ( " \n " , inm -> in6m_timer , in6m_state_str ( inm -> in6m_state ) , inm -> in6m_refcount , mbufq_len ( & inm -> in6m_scq ) ) ; printf ( " \n " , inm -> in6m_mli , inm -> in6m_nsrc , inm -> in6m_sctimer , inm -> in6m_scrv ) ; for ( t = 0 ; t < 2 ; t ++ ) { printf ( " \n " , t , in6m_mode_str ( inm -> in6m_st [ t ] . iss_fmode ) , inm -> in6m_st [ t ] . iss_asm , inm -> in6m_st [ t ] . iss_ex , inm -> in6m_st [ t ] . iss_in , inm -> in6m_st [ t ] . iss_rec ) ; } printf ( " \n " , __func__ , inm ) ; }
Dump an in6_multi structure to the console.
Dump an in6_multi structure to the console .