summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfdd/bfd_packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c
index 652b914118..839f06329a 100644
--- a/bfdd/bfd_packet.c
+++ b/bfdd/bfd_packet.c
@@ -639,8 +639,6 @@ int bfd_recv_cb(struct thread *t)
return 0;
}
- bfd->stats.rx_ctrl_pkt++;
-
/*
* Multi hop: validate packet TTL.
* Single hop: set local address that received the packet.
@@ -656,6 +654,8 @@ int bfd_recv_cb(struct thread *t)
bfd->local_address = local;
}
+ bfd->stats.rx_ctrl_pkt++;
+
/*
* If no interface was detected, save the interface where the
* packet came in.