⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsvpte_struct

📁 Linux平台下
💻
📖 第 1 页 / 共 5 页
字号:
  u_int destAddr;  u_char protocolId;  u_char flags;  u_short destPort;} rsvpSession4_t;#define RSVP_SESSION6_SIZE 20typedef struct rsvpSession6_s {  u_char destAddr[16];  u_char protocolId;  u_char flags;  u_short destPort;} rsvpSession6_t;#define RSVP_SESSION_TUNNEL4_SIZE 12typedef struct rsvpSessionTunnel4_s {    u_int endPointAddress;    u_short reserved;    u_short tunnelId;    u_int extentedTunnelId;} rsvpSessionTunnel4_t;#define RSVP_SESSION_TUNNEL6_SIZE 36typedef struct rsvpSessionTunnel6_s {    u_char endPointAddress[16];    u_short reserved;    u_short tunnelId;    u_char extentedTunnelId[16];} rsvpSessionTunnel6_t;typedef struct rsvpSessionObject_s {    struct rsvpObjectHeader_s hdr;    union {	struct rsvpSession4_s ipv4;	struct rsvpSession6_s ipv6;	struct rsvpSessionTunnel4_s tunnel4;	struct rsvpSessionTunnel6_s tunnel6;    } u;} rsvpSessionObject_t;#define RSVP_HOP_CLASS 3#define RSVP_HOP_CTYPE_IPV4 1#define RSVP_HOP_CTYPE_IPV6 2/**********************************************************************    RSVP HOP Object     o    IPv4 RSVP_HOP object: Class = 3, C-Type = 1    0                   1                   2                   3    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1   +---------------+---------------+---------------+---------------+   |                 IPv4 Next/Previous Hop Address                |   +---------------+---------------+---------------+---------------+   |                     Logical Interface Handle                  |   +---------------+---------------+---------------+---------------+     o    IPv6 RSVP_HOP object: Class = 3, C-Type = 2    0                   1                   2                   3    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1   +---------------+---------------+---------------+---------------+   |                                                               |   +                                                               +   |                                                               |   +                 IPv6 Next/Previous Hop Address                +   |                                                               |   +                                                               +   |                                                               |   +---------------+---------------+---------------+---------------+   |                    Logical Interface Handle                   |   +---------------+---------------+---------------+---------------+      This object carries the IP address of the interface through which      the last RSVP-knowledgeable hop forwarded this message.  The      Logical Interface Handle (LIH) is used to distinguish logical      outgoing interfaces, as discussed in Sections 3.3 and 3.9.  A node      receiving an LIH in a Path message saves its value and returns it      in the HOP objects of subsequent Resv messages sent to the node      that originated the LIH.  The LIH should be identically zero if      there is no logical interface handle.**********************************************************************/#define RSVP_HOP4_SIZE 8typedef struct rsvpHop4_s {  u_int hopAddr;  u_int logicalIfHandle;} rsvpHop4_t;#define RSVP_HOP6_SIZE 20typedef struct rsvpHop6_s {  u_char hopAddr[16];  u_int logicalIfHandle;} rsvpHop6_t;typedef struct rsvpHopObject_s {    struct rsvpObjectHeader_s hdr;    union {	struct rsvpHop4_s ipv4;	struct rsvpHop6_s ipv6;    } u;} rsvpHopObject_t;#define RSVP_TIME_CLASS 5#define RSVP_TIME_CTYPE 1/**********************************************************************    RSVP TIME Object     o    TIME_VALUES Object: Class = 5, C-Type = 1    0                   1                   2                   3    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1   +---------------+---------------+---------------+---------------+   |                       Refresh Period R                        |   +---------------+---------------+---------------+---------------+      Refresh Period           The refresh timeout period R used to generate this message;           in milliseconds.**********************************************************************/#define RSVP_TIME_SIZE 4typedef struct rsvpTimeObject_s {    struct rsvpObjectHeader_s hdr;    u_int refresh;} rsvpTimeObject_t;#define RSVP_ERROR_SPEC_CLASS 6#define RSVP_ERROR_SPEC_CTYPE_IPV4 1#define RSVP_ERROR_SPEC_CTYPE_IPV6 2/**********************************************************************    RSVP ERROR_SPEC Object     o    IPv4 ERROR_SPEC object: Class = 6, C-Type = 1    0                   1                   2                   3    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1   +---------------+---------------+---------------+---------------+   |                IPv4 Error Node Address (4 bytes)              |   +---------------+---------------+---------------+---------------+   |     Flags     |   Error Code  |          Error Value          |   +---------------+---------------+---------------+---------------+     o    IPv6 ERROR_SPEC object: Class = 6, C-Type = 2    0                   1                   2                   3    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1   +---------------+---------------+---------------+---------------+   |                                                               |   +                                                               +   |                                                               |   +               IPv6 Error Node Address (16 bytes)              +   |                                                               |   +                                                               +   |                                                               |   +---------------+---------------+---------------+---------------+   |     Flags     |   Error Code  |          Error Value          |   +---------------+---------------+---------------+---------------+      Error Node Address           The IP address of the node in which the error was detected.      Flags           0x01 = InPlace                This flag is used only for an ERROR_SPEC object in a                ResvErr message.  If it on, this flag indicates that                there was, and still is, a reservation in place at the                failure point.           0x02 = NotGuilty                This flag is used only for an ERROR_SPEC object in a                ResvErr message, and it is only set in the interface to                the receiver application.  If it on, this flag indicates                that the FLOWSPEC that failed was strictly greater than                the FLOWSPEC requested by this receiver.      Error Code           A one-octet error description.      Error Value           A two-octet field containing additional information about the                error.  Its contents depend upon the Error Type.      The values for Error Code and Error Value are defined in Appendix      B.***********************************************************************/typedef struct rsvpErrorSpec4_s {  u_int hopAddr;  u_char flag;  u_char code;  u_short value;} rsvpErrorSpec4_t;typedef struct rsvpErrorSpec6_s {  u_char hopAddr[16];  u_char flag;  u_char code;  u_short value;} rsvpErrorSpec6_t;typedef struct rsvpErrorSpecObject_s {    struct rsvpObjectHeader_s hdr;    union {	struct rsvpErrorSpec4_s ipv4;	struct rsvpErrorSpec6_s ipv6;    } u;} rsvpErrorSpecObject_t;#define RSVP_SCOPE_LIST_CLASS 7#define RSVP_SCOPE_LIST_CTYPE_IPV4 1#define RSVP_SCOPE_LIST_CTYPE_IPV6 2#define RSVP_MAX_SCOPE_LIST 16/***********************************************************************     RSVP SCOPE LIST Object      This object contains a list of IP addresses, used for routing      messages with wildcard scope without loops.  The addresses must be      listed in ascending numerical order.      o    IPv4 SCOPE List object: Class = 7, C-Type = 1     0                   1                   2                   3     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1    +-------------+-------------+-------------+-------------+    |                IPv4 Src Address (4 bytes)             |    +-------------+-------------+-------------+-------------+    //                                                      //    +-------------+-------------+-------------+-------------+    |                IPv4 Src Address (4 bytes)             |    +-------------+-------------+-------------+-------------+      o    IPv6  SCOPE list object: Class = 7, C-Type = 2     0                   1                   2                   3     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1    +-------------+-------------+-------------+-------------+    |                                                       |    +                                                       +    |                                                       |    +                IPv6 Src Address (16 bytes)            +    |                                                       |    +                                                       +    |                                                       |    +-------------+-------------+-------------+-------------+    //                                                      //    +-------------+-------------+-------------+-------------+    |                                                       |    +                                                       +    |                                                       |    +                IPv6 Src Address (16 bytes)            +    |                                                       |    +                                                       +    |                                                       |    +-------------+-------------+-------------+-------------+***********************************************************************/typedef struct rsvpScopeList4_s {  u_int addr[RSVP_MAX_SCOPE_LIST];} rsvpScopeList4_t;typedef struct rsvpScopeList6_s {  u_char addr[RSVP_MAX_SCOPE_LIST][16];} rsvpScopeList6_t;typedef struct rsvpScopListObject_s {    struct rsvpObjectHeader_s hdr;    union {	struct rsvpScopeList4_s ipv4;	struct rsvpScopeList6_s ipv6;    } u;} rsvpScopListObject_t;#define RSVP_STYLE_CLASS 8#define RSVP_STYLE_CTYPE 1/***********************************************************************      STYLE class = 8.      o    STYLE object: Class = 8, C-Type = 1     0                   1                   2                   3     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1    +-----------------+---------------+---------------+-------------+    |     Flags       |                 Option Vector               |    +-----------------+---------------+---------------+-------------+      Flags: 8 bits           (None assigned yet)      Option Vector: 24 bits           A set of bit fields giving values for the reservation           options.  If new options are added in the future,           corresponding fields in the option vector will be assigned           from the least-significant end.  If a node does not recognize           a style ID, it may interpret as much of the option vector as           it can, ignoring new fields that may have been defined.           The option vector bits are assigned (from the left) as           follows:           19 bits: Reserved           2 bits: Sharing control                00b: Reserved                01b: Distinct reservations                10b: Shared reservations                11b: Reserved

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -