diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-11-10 16:15:43 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-25 14:45:39 +0100 |
commit | 6aec4b41760e6ba54fc52b09f6d3ecfe173f6ee6 (patch) | |
tree | 41ff63d4ac7ce84913455cd758a51b7dadfbc896 /ripd/ripd.h | |
parent | ripd: implement the "ip rip v2-broadcast" CLI command (diff) | |
download | frr-6aec4b41760e6ba54fc52b09f6d3ecfe173f6ee6.tar.xz frr-6aec4b41760e6ba54fc52b09f6d3ecfe173f6ee6.zip |
ripd: add "none" option to the "ip rip receive version" command
RFC 2453 says (section 5.1):
"(...) For completeness, routers should also implement a receive control
switch which would determine whether to accept, RIP-1 only, RIP-2 only,
both, or none. It should also be configurable on a per-interface basis".
For the "ip rip send version" command, we don't need to implement the
"none" option because there's already the "passive-interface" command
for that.
Fixes IxANVL RIP test 16.8.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/ripd.h')
-rw-r--r-- | ripd/ripd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h index 1c212a081..b26a1d234 100644 --- a/ripd/ripd.h +++ b/ripd/ripd.h @@ -350,6 +350,7 @@ struct rip_md5_data #define RI_RIP_VERSION_1 1 #define RI_RIP_VERSION_2 2 #define RI_RIP_VERSION_1_AND_2 3 +#define RI_RIP_VERSION_NONE 4 /* N.B. stuff will break if (RIPv1 != RI_RIP_VERSION_1) || (RIPv2 != RI_RIP_VERSION_2) */ |