refactored ccn-lite-peek.c