Diff for /embedaddon/libnet/doc/man/man3/libnet-macros.h.3 between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 22:14:23 version 1.1.1.2, 2013/07/22 11:54:41
Line 1 Line 1
.TH "libnet-macros.h" 3 "10 Mar 2004" "libnet" \" -*- nroff -*-.TH "libnet-macros.h" 3 "Thu Mar 29 2012" "Version 1.1" "libnet" \" -*- nroff -*-
 .ad l  .ad l
 .nh  .nh
 .SH NAME  .SH NAME
libnet-macros.h \- libnet macros and symbloc constants  libnet-macros.h \- 
 .PP
 libnet macros and symbolic constants  
   
 .SH SYNOPSIS  .SH SYNOPSIS
 .br  .br
Line 77  libnet-macros.h \- libnet macros and symbloc constants Line 79  libnet-macros.h \- libnet macros and symbloc constants
 .RI "#define \fBUNFIX\fP(n)   (n)"  .RI "#define \fBUNFIX\fP(n)   (n)"
 .br  .br
 .ti -1c  .ti -1c
   .RI "#define \fBLIBNET_DO_PAYLOAD\fP(l, p)"
   .br
   .ti -1c
 .RI "#define \fBLIBNET_CKSUM_CARRY\fP(x)   (x = (x >> 16) + (x & 0xffff), (~(x + (x >> 16)) & 0xffff))"  .RI "#define \fBLIBNET_CKSUM_CARRY\fP(x)   (x = (x >> 16) + (x & 0xffff), (~(x + (x >> 16)) & 0xffff))"
 .br  .br
 .ti -1c  .ti -1c
.RI "#define \fBLIBNET_OSPF_AUTHCPY\fP(x, y)   memcpy((u_int8_t *)x, (u_int8_t *)y, sizeof(y))".RI "#define \fBLIBNET_OSPF_AUTHCPY\fP(x, y)   memcpy((uint8_t *)x, (uint8_t *)y, sizeof(y))"
 .br  .br
 .ti -1c  .ti -1c
.RI "#define \fBLIBNET_OSPF_CKSUMBUF\fP(x, y)   memcpy((u_int8_t *)x, (u_int8_t *)y, sizeof(y))".RI "#define \fBLIBNET_OSPF_CKSUMBUF\fP(x, y)   memcpy((uint8_t *)x, (uint8_t *)y, sizeof(y))"
 .br  .br
 .ti -1c  .ti -1c
.RI "#define \fBLIBNET_NTP_DO_LI_VN_MODE\fP(li, vn, md)   ((u_int8_t)((((li) << 6) & 0xc0) | (((vn) << 3) & 0x38) | ((md) & 0x7)))".RI "#define \fBLIBNET_NTP_DO_LI_VN_MODE\fP(li, vn, md)   ((uint8_t)((((li) << 6) & 0xc0) | (((vn) << 3) & 0x38) | ((md) & 0x7)))"
 .br  .br
 .ti -1c  .ti -1c
.RI "#define \fBLIBNET_ISLOOPBACK\fP(p)   (strcmp((p)->ifr_name, 'lo0') == 0)".RI "#define \fBLIBNET_ISLOOPBACK\fP(p)   (strcmp((p)->ifr_name, 'lo') == 0)"
 .br  .br
 .ti -1c  .ti -1c
 .RI "#define \fBLIBNET_ISADVMODE\fP(x)   (x & 0x08)"  .RI "#define \fBLIBNET_ISADVMODE\fP(x)   (x & 0x08)"
Line 127  libnet-macros.h \- libnet macros and symbloc constants Line 132  libnet-macros.h \- libnet macros and symbloc constants
 .in -1c  .in -1c
 .SH "Detailed Description"  .SH "Detailed Description"
 .PP   .PP 
libnet macros and symbloc constants libnet macros and symbolic constants 
   
   
 .SH "Define Documentation"  .SH "Define Documentation"
 .PP   .PP 
.SS "#define for_each_context_in_cq(l)   for (l = libnet_cq_head(); libnet_cq_last(); l = libnet_cq_next())".SS "#define for_each_context_in_cq(l)   for (l = libnet_cq_head(); libnet_cq_last(); l = libnet_cq_next())"Provides an interface to iterate through the context queue of libnet contexts. Before calling this macro, be sure to set the queue using \fBlibnet_cq_head()\fP. 
 .SS "#define IN6ADDR_ERROR_INIT"\fBValue:\fP
 .PP  .PP
Provides an interface to iterate through the context queue of libnet contexts. Before calling this macro, be sure to set the queue using \fBlibnet_cq_head()\fP. .nf
.SS "#define IN6ADDR_ERROR_INIT" 
.PP 
\fBValue:\fP.nf 
 { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \  { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
                                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \                                   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
                                  0xff, 0xff } } }                                   0xff, 0xff } } }
 .fi  .fi
 IPv6 error code   IPv6 error code 
.SS "#define LIBNET_DONT_RESOLVE   0".SS "#define LIBNET_DO_PAYLOAD(l, p)"\fBValue:\fP
 .PP  .PP
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. .nf
.SS "#define LIBNET_ERRBUF_SIZE   0x100"if (payload_s && !payload)                                                   \
.PP{                                                                            \
The libnet error buffer is 256 bytes long.     snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,                                 \
.SS "#define LIBNET_MAX_PACKET   0xffff"            '%s(): payload inconsistency\n', __func__);                      \
.PP    goto bad;                                                                \
The biggest an IP packet can be -- 65,535 bytes. }                                                                            \
.SS "#define LIBNET_MAXOPTION_SIZE   0x28"if (payload_s)                                                               \
.PP{                                                                            \
IP and TCP options can be up to 40 bytes long.     n = libnet_pblock_append(l, p, payload, payload_s);                      \
.SS "#define LIBNET_OFF   1"    if (n == (uint32_t) - 1)                                                 \
.PP    {                                                                        \
Used several places, to specify 'on' or 'one'         goto bad;                                                            \
.SS "#define LIBNET_ON   0"    }                                                                        \
.PP}                                                                            \
Used several places, to specify 'on' or 'one' .fi
.SS "#define LIBNET_PR2   0".SS "#define LIBNET_DONT_RESOLVE   0"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. 
.PP.SS "#define LIBNET_ERRBUF_SIZE   0x100"The libnet error buffer is 256 bytes long. 
Used for \fBlibnet_get_prand()\fP to specify function disposition .SS "#define LIBNET_MAX_PACKET   0xffff"The biggest an IP packet can be -- 65,535 bytes. 
.SS "#define LIBNET_RESOLVE   1".SS "#define LIBNET_MAXOPTION_SIZE   0x28"IP and TCP options can be up to 40 bytes long. 
.PP.SS "#define LIBNET_OFF   1"Used several places, to specify 'on' or 'one' 
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. .SS "#define LIBNET_ON   0"Used several places, to specify 'on' or 'one' 
 .SS "#define LIBNET_PR2   0"Used for \fBlibnet_get_prand()\fP to specify function disposition 
 .SS "#define LIBNET_RESOLVE   1"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. 
 .SH "Author"  .SH "Author"
 .PP   .PP 
 Generated automatically by Doxygen for libnet from the source code.  Generated automatically by Doxygen for libnet from the source code.

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>