Home
last modified time | relevance | path

Searched refs:pcap_fd (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/tools/bpf/
Dbpf_dbg.c139 static int pcap_fd = -1; variable
910 if (pcap_fd < 0) in pcap_loaded()
913 return pcap_fd >= 0; in pcap_loaded()
949 pcap_fd = open(file, O_RDONLY); in try_load_pcap()
950 if (pcap_fd < 0) { in try_load_pcap()
955 ret = fstat(pcap_fd, &sb); in try_load_pcap()
973 MAP_SHARED | MAP_LOCKED, pcap_fd, 0); in try_load_pcap()
993 if (pcap_fd >= 0) { in try_close_pcap()
995 close(pcap_fd); in try_close_pcap()
1000 pcap_fd = -1; in try_close_pcap()