tcpdump  4.99.1
About: tcpdump is a tool for network monitoring and data acquisition.
  Fossies Dox: tcpdump-4.99.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ip6.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip6_hdr
 
struct  ip6_ext
 
struct  ip6_hbh
 
struct  ip6_dest
 
struct  ip6_rthdr
 
struct  ip6_rthdr0
 
struct  ip6_srh
 
struct  ip6_frag
 

Macros

#define ip6_vfc   ip6_ctlun.ip6_un2_vfc
 
#define IP6_VERSION(ip6_hdr)   ((GET_U_1((ip6_hdr)->ip6_vfc) & 0xf0) >> 4)
 
#define ip6_flow   ip6_ctlun.ip6_un1.ip6_un1_flow
 
#define ip6_plen   ip6_ctlun.ip6_un1.ip6_un1_plen
 
#define ip6_nxt   ip6_ctlun.ip6_un1.ip6_un1_nxt
 
#define ip6_hlim   ip6_ctlun.ip6_un1.ip6_un1_hlim
 
#define ip6_hops   ip6_ctlun.ip6_un1.ip6_un1_hlim
 
#define IPV6_FLOWINFO_MASK   ((uint32_t)htonl(0x0fffffff)) /* flow info (28 bits) */
 
#define IPV6_FLOWLABEL_MASK   ((uint32_t)htonl(0x000fffff)) /* flow label (20 bits) */
 
#define IP6OPT_PAD1   0x00 /* 00 0 00000 */
 
#define IP6OPT_PADN   0x01 /* 00 0 00001 */
 
#define IP6OPT_JUMBO   0xC2 /* 11 0 00010 = 194 */
 
#define IP6OPT_JUMBO_LEN   6
 
#define IP6OPT_RPL   0x63 /* 01 1 00011 */
 
#define IP6OPT_TUN_ENC_LIMIT   0x04 /* 00 0 00100 */
 
#define IP6OPT_ROUTER_ALERT   0x05 /* 00 0 00101 */
 
#define IP6OPT_RTALERT_LEN   4
 
#define IP6OPT_RTALERT_MLD   0 /* Datagram contains an MLD message */
 
#define IP6OPT_RTALERT_RSVP   1 /* Datagram contains an RSVP message */
 
#define IP6OPT_RTALERT_ACTNET   2 /* contains an Active Networks msg */
 
#define IP6OPT_MINLEN   2
 
#define IP6OPT_QUICK_START   0x26 /* 00 1 00110 */
 
#define IP6OPT_CALIPSO   0x07 /* 00 0 00111 */
 
#define IP6OPT_SMF_DPD   0x08 /* 00 0 01000 */
 
#define IP6OPT_HOME_ADDRESS   0xc9 /* 11 0 01001 */
 
#define IP6OPT_HOMEADDR_MINLEN   18
 
#define IP6OPT_EID   0x8a /* 10 0 01010 */
 
#define IP6OPT_ILNP_NOTICE   0x8b /* 10 0 01011 */
 
#define IP6OPT_LINE_ID   0x8c /* 10 0 01100 */
 
#define IP6OPT_MPL   0x6d /* 01 1 01101 */
 
#define IP6OPT_IP_DFF   0xee /* 11 1 01110 */
 
#define IP6OPT_TYPE(o)   ((o) & 0xC0)
 
#define IP6OPT_TYPE_SKIP   0x00
 
#define IP6OPT_TYPE_DISCARD   0x40
 
#define IP6OPT_TYPE_FORCEICMP   0x80
 
#define IP6OPT_TYPE_ICMP   0xC0
 
#define IP6OPT_MUTABLE   0x20
 
#define IPV6_RTHDR_TYPE_0   0
 
#define IPV6_RTHDR_TYPE_2   2
 
#define IPV6_RTHDR_TYPE_4   4
 
#define IP6F_OFF_MASK   0xfff8 /* mask out offset from ip6f_offlg */
 
#define IP6F_RESERVED_MASK   0x0006 /* reserved bits in ip6f_offlg */
 
#define IP6F_MORE_FRAG   0x0001 /* more-fragments flag */
 

Macro Definition Documentation

◆ ip6_flow

#define ip6_flow   ip6_ctlun.ip6_un1.ip6_un1_flow

Definition at line 92 of file ip6.h.

◆ ip6_hlim

#define ip6_hlim   ip6_ctlun.ip6_un1.ip6_un1_hlim

Definition at line 95 of file ip6.h.

◆ ip6_hops

#define ip6_hops   ip6_ctlun.ip6_un1.ip6_un1_hlim

Definition at line 96 of file ip6.h.

◆ ip6_nxt

#define ip6_nxt   ip6_ctlun.ip6_un1.ip6_un1_nxt

Definition at line 94 of file ip6.h.

◆ ip6_plen

#define ip6_plen   ip6_ctlun.ip6_un1.ip6_un1_plen

Definition at line 93 of file ip6.h.

◆ IP6_VERSION

#define IP6_VERSION (   ip6_hdr)    ((GET_U_1((ip6_hdr)->ip6_vfc) & 0xf0) >> 4)

Definition at line 91 of file ip6.h.

◆ ip6_vfc

#define ip6_vfc   ip6_ctlun.ip6_un2_vfc

Definition at line 90 of file ip6.h.

◆ IP6F_MORE_FRAG

#define IP6F_MORE_FRAG   0x0001 /* more-fragments flag */

Definition at line 210 of file ip6.h.

◆ IP6F_OFF_MASK

#define IP6F_OFF_MASK   0xfff8 /* mask out offset from ip6f_offlg */

Definition at line 208 of file ip6.h.

