• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jasonish / suricata / 23105300094

15 Mar 2026 06:48AM UTC coverage: 75.784% (-0.7%) from 76.495%
23105300094

push

github

jasonish
github-ci: ubuntu minimal build fixups

- Don't run on the GitHub provided VM, it contains a newer Rust than
  stock Ubuntu does.

252836 of 333628 relevant lines covered (75.78%)

1978514.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/source-pcap.h
1
/* Copyright (C) 2007-2019 Open Information Security Foundation
2
 *
3
 * You can copy, redistribute or modify this Program under the terms of
4
 * the GNU General Public License version 2 as published by the Free
5
 * Software Foundation.
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 * GNU General Public License for more details.
11
 *
12
 * You should have received a copy of the GNU General Public License
13
 * version 2 along with this program; if not, write to the Free Software
14
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
 * 02110-1301, USA.
16
 */
17

18
/**
19
 * \file
20
 *
21
 * \author Victor Julien <victor@inliniac.net>
22
 */
23

24
#ifndef SURICATA_SOURCE_PCAP_H
25
#define SURICATA_SOURCE_PCAP_H
26

27
typedef struct PcapFileFileVars_ PcapFileFileVars;
28

29
void TmModuleReceivePcapRegister (void);
30
void TmModuleDecodePcapRegister (void);
31
void PcapTranslateIPToDevice(char *pcap_dev, size_t len);
32

33
#define LIBPCAP_COPYWAIT    500
×
34
#define LIBPCAP_PROMISC     1
×
35

36
/* per packet Pcap vars */
37
typedef struct PcapPacketVars_ {
38
    uint64_t pcap_cnt;
39
    uint32_t tenant_id;
40
    PcapFileFileVars *pfv;
41
} PcapPacketVars;
42

43
/** needs to be able to contain Windows adapter id's, so
44
 *  must be quite long. */
45
#define PCAP_IFACE_NAME_LENGTH 128
46

47
typedef struct PcapIfaceConfig_
48
{
49
    char iface[PCAP_IFACE_NAME_LENGTH];
50
    /* number of threads */
51
    uint16_t threads;
52
    /* socket buffer size */
53
    int buffer_size;
54
    /* snapshot length */
55
    int snaplen;
56
    /* promiscuous value */
57
    int promisc;
58
    /* BPF filter */
59
    const char *bpf_filter;
60
    ChecksumValidationMode checksum_mode;
61
    SC_ATOMIC_DECLARE(unsigned int, ref);
62
    void (*DerefFunc)(void *);
63
} PcapIfaceConfig;
64

65
#endif /* SURICATA_SOURCE_PCAP_H */
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc