<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rdpcap(filename, count=-1):
 """Read a pcap or pcapng file and return a packet list count: read only <count> packets """

    with PcapReader(filename) as fdesc:
        return fdesc.read_all(count=count)