FreeBSD/sys/netinet6/ip6_mroute.c
/*
 * pim6_encapcheck() is called by the encap6_input() path at runtime to
 * determine if a packet is for PIM; allowing PIM to be dynamically loaded
 * into the kernel.
 */
pim6_encapcheck() is called by the encap6_input() path at runtime to
determine if a packet is for PIM; allowing PIM to be dynamically loaded
into the kernel.
pim6_encapcheck () is called by the encap6_input () path at runtime to determine if a packet is for PIM ; allowing PIM to be dynamically loaded into the kernel .
static int
pim6_encapcheck(const struct mbuf *m, int off, int proto, void *arg)
{
#ifdef DIAGNOSTIC
    KASSERT(proto == IPPROTO_PIM, ("not for IPPROTO_PIM"));
#endif
    if (proto != IPPROTO_PIM)
	return 0;	
    return 64;		
}
static int pim6_encapcheck ( const struct mbuf * m , int off , int proto , void * arg ) { #ifdef DIAGNOSTIC KASSERT ( proto == IPPROTO_PIM , ( " " ) ) ; #endif if ( proto != IPPROTO_PIM ) return 0 ; return 64 ; }
pim6_encapcheck() is called by the encap6_input() path at runtime to
 determine if a packet is for PIM; allowing PIM to be dynamically loaded
 into the kernel.
pim6_encapcheck () is called by the encap6_input () path at runtime to determine if a packet is for PIM ; allowing PIM to be dynamically loaded into the kernel .
/* not for us; reject the datagram. */ /* claim the datagram. */