Main Page Modules Data Structures File List Data Fields Globals Related Pages

# basic_dump.c File Reference

`#include "pcap.h"`

Go to the source code of this file.

## Functions
void | packet_handler (u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data)
| main ()

## Function Documentation

main | ( |  | ) |

| Definition at line 6 of file basic_dump.c. References pcap_if::description, errbuf, pcap_if::name, pcap_if::next, PCAP_ERRBUF_SIZE, pcap_findalldevs_ex(), pcap_freealldevs(), pcap_loop(), pcap_open(), and pcap_t.

void packet_handler | ( | u_char * | param,
|  | const struct pcap_pkthdr * | header,
|  | const u_char * | pkt_data
| ) |

| Definition at line 81 of file basic_dump.c. References pcap_pkthdr::len, and pcap_pkthdr::ts.

documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.