libnet-macros.h(3) Library Functions Manual libnet-macros.h(3)

libnet-macros.h - libnet macros and symbolic constants


#define LIBNET_DONT_RESOLVE 0
#define LIBNET_RESOLVE 1
#define LIBNET_ON 0
#define LIBNET_OFF 1
#define IN6ADDR_ERROR_INIT
#define LIBNET_PR2 0
#define LIBNET_MAX_PACKET 0xffff
#define LIBNET_ERRBUF_SIZE 0x100
#define LIBNET_MAXOPTION_SIZE 0x28
#define for_each_context_in_cq(l) for (l = libnet_cq_head(); libnet_cq_last(); l = libnet_cq_next())

libnet macros and symbolic constants

Provides an interface to iterate through the context queue of libnet contexts. Before calling this macro, be sure to set the queue using libnet_cq_head().

Value:.PP

                                 { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
                                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
                                 0xff, 0xff } } }

IPv6 error code

Used for libnet's name resolution functions, specifies that no DNS lookups should be performed and the IP address should be kept in numeric form.

The libnet error buffer is 256 bytes long.

The biggest an IP packet can be -- 65,535 bytes.

IP and TCP options can be up to 40 bytes long.

Used several places, to specify 'on' or 'one'

Used several places, to specify 'on' or 'one'

Used for libnet_get_prand() to specify function disposition

Used for libnet's name resolution functions, specifies that a DNS lookup can be performed if needed to resolve the IP address to a canonical form.

SEE ALSO

libnet(3)

The original author of libnet is Mike D. Schiffman.

libnet has been maintained and extensively enhanced since 2009 by Sam Roberts.

It is maintained by the Libnet Developer Community at GitHub.

https://github.com/libnet/libnet

Suggestions, bug reports/fixes, and pull requests, see:

https://github.com/libnet/libnet/issues

libnet is licensed under the 2-Clause BSD License.

SEE ALSO

libnet(3)

The original author of libnet is Mike D. Schiffman.

libnet has been maintained and extensively enhanced since 2009 by Sam Roberts.

It is maintained by the Libnet Developer Community at GitHub.

https://github.com/libnet/libnet

Suggestions, bug reports/fixes, and pull requests, see:

https://github.com/libnet/libnet/issues

libnet is licensed under the 2-Clause BSD License.

SEE ALSO

libnet(3)

The original author of libnet is Mike D. Schiffman.

libnet has been maintained and extensively enhanced since 2009 by Sam Roberts.

It is maintained by the Libnet Developer Community at GitHub.

https://github.com/libnet/libnet

Suggestions, bug reports/fixes, and pull requests, see:

https://github.com/libnet/libnet/issues

libnet is licensed under the 2-Clause BSD License.

libnet-1.3 libnet Programmers Guide