~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/ioam6.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/ioam6.h (Version linux-6.12-rc7) and /include/uapi/linux/ioam6.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu      1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2 /*                                                  2 /*
  3  *  IPv6 IOAM implementation                        3  *  IPv6 IOAM implementation
  4  *                                                  4  *
  5  *  Author:                                         5  *  Author:
  6  *  Justin Iurman <justin.iurman@uliege.be>         6  *  Justin Iurman <justin.iurman@uliege.be>
  7  */                                                 7  */
  8                                                     8 
  9 #ifndef _UAPI_LINUX_IOAM6_H                         9 #ifndef _UAPI_LINUX_IOAM6_H
 10 #define _UAPI_LINUX_IOAM6_H                        10 #define _UAPI_LINUX_IOAM6_H
 11                                                    11 
 12 #include <asm/byteorder.h>                         12 #include <asm/byteorder.h>
 13 #include <linux/types.h>                           13 #include <linux/types.h>
 14                                                    14 
 15 #define IOAM6_U16_UNAVAILABLE U16_MAX              15 #define IOAM6_U16_UNAVAILABLE U16_MAX
 16 #define IOAM6_U32_UNAVAILABLE U32_MAX              16 #define IOAM6_U32_UNAVAILABLE U32_MAX
 17 #define IOAM6_U64_UNAVAILABLE U64_MAX              17 #define IOAM6_U64_UNAVAILABLE U64_MAX
 18                                                    18 
 19 #define IOAM6_DEFAULT_ID (IOAM6_U32_UNAVAILABL     19 #define IOAM6_DEFAULT_ID (IOAM6_U32_UNAVAILABLE >> 8)
 20 #define IOAM6_DEFAULT_ID_WIDE (IOAM6_U64_UNAVA     20 #define IOAM6_DEFAULT_ID_WIDE (IOAM6_U64_UNAVAILABLE >> 8)
 21 #define IOAM6_DEFAULT_IF_ID IOAM6_U16_UNAVAILA     21 #define IOAM6_DEFAULT_IF_ID IOAM6_U16_UNAVAILABLE
 22 #define IOAM6_DEFAULT_IF_ID_WIDE IOAM6_U32_UNA     22 #define IOAM6_DEFAULT_IF_ID_WIDE IOAM6_U32_UNAVAILABLE
 23                                                    23 
 24 /*                                                 24 /*
 25  * IPv6 IOAM Option Header                         25  * IPv6 IOAM Option Header
 26  */                                                26  */
 27 struct ioam6_hdr {                                 27 struct ioam6_hdr {
 28         __u8 opt_type;                             28         __u8 opt_type;
 29         __u8 opt_len;                              29         __u8 opt_len;
 30         __u8 :8;                                   30         __u8 :8;                                /* reserved */
 31 #define IOAM6_TYPE_PREALLOC 0                      31 #define IOAM6_TYPE_PREALLOC 0
 32         __u8 type;                                 32         __u8 type;
 33 } __attribute__((packed));                         33 } __attribute__((packed));
 34                                                    34 
 35 /*                                                 35 /*
 36  * IOAM Trace Header                               36  * IOAM Trace Header
 37  */                                                37  */
 38 struct ioam6_trace_hdr {                           38 struct ioam6_trace_hdr {
 39         __be16  namespace_id;                      39         __be16  namespace_id;
 40                                                    40 
 41 #if defined(__LITTLE_ENDIAN_BITFIELD)              41 #if defined(__LITTLE_ENDIAN_BITFIELD)
 42                                                    42 
 43         __u8    :1,                                43         __u8    :1,                             /* unused */
 44                 :1,                                44                 :1,                             /* unused */
 45                 overflow:1,                        45                 overflow:1,
 46                 nodelen:5;                         46                 nodelen:5;
 47                                                    47 
 48         __u8    remlen:7,                          48         __u8    remlen:7,
 49                 :1;                                49                 :1;                             /* unused */
 50                                                    50 
 51         union {                                    51         union {
 52                 __be32 type_be32;                  52                 __be32 type_be32;
 53                                                    53 
 54                 struct {                           54                 struct {
 55                         __u32   bit7:1,            55                         __u32   bit7:1,
 56                                 bit6:1,            56                                 bit6:1,
 57                                 bit5:1,            57                                 bit5:1,
 58                                 bit4:1,            58                                 bit4:1,
 59                                 bit3:1,            59                                 bit3:1,
 60                                 bit2:1,            60                                 bit2:1,
 61                                 bit1:1,            61                                 bit1:1,
 62                                 bit0:1,            62                                 bit0:1,
 63                                 bit15:1,           63                                 bit15:1,        /* unused */
 64                                 bit14:1,           64                                 bit14:1,        /* unused */
 65                                 bit13:1,           65                                 bit13:1,        /* unused */
 66                                 bit12:1,           66                                 bit12:1,        /* unused */
 67                                 bit11:1,           67                                 bit11:1,
 68                                 bit10:1,           68                                 bit10:1,
 69                                 bit9:1,            69                                 bit9:1,
 70                                 bit8:1,            70                                 bit8:1,
 71                                 bit23:1,           71                                 bit23:1,        /* reserved */
 72                                 bit22:1,           72                                 bit22:1,
 73                                 bit21:1,           73                                 bit21:1,        /* unused */
 74                                 bit20:1,           74                                 bit20:1,        /* unused */
 75                                 bit19:1,           75                                 bit19:1,        /* unused */
 76                                 bit18:1,           76                                 bit18:1,        /* unused */
 77                                 bit17:1,           77                                 bit17:1,        /* unused */
 78                                 bit16:1,           78                                 bit16:1,        /* unused */
 79                                 :8;                79                                 :8;             /* reserved */
 80                 } type;                            80                 } type;
 81         };                                         81         };
 82                                                    82 
 83 #elif defined(__BIG_ENDIAN_BITFIELD)               83 #elif defined(__BIG_ENDIAN_BITFIELD)
 84                                                    84 
 85         __u8    nodelen:5,                         85         __u8    nodelen:5,
 86                 overflow:1,                        86                 overflow:1,
 87                 :1,                                87                 :1,                             /* unused */
 88                 :1;                                88                 :1;                             /* unused */
 89                                                    89 
 90         __u8    :1,                                90         __u8    :1,                             /* unused */
 91                 remlen:7;                          91                 remlen:7;
 92                                                    92 
 93         union {                                    93         union {
 94                 __be32 type_be32;                  94                 __be32 type_be32;
 95                                                    95 
 96                 struct {                           96                 struct {
 97                         __u32   bit0:1,            97                         __u32   bit0:1,
 98                                 bit1:1,            98                                 bit1:1,
 99                                 bit2:1,            99                                 bit2:1,
100                                 bit3:1,           100                                 bit3:1,
101                                 bit4:1,           101                                 bit4:1,
102                                 bit5:1,           102                                 bit5:1,
103                                 bit6:1,           103                                 bit6:1,
104                                 bit7:1,           104                                 bit7:1,
105                                 bit8:1,           105                                 bit8:1,
106                                 bit9:1,           106                                 bit9:1,
107                                 bit10:1,          107                                 bit10:1,
108                                 bit11:1,          108                                 bit11:1,
109                                 bit12:1,          109                                 bit12:1,        /* unused */
110                                 bit13:1,          110                                 bit13:1,        /* unused */
111                                 bit14:1,          111                                 bit14:1,        /* unused */
112                                 bit15:1,          112                                 bit15:1,        /* unused */
113                                 bit16:1,          113                                 bit16:1,        /* unused */
114                                 bit17:1,          114                                 bit17:1,        /* unused */
115                                 bit18:1,          115                                 bit18:1,        /* unused */
116                                 bit19:1,          116                                 bit19:1,        /* unused */
117                                 bit20:1,          117                                 bit20:1,        /* unused */
118                                 bit21:1,          118                                 bit21:1,        /* unused */
119                                 bit22:1,          119                                 bit22:1,
120                                 bit23:1,          120                                 bit23:1,        /* reserved */
121                                 :8;               121                                 :8;             /* reserved */
122                 } type;                           122                 } type;
123         };                                        123         };
124                                                   124 
125 #else                                             125 #else
126 #error "Please fix <asm/byteorder.h>"             126 #error "Please fix <asm/byteorder.h>"
127 #endif                                            127 #endif
128                                                   128 
129 #define IOAM6_TRACE_DATA_SIZE_MAX 244             129 #define IOAM6_TRACE_DATA_SIZE_MAX 244
130         __u8    data[];                           130         __u8    data[];
131 } __attribute__((packed));                        131 } __attribute__((packed));
132                                                   132 
133 #endif /* _UAPI_LINUX_IOAM6_H */                  133 #endif /* _UAPI_LINUX_IOAM6_H */
134                                                   134 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php