Yes, there is a SNF kernel API.
To build the SNF kernel API, you will need to download the binary tarball (.tgz) from the Sniffer10G Download Page and compile with
rebuild.sh -m myri_snf,myri_eosnf,myri_snf_kbridge,myri_snf_kapi
And then refer to the example applications (e.g., snf_kbridge.c) in the share/examples/ directory. snf_kbridge.c is a Sniffer10G example program that receives packets on an interface and injects them on an interface. Its main purpose is to demonstrate how to use the Sniffer10G kernel API to receive and inject.
Related Links: