diff options
| author | Russ White <russ@riw.us> | 2020-03-24 10:19:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-24 10:19:17 -0400 |
| commit | e89bb41d803cb6a0eb49542143365ecceafbe33e (patch) | |
| tree | 737a30169cc8a1bead6fab1aa17bb688c78a1b91 /pimd/pim_iface.c | |
| parent | bb1cceed4a7cc67cc8ebf3360cd15eca31efa5a9 (diff) | |
| parent | b279f95c7097dd66f43d4be09c0071ce1fdb83c5 (diff) | |
Merge pull request #6047 from sarav511/hold0
pimd: Pim hello should be sent with 0 hold time on address change onold src ip
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index d05790d33e..07c4172f22 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -277,7 +277,7 @@ static void pim_addr_change(struct interface *ifp) 1) Before an interface goes down or changes primary IP address, a Hello message with a zero HoldTime should be sent immediately (with the old IP address if the IP address changed). - -- FIXME See CAVEAT C13 + -- Done at the caller of the function as new ip already updated here 2) After an interface has changed its IP address, it MUST send a Hello message with its new IP address. @@ -322,6 +322,10 @@ static int detect_primary_address_change(struct interface *ifp, } if (changed) { + /* Before updating pim_ifp send Hello time with 0 hold time */ + if (PIM_IF_TEST_PIM(pim_ifp->options)) { + pim_hello_send(ifp, 0 /* zero-sec holdtime */); + } pim_ifp->primary_address = new_prim_addr; } |
