Home
last modified time | relevance | path

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

/linux-6.12.1/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()
/linux-6.12.1/tools/testing/selftests/bpf/
Dnetwork_helpers.c733 int pcap_fd; member
889 int fd = ctx->pcap_fd, nfds, r; in traffic_monitor_thread()
1082 ctx->pcap_fd = pcap_get_selectable_fd(ctx->pcap); in traffic_monitor_start()
1083 if (ctx->pcap_fd < 0) { in traffic_monitor_start()