![]() |
Network Wizard for VHDL Test Benches
|
Functions | ||
| t_slv_arr | f_pcap_read_pkt ( name: in string pkt_no: in natural pkt_len: in natural bigendian: in boolean ) | [ impure ] |
| integer | f_pcap_get_pkt_cnt ( name: in string ) | [ impure ] |
| Get PCAP file packet count. | ||
| natural | f_pcap_get_pkt_len ( name: in string , pkt_no: in natural ) | [ impure ] |
| Get length of network packet. | ||
| t_slv_arr | f_pcap_get_pkt ( name: in string pkt_no: in natural pkt_len: in natural ) | [ impure ] |
| Extract packet from file. | ||
|
Function |
Get PCAP file packet count.
| name | PCAP file name |
Get the number of network packets in PCAP file. Supports both PCAP and PCAPNG formats (only the first section in the latter format).
Example use
|
Function |
Get length of network packet.
| name | PCAP file name |
| pkt_no | Index of network packet in file (0 is first) |
Get the length of a specific network packet in a PCAP file.
Example use
|
Function |
Extract packet from file.
| name | PCAP file name |
| pkt_no | Index of network packet in file (0 is first) |
| pkt_len | Number of bytes to read |
Get a specific packet from file.
Example use