Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ws_mempbrk.h
1 /* ws_mempbrk.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #ifndef __WS_MEMPBRK_H__
11 #define __WS_MEMPBRK_H__
12
13 #include "ws_symbol_export.h"
14
15 #ifdef HAVE_SSE4_2
16 #include <emmintrin.h>
17 #endif
18
21 typedef struct {
22 gchar patt[256];
23 #ifdef HAVE_SSE4_2
24 gboolean use_sse42;
25 __m128i mask;
26 #endif
27 } ws_mempbrk_pattern;
28
31 WS_DLL_PUBLIC void ws_mempbrk_compile(ws_mempbrk_pattern* pattern, const gchar *needles);
32
35 WS_DLL_PUBLIC const guint8 *ws_mempbrk_exec(const guint8* haystack, size_t haystacklen, const ws_mempbrk_pattern* pattern, guchar *found_needle);
36
37 #endif /* __WS_MEMPBRK_H__ */
ws_mempbrk_pattern
Definition: ws_mempbrk.h:21