Set snaplen in file-based constructor.