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, pcap_if::name, pcap_if::next, packet_handler(), PCAP_ERRBUF_SIZE, pcap_findalldevs_ex(), pcap_freealldevs(), pcap_if_t, pcap_loop(), pcap_open(), PCAP_OPENFLAG_PROMISCUOUS, PCAP_SRC_IF_STRING, 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. Referenced by main().

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