FreeBSD/sys/netinet/ip_mroute.c
/*
 * fully initialize an mfc entry from the parameter.
 */
fully initialize an mfc entry from the parameter.
fully initialize an mfc entry from the parameter .
static void
init_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp)
{
    rt->mfc_origin     = mfccp->mfcc_origin;
    rt->mfc_mcastgrp   = mfccp->mfcc_mcastgrp;
    update_mfc_params(rt, mfccp);
    rt->mfc_pkt_cnt    = 0;
    rt->mfc_byte_cnt   = 0;
    rt->mfc_wrong_if   = 0;
    timevalclear(&rt->mfc_last_assert);
}
static void init_mfc_params ( struct mfc * rt , struct mfcctl2 * mfccp ) { rt -> mfc_origin = mfccp -> mfcc_origin ; rt -> mfc_mcastgrp = mfccp -> mfcc_mcastgrp ; update_mfc_params ( rt , mfccp ) ; rt -> mfc_pkt_cnt = 0 ; rt -> mfc_byte_cnt = 0 ; rt -> mfc_wrong_if = 0 ; timevalclear ( & rt -> mfc_last_assert ) ; }
fully initialize an mfc entry from the parameter.
fully initialize an mfc entry from the parameter .
/* initialize pkt counters per src-grp */