Line data Source code
1 : #ifndef HEADER_fd_src_waltz_ip_fd_iproute_h 2 : #define HEADER_fd_src_waltz_ip_fd_iproute_h 3 : 4 : #include "fd_fib4.h" 5 : 6 246 : #define FD_IPROUTE_OP_UPSERT (1U) /* Replace exact dst/prefix/prio, otherwise insert */ 7 60 : #define FD_IPROUTE_OP_DELETE (2U) 8 78 : #define FD_IPROUTE_OP_FLUSH (3U) 9 : 10 : /* fd_iproute_msg_t is the payload of UPSERT and DELETE operations */ 11 : 12 : struct fd_iproute_msg { 13 : fd_fib4_hop_t hop; 14 : uint dst_addr; 15 : uint prio; 16 : uint table_id; 17 : uchar op; 18 : uchar prefix; 19 : }; 20 : 21 : typedef struct fd_iproute_msg fd_iproute_msg_t; 22 : 23 : FD_STATIC_ASSERT( sizeof(fd_iproute_msg_t)==32UL, iproute_msg_sz ); 24 : 25 : #endif /* HEADER_fd_src_waltz_ip_fd_iproute_h */