consolidate snaplen management into a separate function called by val_to_ring