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:.PP
37                                        { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
38                                        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
39                                        0xff, 0xff } } }
40       IPv6 error code
41
42   #define LIBNET_DONT_RESOLVE   0
43       Used for libnet's name resolution functions, specifies that no DNS
44       lookups should be performed and the IP address should be kept in
45       numeric form.
46
47   #define LIBNET_ERRBUF_SIZE   0x100
48       The libnet error buffer is 256 bytes long.
49
50   #define LIBNET_MAX_PACKET   0xffff
51       The biggest an IP packet can be -- 65,535 bytes.
52
53   #define LIBNET_MAXOPTION_SIZE   0x28
54       IP and TCP options can be up to 40 bytes long.
55
56   #define LIBNET_OFF   1
57       Used several places, to specify 'on' or 'one'
58
59   #define LIBNET_ON   0
60       Used several places, to specify 'on' or 'one'
61
62   #define LIBNET_PR2   0
63       Used for libnet_get_prand() to specify function disposition
64
65   #define LIBNET_RESOLVE   1
66       Used for libnet's name resolution functions, specifies that a DNS
67       lookup can be performed if needed to resolve the IP address to a
68       canonical form.
69

SEE ALSO

71       libnet(3)
72

AUTHORS

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

BUGS

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

SEE ALSO

92       libnet(3)
93

AUTHORS

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

BUGS

105       Suggestions, bug reports/fixes, and pull requests, see:
106
107        <https://github.com/libnet/libnet/issues>
108
110       libnet is licensed under the 2-Clause BSD License.
111
112
113
114libnet-1.3                      Tue Oct 3 2023              libnet-macros.h(3)
Impressum