* fully initialize an mfc entry from the parameter. */
| 1011 | * fully initialize an mfc entry from the parameter. |
| 1012 | */ |
| 1013 | static void |
| 1014 | init_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 | |
| 1028 | static void |
| 1029 | expire_mfc(struct mfc *rt) |
no test coverage detected