1 #ifndef included_vnet_sr_packet_h 2 #define included_vnet_sr_packet_h 166 #ifndef IPPROTO_IPV6_ROUTE 167 #define IPPROTO_IPV6_ROUTE 43 170 #define ROUTING_HEADER_TYPE_SR 4 194 #define IP6_SR_HEADER_FLAG_CLEANUP (0x8000) 195 #define IP6_SR_HEADER_FLAG_PROTECTED (0x4000) 196 #define IP6_SR_HEADER_FLAG_RESERVED (0x3000) 198 #define IP6_SR_HEADER_FLAG_PL_ELT_NOT_PRESENT (0x0) 199 #define IP6_SR_HEADER_FLAG_PL_ELT_INGRESS_PE (0x1) 200 #define IP6_SR_HEADER_FLAG_PL_ELT_EGRESS_PE (0x2) 201 #define IP6_SR_HEADER_FLAG_PL_ELT_ORIG_SRC_ADDR (0x3) 213 return (-3 * pl_index) + 12;
222 if (pl_index <= 0 || pl_index > 4)
225 shift = (-3 * pl_index) + 12;
226 flags_host_byte_order >>= shift;
228 return (flags_host_byte_order & 7);
static int ip6_sr_policy_list_shift_from_index(int pl_index)
static int ip6_sr_policy_list_flags(u16 flags_host_byte_order, int pl_index)