diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-07-01 22:24:52 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-07-01 22:24:52 +0200 |
commit | ac156aecb5f292f565ccd0aeafade4cc0cad6028 (patch) | |
tree | d84b2fdccb40b486b3d1ae80904d5ad53a7129b6 /lib/command.h | |
parent | doc: Add `allow-reserved-ranges` global command (diff) | |
download | frr-ac156aecb5f292f565ccd0aeafade4cc0cad6028.tar.xz frr-ac156aecb5f292f565ccd0aeafade4cc0cad6028.zip |
lib, vtysh: Add `allow-reserved-ranges` global command
It will be used to allow/deny using IPv4 reserved ranges (Class E) for Zebra
(configuring interface address) or BGP (allow next-hop to be from this range).
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
-rw-r--r-- | lib/command.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index 7363ed84c..70e52708a 100644 --- a/lib/command.h +++ b/lib/command.h @@ -84,6 +84,9 @@ struct host { /* Banner configuration. */ char *motd; char *motdfile; + + /* Allow using IPv4 (Class E) reserved IP space */ + bool allow_reserved_ranges; }; /* List of CLI nodes. Please remember to update the name array in command.c. */ @@ -614,6 +617,7 @@ extern const char *cmd_domainname_get(void); extern const char *cmd_system_get(void); extern const char *cmd_release_get(void); extern const char *cmd_version_get(void); +extern bool cmd_allow_reserved_ranges_get(void); /* NOT safe for general use; call this only if DEV_BUILD! */ extern void grammar_sandbox_init(void); |