1*cda5da8dSAndroid Build Coastguard Worker /* 2*cda5da8dSAndroid Build Coastguard Worker * This file is auto-generated. Modifications will be lost. 3*cda5da8dSAndroid Build Coastguard Worker * 4*cda5da8dSAndroid Build Coastguard Worker * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5*cda5da8dSAndroid Build Coastguard Worker * for more information. 6*cda5da8dSAndroid Build Coastguard Worker */ 7*cda5da8dSAndroid Build Coastguard Worker #ifndef _UAPI_MPLS_H 8*cda5da8dSAndroid Build Coastguard Worker #define _UAPI_MPLS_H 9*cda5da8dSAndroid Build Coastguard Worker #include <linux/types.h> 10*cda5da8dSAndroid Build Coastguard Worker #include <asm/byteorder.h> 11*cda5da8dSAndroid Build Coastguard Worker struct mpls_label { 12*cda5da8dSAndroid Build Coastguard Worker __be32 entry; 13*cda5da8dSAndroid Build Coastguard Worker }; 14*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_LABEL_MASK 0xFFFFF000 15*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_LABEL_SHIFT 12 16*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_TC_MASK 0x00000E00 17*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_TC_SHIFT 9 18*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_S_MASK 0x00000100 19*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_S_SHIFT 8 20*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_TTL_MASK 0x000000FF 21*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LS_TTL_SHIFT 0 22*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_IPV4NULL 0 23*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_RTALERT 1 24*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_IPV6NULL 2 25*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_IMPLNULL 3 26*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_ENTROPY 7 27*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_GAL 13 28*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_OAMALERT 14 29*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_EXTENSION 15 30*cda5da8dSAndroid Build Coastguard Worker #define MPLS_LABEL_FIRST_UNRESERVED 16 31*cda5da8dSAndroid Build Coastguard Worker enum { 32*cda5da8dSAndroid Build Coastguard Worker MPLS_STATS_UNSPEC, 33*cda5da8dSAndroid Build Coastguard Worker MPLS_STATS_LINK, 34*cda5da8dSAndroid Build Coastguard Worker __MPLS_STATS_MAX, 35*cda5da8dSAndroid Build Coastguard Worker }; 36*cda5da8dSAndroid Build Coastguard Worker #define MPLS_STATS_MAX (__MPLS_STATS_MAX - 1) 37*cda5da8dSAndroid Build Coastguard Worker struct mpls_link_stats { 38*cda5da8dSAndroid Build Coastguard Worker __u64 rx_packets; 39*cda5da8dSAndroid Build Coastguard Worker __u64 tx_packets; 40*cda5da8dSAndroid Build Coastguard Worker __u64 rx_bytes; 41*cda5da8dSAndroid Build Coastguard Worker __u64 tx_bytes; 42*cda5da8dSAndroid Build Coastguard Worker __u64 rx_errors; 43*cda5da8dSAndroid Build Coastguard Worker __u64 tx_errors; 44*cda5da8dSAndroid Build Coastguard Worker __u64 rx_dropped; 45*cda5da8dSAndroid Build Coastguard Worker __u64 tx_dropped; 46*cda5da8dSAndroid Build Coastguard Worker __u64 rx_noroute; 47*cda5da8dSAndroid Build Coastguard Worker }; 48*cda5da8dSAndroid Build Coastguard Worker #endif 49