diff options
| author | Russ White <russ@riw.us> | 2022-02-04 10:55:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 10:55:00 -0500 |
| commit | ab68283ceedc05ea1a7f9c54f03a87f5dc199a01 (patch) | |
| tree | 7e5141ac555b5a54dee65080b18788df8c2434da /zebra/interface.c | |
| parent | 66a59f87435e5cb7be61a9566c3aecc8c3bcc5d7 (diff) | |
| parent | 637f95bf2d1d8dcf87c4a2cd82a680461961631d (diff) | |
Merge pull request #10401 from donaldsharp/donot_agree
zebra: Make Router Advertisement warnings show up once every 6 hours
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index e4e80ec4e9..2e13cfd55c 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -158,6 +158,16 @@ static int if_zebra_new_hook(struct interface *ifp) rtadv->AdvReachableTime = 0; rtadv->AdvRetransTimer = 0; rtadv->AdvCurHopLimit = RTADV_DEFAULT_HOPLIMIT; + memset(&rtadv->lastadvcurhoplimit, 0, + sizeof(rtadv->lastadvcurhoplimit)); + memset(&rtadv->lastadvmanagedflag, 0, + sizeof(rtadv->lastadvmanagedflag)); + memset(&rtadv->lastadvotherconfigflag, 0, + sizeof(rtadv->lastadvotherconfigflag)); + memset(&rtadv->lastadvreachabletime, 0, + sizeof(rtadv->lastadvreachabletime)); + memset(&rtadv->lastadvretranstimer, 0, + sizeof(rtadv->lastadvretranstimer)); rtadv->AdvDefaultLifetime = -1; /* derive from MaxRtrAdvInterval */ rtadv->HomeAgentPreference = 0; |
