diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-05-09 10:50:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-09 10:50:56 -0500 |
| commit | 54f12d6f77c4069a7c636f95e563c030a5345d5b (patch) | |
| tree | e6479f8ddda642808908f15b3e08a0378b42acdb /pimd/pim_assert.c | |
| parent | 628132044645cfc6214b7807dd63cd80dde5d08a (diff) | |
| parent | c645ca817797de76e152926bcc82d471c8fce904 (diff) | |
Merge pull request #435 from chiragshah6/pim_dev
pimd: Introduce show command for protocol counters
Diffstat (limited to 'pimd/pim_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index f2bfb846dd..17f5fcfe0f 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -230,6 +230,7 @@ int pim_assert_recv(struct interface *ifp, int offset; uint8_t *curr; int curr_size; + struct pim_interface *pim_ifp = NULL; on_trace(__PRETTY_FUNCTION__, ifp, src_addr); @@ -311,6 +312,10 @@ int pim_assert_recv(struct interface *ifp, msg_metric.ip_address = src_addr; + pim_ifp = ifp->info; + zassert(pim_ifp); + ++pim_ifp->pim_ifstat_assert_recv; + return dispatch_assert(ifp, msg_source_addr.u.prefix4, sg.grp, @@ -473,6 +478,7 @@ static int pim_assert_do(struct pim_ifchannel *ch, metric.route_metric, PIM_FORCE_BOOLEAN(metric.rpt_bit_flag)); } + ++pim_ifp->pim_ifstat_assert_send; if (pim_msg_send(pim_ifp->pim_sock_fd, pim_ifp->primary_address, |
