FreeBSD/sys/netinet/ip_mroute.c
/*
 * update an mfc entry without resetting counters and S,G addresses.
 */
update an mfc entry without resetting counters and S,G addresses.
update an mfc entry without resetting counters and S G addresses .
static void
update_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp)
{
    int i;
    rt->mfc_parent = mfccp->mfcc_parent;
    for (i = 0; i < V_numvifs; i++) {
	rt->mfc_ttls[i] = mfccp->mfcc_ttls[i];
	rt->mfc_flags[i] = mfccp->mfcc_flags[i] & V_mrt_api_config &
	    MRT_MFC_FLAGS_ALL;
    }
    if (V_mrt_api_config & MRT_MFC_RP)
	rt->mfc_rp = mfccp->mfcc_rp;
    else
	rt->mfc_rp.s_addr = INADDR_ANY;
}
static void update_mfc_params ( struct mfc * rt , struct mfcctl2 * mfccp ) { int i ; rt -> mfc_parent = mfccp -> mfcc_parent ; for ( i = 0 ; i < V_numvifs ; i ++ ) { rt -> mfc_ttls [ i ] = mfccp -> mfcc_ttls [ i ] ; rt -> mfc_flags [ i ] = mfccp -> mfcc_flags [ i ] & V_mrt_api_config & MRT_MFC_FLAGS_ALL ; } if ( V_mrt_api_config & MRT_MFC_RP ) rt -> mfc_rp = mfccp -> mfcc_rp ; else rt -> mfc_rp . s_addr = INADDR_ANY ; }
update an mfc entry without resetting counters and S,G addresses.
update an mfc entry without resetting counters and S G addresses .
/* set the RP address */