summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorpaul <paul>2003-08-12 05:32:27 +0000
committerpaul <paul>2003-08-12 05:32:27 +0000
commit575e25b746f4c6ab3c8ae297ed9f969ea920d0bb (patch)
tree9595ac7803523f7a866f8c0056087ace4a8bb811 /bgpd/bgpd.h
parentd9263d9abe57c37fe64f2bb1964edc027ab75ae7 (diff)
downloadquagga-575e25b746f4c6ab3c8ae297ed9f969ea920d0bb.tar.bz2
quagga-575e25b746f4c6ab3c8ae297ed9f969ea920d0bb.tar.xz
2003-08-11 kunihiro <kunihiro@zebra.org
* bgp_route{,map}.c: Extend 'set ip next-hop' in route-maps with ability to specify 'peer-address' rather than IP.
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 933516d0..11c6bdec 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -430,6 +430,15 @@ struct peer
/* allowas-in. */
char allowas_in[AFI_MAX][SAFI_MAX];
+
+ /* The kind of route-map Flags.*/
+ u_char rmap_type;
+#define PEER_RMAP_TYPE_IN (1 << 0) /* neighbor route-map in */
+#define PEER_RMAP_TYPE_OUT (1 << 1) /* neighbor route-map out */
+#define PEER_RMAP_TYPE_NETWORK (1 << 2) /* network route-map */
+#define PEER_RMAP_TYPE_REDISTRIBUTE (1 << 3) /* redistribute route-map */
+#define PEER_RMAP_TYPE_DEFAULT (1 << 4) /* default-originate route-map */
+#define PEER_RMAP_TYPE_NOSET (1 << 5) /* not allow to set commands */
};
/* This structure's member directly points incoming packet data