suricata
source-napatech.h
Go to the documentation of this file.
1
/* Copyright (C) 2012-2017 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 nPulse Technologies, LLC.
22
* \author Matt Keeler <mk@npulsetech.com>
23
*/
24
#ifndef __SOURCE_NAPATECH_H__
25
#define __SOURCE_NAPATECH_H__
26
27
void
TmModuleNapatechStreamRegister
(
void
);
28
TmEcode
NapatechStreamThreadDeinit
(
ThreadVars
*
tv
,
void
*data);
29
void
TmModuleNapatechDecodeRegister
(
void
);
30
31
#ifdef HAVE_NAPATECH
32
#include <nt.h>
33
34
struct
NapatechStreamDevConf
35
{
36
uint16_t
stream_id
;
37
intmax_t
hba
;
38
};
39
40
int
NapatechSetPortmap
(
int
port,
int
peer);
41
int
NapatechGetAdapter
(uint8_t port);
42
43
#endif
/* HAVE_NAPATECH */
44
#endif
/* __SOURCE_NAPATECH_H__ */
TmModuleNapatechDecodeRegister
void TmModuleNapatechDecodeRegister(void)
Register the Napatech decoder module.
Definition:
source-napatech.c:160
NapatechSetPortmap
int NapatechSetPortmap(int port, int peer)
NapatechStreamDevConf
Definition:
source-napatech.h:35
NapatechStreamDevConf::stream_id
uint16_t stream_id
Definition:
source-napatech.h:36
NapatechStreamDevConf::hba
intmax_t hba
Definition:
source-napatech.h:37
TmModuleNapatechStreamRegister
void TmModuleNapatechStreamRegister(void)
Register the Napatech receiver (reader) module.
Definition:
source-napatech.c:128
ThreadVars_
Per thread variable structure.
Definition:
threadvars.h:58
NapatechGetAdapter
int NapatechGetAdapter(uint8_t port)
TmEcode
TmEcode
Definition:
tm-threads-common.h:81
NapatechStreamThreadDeinit
TmEcode NapatechStreamThreadDeinit(ThreadVars *tv, void *data)
Deinitializes the NAPATECH card.
Definition:
source-napatech.c:1078
tv
ThreadVars * tv
Definition:
fuzz_decodepcapfile.c:29
src
source-napatech.h
Generated on Mon May 16 2022 23:30:38 for suricata by
1.8.18