An extensible deep packet inspection library for the console