summaryrefslogtreecommitdiffstats
path: root/lib/distribute.h
diff options
context:
space:
mode:
authorMatthieu Boutier <boutier@pps.univ-paris-diderot.fr>2016-09-22 23:11:07 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-26 16:52:41 +0200
commitfb23cf4abe0731dce18b8b4cd13d57fcf40d8c5c (patch)
tree08b1adebfafebc2e04ec28a600c598081c980504 /lib/distribute.h
parentripngd: code simplification for redistribution. (diff)
downloadfrr-fb23cf4abe0731dce18b8b4cd13d57fcf40d8c5c.tar.xz
frr-fb23cf4abe0731dce18b8b4cd13d57fcf40d8c5c.zip
lib: Make distribute.c accepts both v4 and v6.
distribute.c doesn't allow to manage both v4 and v6 distribute lists. This patch fix this problem by having 4 DISTRIBUTE* values in the enumeration instead of two. The code in all daemons using distribute.c is adapted.
Diffstat (limited to 'lib/distribute.h')
-rw-r--r--lib/distribute.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/distribute.h b/lib/distribute.h
index a2ffffd5f..e9625a354 100644
--- a/lib/distribute.h
+++ b/lib/distribute.h
@@ -29,8 +29,10 @@
/* Disctirubte list types. */
enum distribute_type
{
- DISTRIBUTE_IN,
- DISTRIBUTE_OUT,
+ DISTRIBUTE_V4_IN,
+ DISTRIBUTE_V6_IN,
+ DISTRIBUTE_V4_OUT,
+ DISTRIBUTE_V6_OUT,
DISTRIBUTE_MAX
};