added an option for buffer size of pcap