40 #ifndef included_srp_packet_h 41 #define included_srp_packet_h 49 #define foreach_srp_mode \ 54 _ (control_pass_to_host) \ 55 _ (control_locally_buffered_for_host) \ 60 #define _(f) SRP_MODE_##f, 73 #if CLIB_ARCH_IS_BIG_ENDIAN 79 #if CLIB_ARCH_IS_LITTLE_ENDIAN 100 #define foreach_srp_control_packet_type \ 106 #define _(f) SRP_CONTROL_PACKET_TYPE_##f, 122 }) srp_control_header_t;
132 #define SRP_TOPOLOGY_MAC_BINDING_FLAG_IS_INNER_RING (1 << 6) 133 #define SRP_TOPOLOGY_MAC_BINDING_FLAG_IS_WRAPPED (1 << 5) 142 srp_control_header_t control;
145 u16 n_bytes_of_data_that_follows;
148 u8 originator_address[6];
152 }) srp_topology_header_t;
154 #define foreach_srp_ips_request_type \ 156 _ (wait_to_restore, 0x5) \ 157 _ (manual_switch, 0x6) \ 158 _ (signal_degrade, 0x8) \ 159 _ (signal_fail, 0xb) \ 160 _ (forced_switch, 0xd) 163 #define _(f,n) SRP_IPS_REQUEST_##f = n, 168 #define foreach_srp_ips_status \ 173 #define _(f,n) SRP_IPS_STATUS_##f = n, 182 u8 originator_address[6];
188 #if CLIB_ARCH_IS_BIG_ENDIAN 193 #if CLIB_ARCH_IS_LITTLE_ENDIAN always_inline void srp_header_compute_parity(srp_header_t *h)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
typedef CLIB_PACKED(struct dhcpv6_relay_ctx_{dhcpv6_header_t *pkt;u32 pkt_len;u32 dhcpv6_len;u32 if_index;u32 ctx_id;char ctx_name[32+1];u8 dhcp_msg_type;}) dhcpv6_relay_ctx_t
ethernet_header_t ethernet
#define foreach_srp_ips_status
srp_control_packet_type_t
always_inline uword count_set_bits(uword x)
#define foreach_srp_ips_request_type
#define foreach_srp_control_packet_type