RTP Trace System  1.0
in6.h
Go to the documentation of this file.
00001 // ##########################################################################
00002 // ####                                                                  ####
00003 // ####                      RTP Audio Server Project                    ####
00004 // ####                    ============================                  ####
00005 // ####                                                                  ####
00006 // #### IPv6 Definitions                                                 ####
00007 // ####                                                                  ####
00008 // #### Version 1.00  --  February 16, 2001                              ####
00009 // ####                                                                  ####
00010 // #### Copyright (C) 1999  Thomas Dreibholz                             ####
00011 // ####               2000  Universität Bonn, Abt. IV                    ####
00012 // ####               2001  EMail: dreibh@iem.uni-due.de                 ####
00013 // ####                     WWW:   https://www.uni-due.de/~be0001        ####
00014 // ####                                                                  ####
00015 // ##########################################################################
00016 
00017 
00026 #ifndef _LINUX_IN6_H
00027 #define _LINUX_IN6_H
00028 
00029 
00030 #include <linux/types.h>
00031 
00032 
00033 struct in6_flowlabel_req
00034 {
00035         struct in6_addr flr_dst;
00036         __u32   flr_label;
00037         __u8    flr_action;
00038         __u8    flr_share;
00039         __u16   flr_flags;
00040         __u16   flr_expires;
00041         __u16   flr_linger;
00042         __u32   __flr_pad;
00043         /* Options in format of IPV6_PKTOPTIONS */
00044 };
00045 
00046 #define IPV6_FL_A_GET   0
00047 #define IPV6_FL_A_PUT   1
00048 #define IPV6_FL_A_RENEW 2
00049 
00050 #define IPV6_FL_F_CREATE        1
00051 #define IPV6_FL_F_EXCL          2
00052 
00053 #define IPV6_FL_S_NONE          0
00054 #define IPV6_FL_S_EXCL          1
00055 #define IPV6_FL_S_PROCESS       2
00056 #define IPV6_FL_S_USER          3
00057 #define IPV6_FL_S_ANY           255
00058 
00059 
00060 /*
00061  *      Bitmask constant declarations to help applications select out the 
00062  *      flow label and priority fields.
00063  *
00064  *      Note that this are in host byte order while the flowinfo field of
00065  *      sockaddr_in6 is in network byte order.
00066  */
00067 
00068 #define IPV6_FLOWINFO_FLOWLABEL         0x000fffff
00069 #define IPV6_FLOWINFO_PRIORITY          0x0ff00000
00070 
00071 /* These defintions are obsolete */
00072 #define IPV6_PRIORITY_UNCHARACTERIZED   0x0000
00073 #define IPV6_PRIORITY_FILLER            0x0100
00074 #define IPV6_PRIORITY_UNATTENDED        0x0200
00075 #define IPV6_PRIORITY_RESERVED1         0x0300
00076 #define IPV6_PRIORITY_BULK              0x0400
00077 #define IPV6_PRIORITY_RESERVED2         0x0500
00078 #define IPV6_PRIORITY_INTERACTIVE       0x0600
00079 #define IPV6_PRIORITY_CONTROL           0x0700
00080 #define IPV6_PRIORITY_8                 0x0800
00081 #define IPV6_PRIORITY_9                 0x0900
00082 #define IPV6_PRIORITY_10                0x0a00
00083 #define IPV6_PRIORITY_11                0x0b00
00084 #define IPV6_PRIORITY_12                0x0c00
00085 #define IPV6_PRIORITY_13                0x0d00
00086 #define IPV6_PRIORITY_14                0x0e00
00087 #define IPV6_PRIORITY_15                0x0f00
00088 
00089 /*
00090  *      IPV6 extension headers
00091  */
00092 #define IPPROTO_HOPOPTS         0       /* IPv6 hop-by-hop options      */
00093 #define IPPROTO_ROUTING         43      /* IPv6 routing header          */
00094 #define IPPROTO_FRAGMENT        44      /* IPv6 fragmentation header    */
00095 #define IPPROTO_ICMPV6          58      /* ICMPv6                       */
00096 #define IPPROTO_NONE            59      /* IPv6 no next header          */
00097 #define IPPROTO_DSTOPTS         60      /* IPv6 destination options     */
00098 
00099 /*
00100  *      IPv6 TLV options.
00101  */
00102 #define IPV6_TLV_PAD0           0
00103 #define IPV6_TLV_PADN           1
00104 #define IPV6_TLV_ROUTERALERT    20
00105 #define IPV6_TLV_JUMBO          194
00106 
00107 /*
00108  *      IPV6 socket options
00109  */
00110 
00111 #define IPV6_ADDRFORM           1
00112 #define IPV6_PKTINFO            2
00113 #define IPV6_HOPOPTS            3
00114 #define IPV6_DSTOPTS            4
00115 #define IPV6_RTHDR              5
00116 #define IPV6_PKTOPTIONS         6
00117 #define IPV6_CHECKSUM           7
00118 #define IPV6_HOPLIMIT           8
00119 #define IPV6_NEXTHOP            9
00120 #define IPV6_AUTHHDR            10
00121 #define IPV6_FLOWINFO           11
00122 
00123 #if 0
00124 /* Aliases for obsolete names */
00125 #define IPV6_RXHOPOPTS          IPV6_HOPOPTS
00126 #define IPV6_RXDSTOPTS          IPV6_DSTOPTS
00127 #define IPV6_RXSRCRT            IPV6_RTHDR
00128 #endif
00129 
00130 /*
00131  *      Alternative names
00132  */
00133 #define SCM_SRCRT               IPV6_RXSRCRT
00134 
00135 #define IPV6_UNICAST_HOPS       16
00136 #define IPV6_MULTICAST_IF       17
00137 #define IPV6_MULTICAST_HOPS     18
00138 #define IPV6_MULTICAST_LOOP     19
00139 #define IPV6_ADD_MEMBERSHIP     20
00140 #define IPV6_DROP_MEMBERSHIP    21
00141 #define IPV6_ROUTER_ALERT       22
00142 #define IPV6_MTU_DISCOVER       23
00143 #define IPV6_MTU                24
00144 #define IPV6_RECVERR            25
00145 
00146 /* IPV6_MTU_DISCOVER values */
00147 #define IPV6_PMTUDISC_DONT              0
00148 #define IPV6_PMTUDISC_WANT              1
00149 #define IPV6_PMTUDISC_DO                2
00150 
00151 /* Flowlabel */
00152 #define IPV6_FLOWLABEL_MGR      32
00153 #define IPV6_FLOWINFO_SEND      33
00154 
00155 
00156 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines