A c library to use the netfpga based packet generator and capturer