MCPcopy Create free account
hub / github.com/F-Stack/f-stack / update_mfc_params

Function update_mfc_params

freebsd/netinet/ip_mroute.c:992–1008  ·  view source on GitHub ↗

* update an mfc entry without resetting counters and S,G addresses. */

Source from the content-addressed store, hash-verified

990 * update an mfc entry without resetting counters and S,G addresses.
991 */
992static void
993update_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp)
994{
995 int i;
996
997 rt->mfc_parent = mfccp->mfcc_parent;
998 for (i = 0; i < V_numvifs; i++) {
999 rt->mfc_ttls[i] = mfccp->mfcc_ttls[i];
1000 rt->mfc_flags[i] = mfccp->mfcc_flags[i] & V_mrt_api_config &
1001 MRT_MFC_FLAGS_ALL;
1002 }
1003 /* set the RP address */
1004 if (V_mrt_api_config & MRT_MFC_RP)
1005 rt->mfc_rp = mfccp->mfcc_rp;
1006 else
1007 rt->mfc_rp.s_addr = INADDR_ANY;
1008}
1009
1010/*
1011 * fully initialize an mfc entry from the parameter.

Callers 2

init_mfc_paramsFunction · 0.85
add_mfcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected