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

Function init_mfc_params

freebsd/netinet/ip_mroute.c:1013–1026  ·  view source on GitHub ↗

* fully initialize an mfc entry from the parameter. */

Source from the content-addressed store, hash-verified

1011 * fully initialize an mfc entry from the parameter.
1012 */
1013static void
1014init_mfc_params(struct mfc *rt, struct mfcctl2 *mfccp)
1015{
1016 rt->mfc_origin = mfccp->mfcc_origin;
1017 rt->mfc_mcastgrp = mfccp->mfcc_mcastgrp;
1018
1019 update_mfc_params(rt, mfccp);
1020
1021 /* initialize pkt counters per src-grp */
1022 rt->mfc_pkt_cnt = 0;
1023 rt->mfc_byte_cnt = 0;
1024 rt->mfc_wrong_if = 0;
1025 timevalclear(&rt->mfc_last_assert);
1026}
1027
1028static void
1029expire_mfc(struct mfc *rt)

Callers 1

add_mfcFunction · 0.85

Calls 1

update_mfc_paramsFunction · 0.85

Tested by

no test coverage detected