◆ IP6F_RESERVED_MASK

#define IP6F_RESERVED_MASK   0x0006 /* reserved bits in ip6f_offlg */

Definition at line 209 of file ip6.h.

◆ IP6OPT_CALIPSO

#define IP6OPT_CALIPSO   0x07 /* 00 0 00111 */

Definition at line 143 of file ip6.h.

◆ IP6OPT_EID

#define IP6OPT_EID   0x8a /* 10 0 01010 */

Definition at line 147 of file ip6.h.

◆ IP6OPT_HOME_ADDRESS

#define IP6OPT_HOME_ADDRESS   0xc9 /* 11 0 01001 */

Definition at line 145 of file ip6.h.

◆ IP6OPT_HOMEADDR_MINLEN

#define IP6OPT_HOMEADDR_MINLEN   18

Definition at line 146 of file ip6.h.

◆ IP6OPT_ILNP_NOTICE

#define IP6OPT_ILNP_NOTICE   0x8b /* 10 0 01011 */

Definition at line 148 of file ip6.h.

◆ IP6OPT_IP_DFF

#define IP6OPT_IP_DFF   0xee /* 11 1 01110 */

Definition at line 151 of file ip6.h.

◆ IP6OPT_JUMBO

#define IP6OPT_JUMBO   0xC2 /* 11 0 00010 = 194 */

Definition at line 130 of file ip6.h.

◆ IP6OPT_JUMBO_LEN

#define IP6OPT_JUMBO_LEN   6

Definition at line 131 of file ip6.h.

◆ IP6OPT_LINE_ID

#define IP6OPT_LINE_ID   0x8c /* 10 0 01100 */

Definition at line 149 of file ip6.h.

◆ IP6OPT_MINLEN

#define IP6OPT_MINLEN   2

Definition at line 140 of file ip6.h.

◆ IP6OPT_MPL

#define IP6OPT_MPL   0x6d /* 01 1 01101 */

Definition at line 150 of file ip6.h.

◆ IP6OPT_MUTABLE

#define IP6OPT_MUTABLE   0x20

Definition at line 159 of file ip6.h.

◆ IP6OPT_PAD1

#define IP6OPT_PAD1   0x00 /* 00 0 00000 */

Definition at line 128 of file ip6.h.

◆ IP6OPT_PADN

#define IP6OPT_PADN   0x01 /* 00 0 00001 */

Definition at line 129 of file ip6.h.

◆ IP6OPT_QUICK_START

#define IP6OPT_QUICK_START   0x26 /* 00 1 00110 */

Definition at line 142 of file ip6.h.

◆ IP6OPT_ROUTER_ALERT

#define IP6OPT_ROUTER_ALERT   0x05 /* 00 0 00101 */

Definition at line 134 of file ip6.h.

◆ IP6OPT_RPL

#define IP6OPT_RPL   0x63 /* 01 1 00011 */

Definition at line 132 of file ip6.h.

◆ IP6OPT_RTALERT_ACTNET

#define IP6OPT_RTALERT_ACTNET   2 /* contains an Active Networks msg */

Definition at line 139 of file ip6.h.

◆ IP6OPT_RTALERT_LEN

#define IP6OPT_RTALERT_LEN   4

Definition at line 136 of file ip6.h.

◆ IP6OPT_RTALERT_MLD

#define IP6OPT_RTALERT_MLD   0 /* Datagram contains an MLD message */

Definition at line 137 of file ip6.h.

◆ IP6OPT_RTALERT_RSVP

#define IP6OPT_RTALERT_RSVP   1 /* Datagram contains an RSVP message */

Definition at line 138 of file ip6.h.

◆ IP6OPT_SMF_DPD

#define IP6OPT_SMF_DPD   0x08 /* 00 0 01000 */

Definition at line 144 of file ip6.h.

◆ IP6OPT_TUN_ENC_LIMIT

#define IP6OPT_TUN_ENC_LIMIT   0x04 /* 00 0 00100 */

Definition at line 133 of file ip6.h.

◆ IP6OPT_TYPE

#define IP6OPT_TYPE (   o)    ((o) & 0xC0)

Definition at line 153 of file ip6.h.

◆ IP6OPT_TYPE_DISCARD

#define IP6OPT_TYPE_DISCARD   0x40

Definition at line 155 of file ip6.h.

◆ IP6OPT_TYPE_FORCEICMP

#define IP6OPT_TYPE_FORCEICMP   0x80

Definition at line 156 of file ip6.h.

◆ IP6OPT_TYPE_ICMP

#define IP6OPT_TYPE_ICMP   0xC0

Definition at line 157 of file ip6.h.

◆ IP6OPT_TYPE_SKIP

#define IP6OPT_TYPE_SKIP   0x00

Definition at line 154 of file ip6.h.

◆ IPV6_FLOWINFO_MASK

#define IPV6_FLOWINFO_MASK   ((uint32_t)htonl(0x0fffffff)) /* flow info (28 bits) */

Definition at line 99 of file ip6.h.

◆ IPV6_FLOWLABEL_MASK

#define IPV6_FLOWLABEL_MASK   ((uint32_t)htonl(0x000fffff)) /* flow label (20 bits) */

Definition at line 100 of file ip6.h.

◆ IPV6_RTHDR_TYPE_0

#define IPV6_RTHDR_TYPE_0   0

Definition at line 170 of file ip6.h.

◆ IPV6_RTHDR_TYPE_2

#define IPV6_RTHDR_TYPE_2   2

Definition at line 171 of file ip6.h.

◆ IPV6_RTHDR_TYPE_4

#define IPV6_RTHDR_TYPE_4   4

Definition at line 172 of file ip6.h.