1libnet-macros.h(3)         libnet Programmers Guide         libnet-macros.h(3)
2
3
4

NAME

6       libnet-macros.h - libnet macros and symbolic constants
7
8

SYNOPSIS

10   Macros
11       #define LIBNET_DONT_RESOLVE   0
12       #define LIBNET_RESOLVE   1
13       #define LIBNET_ON   0
14       #define LIBNET_OFF   1
15       #define IN6ADDR_ERROR_INIT
16       #define LIBNET_PR2   0
17       #define LIBNET_MAX_PACKET   0xffff
18       #define LIBNET_ERRBUF_SIZE   0x100
19       #define LIBNET_MAXOPTION_SIZE   0x28
20       #define for_each_context_in_cq(l)       for (l = libnet_cq_head();
21           libnet_cq_last(); l = libnet_cq_next())
22

Detailed Description

24       libnet macros and symbolic constants
25
26
27

Macro Definition Documentation

29   #define for_each_context_in_cq(l)       for (l = libnet_cq_head();
30       libnet_cq_last(); l = libnet_cq_next())
31       Provides an interface to iterate through the context queue of libnet
32       contexts. Before calling this macro, be sure to set the queue using
33       libnet_cq_head().
34
35   #define IN6ADDR_ERROR_INIT
36       Value:
37
38                                        { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,                                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,                                  0xff, 0xff } } }
39       IPv6 error code
40
41   #define LIBNET_DONT_RESOLVE   0
42       Used for libnet's name resolution functions, specifies that no DNS
43       lookups should be performed and the IP address should be kept in
44       numeric form.
45
46   #define LIBNET_ERRBUF_SIZE   0x100
47       The libnet error buffer is 256 bytes long.
48
49   #define LIBNET_MAX_PACKET   0xffff
50       The biggest an IP packet can be -- 65,535 bytes.
51
52   #define LIBNET_MAXOPTION_SIZE   0x28
53       IP and TCP options can be up to 40 bytes long.
54
55   #define LIBNET_OFF   1
56       Used several places, to specify 'on' or 'one'
57
58   #define LIBNET_ON   0
59       Used several places, to specify 'on' or 'one'
60
61   #define LIBNET_PR2   0
62       Used for libnet_get_prand() to specify function disposition
63
64   #define LIBNET_RESOLVE   1
65       Used for libnet's name resolution functions, specifies that a DNS
66       lookup can be performed if needed to resolve the IP address to a
67       canonical form.
68

SEE ALSO

70       libnet(3)
71

AUTHORS

73       The original author of libnet is Mike D. Schiffman.
74
75       libnet has been maintained and extensively enhanced since 2009 by Sam
76       Roberts.
77
78       It is maintained by the Libnet Developer Community at GitHub.
79
80        <https://github.com/libnet/libnet>
81

BUGS

83       Suggestions, bug reports/fixes, and pull requests, see:
84
85        <https://github.com/libnet/libnet/issues>
86
88       libnet is licensed under the 3-Clause BSD License.
89

SEE ALSO

91       libnet(3)
92

AUTHORS

94       The original author of libnet is Mike D. Schiffman.
95
96       libnet has been maintained and extensively enhanced since 2009 by Sam
97       Roberts.
98
99       It is maintained by the Libnet Developer Community at GitHub.
100
101        <https://github.com/libnet/libnet>
102

BUGS

104       Suggestions, bug reports/fixes, and pull requests, see:
105
106        <https://github.com/libnet/libnet/issues>
107
109       libnet is licensed under the 3-Clause BSD License.
110

SEE ALSO

112       libnet(3)
113

AUTHORS

115       The original author of libnet is Mike D. Schiffman.
116
117       libnet has been maintained and extensively enhanced since 2009 by Sam
118       Roberts.
119
120       It is maintained by the Libnet Developer Community at GitHub.
121
122        <https://github.com/libnet/libnet>
123

BUGS

125       Suggestions, bug reports/fixes, and pull requests, see:
126
127        <https://github.com/libnet/libnet/issues>
128
130       libnet is licensed under the 3-Clause BSD License.
131

SEE ALSO

133       libnet(3)
134

AUTHORS

136       The original author of libnet is Mike D. Schiffman.
137
138       libnet has been maintained and extensively enhanced since 2009 by Sam
139       Roberts.
140
141       It is maintained by the Libnet Developer Community at GitHub.
142
143        <https://github.com/libnet/libnet>
144

BUGS

146       Suggestions, bug reports/fixes, and pull requests, see:
147
148        <https://github.com/libnet/libnet/issues>
149
151       libnet is licensed under the 3-Clause BSD License.
152
153
154
155libnet-1.2                      Thu Jul 21 2022             libnet-macros.h(3)
Impressum