LCOV - code coverage report
Current view: top level - waltz/ip - fd_iproute.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 3 3 100.0 %
Date: 2026-09-01 04:28:17 Functions: 0 0 -

          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 */

Generated by: LCOV version 1.14