ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 e6 00 00 02 ca 08 06 00 00 00 57 cc 81 | .PNG........IHDR.............W.. |
0020 | 9d 00 00 0c 27 69 43 43 50 49 43 43 20 50 72 6f 66 69 6c 65 00 00 48 89 95 97 07 54 93 c9 16 80 | ....'iCCPICC.Profile..H....T.... |
0040 | e7 2f a9 24 b4 40 04 a4 84 de 44 e9 55 7a 8d 20 20 55 b0 11 92 40 42 09 21 21 a8 d8 91 45 05 d6 | ./.$.@....D.Uz...U...@B.!!...E.. |
0060 | 82 8a 05 2b ba 2a 62 5b 0b 20 8b 0d 0b 16 16 c1 86 fd 61 41 45 59 17 0b 36 54 de 24 01 74 f5 bc | ...+.*b[..........aAEY..6T.$.t.. |
0080 | f7 ce bb e7 cc ff 7f b9 73 e7 ce bd 37 f3 cf 99 01 40 2d 9a 23 16 67 a1 ea 00 64 8b f2 24 31 a1 | ........s...7....@-.#.g...d..$1. |
00a0 | 01 ac 89 49 c9 2c d2 43 40 00 24 a0 09 b4 80 0b 87 2b 15 fb 47 47 47 00 28 43 ef 7f ca bb 1b 00 | ...I.,.C@.$......+..GGG.(C...... |
00c0 | 91 bf af da c9 7d fd dc ff 5f 45 83 c7 97 72 01 40 a2 21 a7 f2 a4 dc 6c c8 87 01 c0 5d b9 62 49 | .....}..._E...r.@.!....l....].bI |
00e0 | 1e 00 84 1e a8 37 9d 9e 27 86 4c 84 51 02 2d 09 0c 10 b2 99 9c d3 95 ec 2e e7 54 25 47 28 6c e2 | .....7..'.L.Q.-...........T%G(l. |
0100 | 62 02 21 a7 00 40 a6 71 38 92 74 00 54 e5 71 b1 f2 b9 e9 d0 8f 6a 19 64 7b 11 4f 28 82 dc 08 d9 | b.!..@.q8.t.T.q......j.d{.O(.... |
0120 | 87 2b e0 f0 20 7f 86 3c 2a 3b 3b 07 b2 9a 15 64 ab d4 ef fc a4 ff c3 67 ea b0 4f 0e 27 7d 98 95 | .+.....<*;;....d.......g..O.'}.. |
0140 | b9 28 84 1c 24 94 8a b3 38 33 ff cf 72 fc 6f c9 ce 92 0d cd 61 0a 1b 4d 20 09 8b 91 e7 2c af 5b | .(..$...83..r.o.....a..M.....,.[ |
0160 | 66 4e b8 9c 69 90 cf 8b 52 23 a3 20 6b 42 be 26 e4 29 ec e5 fc 44 20 0b 8b 1f b4 ff c0 95 06 c2 | fN..i...R#..kB.&.)...D.......... |
0180 | 9a 01 26 00 28 8d c7 09 0a 87 ac 0f d9 44 94 15 19 31 a8 f7 49 13 86 b0 21 c3 da a3 71 c2 3c 76 | ..&.(........D...1..I...!...q.<v |
01a0 | 9c 72 2c ca 93 e4 c4 0c fa 47 67 f0 a5 c1 b1 43 cc 91 28 e6 92 db 94 c8 32 e3 fd 07 7d 6e 12 f0 | .r,......Gg....C..(.....2...}n.. |
01c0 | d9 43 3e 1b 0a 04 71 89 ca 38 d1 b6 7c 61 42 24 64 55 c8 77 a5 99 b1 e1 83 36 cf 0b 04 81 91 43 | .C>...q..8..|aB$dU.w.....6.....C |
01e0 | 36 12 59 8c 3c 66 f8 9f 63 20 4d 12 12 a3 b4 c1 cc b2 a5 43 79 61 9e 02 21 3b 72 90 23 f2 04 71 | 6.Y.<f..c.M........Cya..!;r.#..q |
0200 | 61 ca b1 d8 54 2e 47 11 9b 0e e4 0c be 74 62 c4 50 9c 3c 7e 50 b0 32 2f ac 90 2f 8a 1f 8c 1f 2b | a...T.G......tb.P.<~P.2/../....+ |
0220 | 17 e7 05 c4 0c da 6f 17 67 45 0f da 63 8d fc ac 50 b9 de 04 72 ab 34 3f 76 68 6c 6f 1e 5c 6c ca | ......o.gE..c...P...r.4?vhlo.\l. |
0240 | 7c 71 20 ce 8b 8e 53 c6 86 6b 65 70 c6 45 2b 63 c0 6d /*
* Copyright (c) 2015 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @brief VXLAN GPE packet header structure
*
*/
#ifndef included_vxlan_gpe_packet_h
#define included_vxlan_gpe_packet_h
/**
* From draft-quinn-vxlan-gpe-03.txt
*
* 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
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* |R|R|R|R|I|P|R|O|Ver| Reserved |Next Protocol |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* | VXLAN Network Identifier (VNI) | Reserved |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*
* I Bit: Flag bit 4 indicates that the VNI is valid.
*
* P Bit: Flag bit 5 is defined as the Next Protocol bit. The P bit
* MUST be set to 1 to indicate the presence of the 8 bit next
* protocol field.
*
* O Bit: Flag bit 7 is defined as the O bit. When the O bit is set to 1,
*
* the packet is an OAM packet and OAM processing MUST occur. The OAM
* protocol details are out of scope for this document. As with the
* P-bit, bit 7 is currently a reserved flag in VXLAN.
*
* VXLAN-gpe bits 8 and 9 are defined as version bits. These bits are
* reserved in VXLAN. The version field is used to ensure backward
* compatibility going forward with future VXLAN-gpe updates.
*
* The initial version for VXLAN-gpe is 0.
*
* This draft defines the following Next Protocol values:
*
* 0x1 : IPv4
* 0x2 : IPv6
* 0x3 : Ethernet
* 0x4 : Network Service Header [NSH]
*/
/**
* @brief VXLAN GPE support inner protocol definition.
* 1 - IP4
* 2 - IP6
* 3 - ETHERNET
* 4 - NSH
*/
#define foreach_vxlan_gpe_protocol \
_ (0x01, IP4) \
_ (0x02, IP6) \
_ (0x03, ETHERNET) \
_ (0x04, NSH) \
_ (0x05, IOAM)
/**
* @brief Struct for VXLAN GPE support inner protocol definition.
* 1 - IP4
* 2 - IP6
* 3 - ETHERNET
* 4 - NSH
* 5 - IOAM
*/
typedef enum
{
#define _(n,f) VXLAN_GPE_PROTOCOL_##f = n,
foreach_vxlan_gpe_protocol
#undef _
VXLAN_GPE_PROTOCOL_MAX,
} vxlan_gpe_protocol_t;
/**
* @brief VXLAN GPE Header definition
*/
typedef struct
{
u8 flags;
/** Version and Reserved */
u8 ver_res;
/** Reserved */
u8 res;
/** see vxlan_gpe_protocol_t */
u8 protocol;
/** VNI and Reserved */
u32 vni_res;
} vxlan_gpe_header_t;
#define VXLAN_GPE_FLAGS_I 0x08
#define VXLAN_GPE_FLAGS_P 0x04
#define VXLAN_GPE_FLAGS_O 0x01
#define VXLAN_GPE_VERSION 0x0
#endif /* included_vxlan_gpe_packet_h */
/*
* fd.io coding-style-patch-verification: ON
*
* Local Variables:
* eval: (c-set-style "gnu")
* End:
*/
|