diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-08-11 11:43:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-11 11:43:46 +0300 |
| commit | 423e8076b53fe359f83575c5f2d8b80741d592b5 (patch) | |
| tree | 9a4d9c0d1edb043efbd2981d53cc109b95d71588 /lib/libfrr.c | |
| parent | 3875588ecefc1f4675bf850303e1b87cb891c0a8 (diff) | |
| parent | cecf5716d5c8e74aa5afaeec836db624d6f68879 (diff) | |
Merge pull request #16542 from donaldsharp/vtysh_stupidly_large
lib: Don't print warning if not a daemon
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index 8ea38368b7..07cd4a5306 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -1476,3 +1476,11 @@ const char *frr_vers2str(uint32_t version, char *buf, int buflen) return buf; } + +bool frr_is_daemon(void) +{ + if (di) + return true; + + return false; +} |
