Generic Library for Bidirectional Forwarding Detection