Skip to content

Commit

Permalink
Merge pull request #15037 from rgacogne/ddist-document-stat-node-ffi-…
Browse files Browse the repository at this point in the history
…children

dnsdist: Document `dnsdist_ffi_stat_node_get_children_*` return children+node stats
  • Loading branch information
rgacogne authored Jan 16, 2025
2 parents 5557d8c + 320c048 commit a10c335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdns/dnsdistdist/dnsdist-lua-inspection-ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ void dnsdist_ffi_stat_node_get_full_name_raw(const dnsdist_ffi_stat_node_t* node

unsigned int dnsdist_ffi_stat_node_get_children_count(const dnsdist_ffi_stat_node_t* node) __attribute__((visibility("default")));

/* Note that dnsdist_ffi_stat_node_get_children_* methods return the sum of
the queries or responses received for the children of a node AND the node
itself. It's quite unexpected but breaking the existing behaviour now would be painful.
*/
uint64_t dnsdist_ffi_stat_node_get_children_queries_count(const dnsdist_ffi_stat_node_t* node) __attribute__((visibility("default")));
uint64_t dnsdist_ffi_stat_node_get_children_noerrors_count(const dnsdist_ffi_stat_node_t* node) __attribute__((visibility("default")));
uint64_t dnsdist_ffi_stat_node_get_children_nxdomains_count(const dnsdist_ffi_stat_node_t* node) __attribute__((visibility("default")));
Expand Down

0 comments on commit a10c335

Please sign in to comment.