* update an mfc entry without resetting counters and S,G addresses. */
| 990 | * update an mfc entry without resetting counters and S,G addresses. |
| 991 | */ |
| 992 | static void |
| 993 | update_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. |
no outgoing calls
no test coverage detected