def init_capfile(self, layers=<NUM_LIT:0>):
tfile = create_pcap()<EOL>self.capfile = savefile.load_savefile(tfile, layers=layers)<EOL>tfile.close()<EOL>if os.path.exists(tfile.name):<EOL><INDENT>os.unlink(tfile.name)<EOL><DEDENT>
Initialise the capture file.