Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
manuf.h
1
/* manuf.h
2
*
3
* Wireshark - Network traffic analyzer
4
* By Gerald Combs <
[email protected]
>
5
* Copyright 1998 Gerald Combs
6
*
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#pragma once
10
#include <wireshark.h>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
/* __cplusplus */
15
16
#define MANUF_BLOCK_SIZE 5
17
18
struct
ws_manuf
{
19
uint8_t block[MANUF_BLOCK_SIZE];
20
uint8_t mask;
21
const
char
*short_name;
22
const
char
*long_name;
23
};
24
25
/* Internal structure, not supposed to be accessed by users. */
26
struct
ws_manuf_iter
{
27
size_t
idx24, idx28, idx36;
28
struct
ws_manuf
buf24;
29
struct
ws_manuf
buf28;
30
struct
ws_manuf
buf36;
31
};
32
33
typedef
struct
ws_manuf_iter
ws_manuf_iter_t
;
34
42
WS_DLL_PUBLIC
43
const
char
*
44
ws_manuf_lookup_str(
const
uint8_t addr[6],
const
char
**long_name_ptr);
45
54
WS_DLL_PUBLIC
55
const
char
*
56
ws_manuf_lookup(
const
uint8_t addr[6],
const
char
**long_name_ptr,
unsigned
*mask_ptr);
57
68
WS_DLL_PUBLIC
69
const
char
*
70
ws_manuf_lookup_oui24(
const
uint8_t oui[3],
const
char
**long_name_ptr);
71
77
WS_DLL_PUBLIC
78
void
79
ws_manuf_iter_init(
ws_manuf_iter_t
*iter);
80
88
WS_DLL_PUBLIC
89
bool
90
ws_manuf_iter_next(
ws_manuf_iter_t
*iter,
struct
ws_manuf
*result);
91
100
WS_DLL_PUBLIC
101
const
char
*
102
ws_manuf_block_str(
char
*buf,
size_t
buf_size,
const
struct
ws_manuf
*ptr);
103
109
WS_DLL_PUBLIC
void
110
ws_manuf_dump(FILE *fp);
111
120
WS_DLL_PUBLIC
121
size_t
122
ws_manuf_count(
void
);
123
124
#ifdef __cplusplus
125
}
126
#endif
/* __cplusplus */
ws_manuf_iter
Definition
manuf.h:26
ws_manuf
Definition
manuf.h:18
Generated by
1.9.8