Since control packets may be dropped by ttl check, the counter
operation should be put after all check including ttl check.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
return 0;
}
- bfd->stats.rx_ctrl_pkt++;
-
/*
* Multi hop: validate packet TTL.
* Single hop: set local address that received the packet.
bfd->local_address = local;
}
+ bfd->stats.rx_ctrl_pkt++;
+
/*
* If no interface was detected, save the interface where the
* packet came in.