Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
epan
ip_opts.h
Go to the documentation of this file.
1
/* ip_opts.h
2
* Definitions of structures and routines for dissection of options that
3
* work like IPv4 options
4
*
5
* Wireshark - Network traffic analyzer
6
* By Gerald Combs <gerald@wireshark.org>
7
* Copyright 1998 Gerald Combs
8
*
9
* SPDX-License-Identifier: GPL-2.0-or-later
10
*/
11
12
#ifndef __IP_OPTS_H__
13
#define __IP_OPTS_H__
14
15
#include "ws_symbol_export.h"
16
20
typedef
enum
{
21
OPT_LEN_NO_LENGTH
,
22
OPT_LEN_FIXED_LENGTH
,
23
OPT_LEN_VARIABLE_LENGTH
24
}
opt_len_type
;
25
26
27
28
/* Quick-Start option, as defined by RFC4782 */
29
#define QS_FUNC_MASK 0xf0
30
#define QS_RATE_MASK 0x0f
31
#define QS_RATE_REQUEST 0
32
#define QS_RATE_REPORT 8
33
34
/* IP options */
35
#define IPOPT_COPY_MASK 0x80
36
#define IPOPT_CLASS_MASK 0x60
37
#define IPOPT_NUMBER_MASK 0x1F
38
39
WS_DLL_PUBLIC
const
value_string
qs_func_vals[];
40
WS_DLL_PUBLIC
value_string_ext
qs_rate_vals_ext;
41
42
WS_DLL_PUBLIC
const
value_string
ipopt_type_class_vals[];
43
WS_DLL_PUBLIC
const
value_string
ipopt_type_number_vals[];
44
45
#endif
OPT_LEN_FIXED_LENGTH
Definition:
ip_opts.h:22
opt_len_type
opt_len_type
Definition:
ip_opts.h:20
OPT_LEN_VARIABLE_LENGTH
Definition:
ip_opts.h:23
_value_string
Definition:
value_string.h:24
_value_string_ext
Definition:
value_string.h:164
OPT_LEN_NO_LENGTH
Definition:
ip_opts.h:21
Generated by
1.8.11