summaryrefslogtreecommitdiff
path: root/pimd/pim_nht.h
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_nht.h')
-rw-r--r--pimd/pim_nht.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/pimd/pim_nht.h b/pimd/pim_nht.h
index 0ccc5399c3..b25dec5f9e 100644
--- a/pimd/pim_nht.h
+++ b/pimd/pim_nht.h
@@ -31,42 +31,42 @@
#include "pim_rpf.h"
/* PIM nexthop cache value structure. */
-struct pim_nexthop_cache
-{
- struct pim_rpf rpf;
- /* IGP route's metric. */
- u_int32_t metric;
- uint32_t distance;
- /* Nexthop number and nexthop linked list. */
- u_char nexthop_num;
- struct nexthop *nexthop;
- int64_t last_update;
- u_int16_t flags;
+struct pim_nexthop_cache {
+ struct pim_rpf rpf;
+ /* IGP route's metric. */
+ u_int32_t metric;
+ uint32_t distance;
+ /* Nexthop number and nexthop linked list. */
+ u_char nexthop_num;
+ struct nexthop *nexthop;
+ int64_t last_update;
+ u_int16_t flags;
#define PIM_NEXTHOP_VALID (1 << 0)
- struct list *rp_list;
- struct list *upstream_list;
+ struct list *rp_list;
+ struct list *upstream_list;
};
-int pim_parse_nexthop_update (int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id);
-int pim_find_or_track_nexthop (struct prefix *addr, struct pim_upstream *up,
- struct rp_info *rp, struct pim_nexthop_cache *out_pnc);
-void pim_delete_tracked_nexthop (struct prefix *addr, struct pim_upstream *up,
- struct rp_info *rp);
-struct pim_nexthop_cache *pim_nexthop_cache_add (struct pim_rpf *rpf_addr);
-struct pim_nexthop_cache *pim_nexthop_cache_find (struct pim_rpf *rpf);
-uint32_t pim_compute_ecmp_hash (struct prefix *src, struct prefix *grp);
-int pim_ecmp_nexthop_search (struct pim_nexthop_cache * pnc,
- struct pim_nexthop *nexthop, struct prefix *src,
- struct prefix *grp, int neighbor_needed);
-int pim_ecmp_nexthop_lookup (struct pim_nexthop *nexthop, struct in_addr addr,
- struct prefix *src, struct prefix *grp,
- int neighbor_needed);
-void pim_sendmsg_zebra_rnh (struct zclient *zclient, struct pim_nexthop_cache *pnc,
- int command);
-int pim_update_rp_nh (struct pim_nexthop_cache *pnc);
-void pim_resolve_upstream_nh (struct prefix *nht_p);
-int pim_ecmp_fib_lookup_if_vif_index(struct in_addr addr,
- struct prefix *src, struct prefix *grp);
+int pim_parse_nexthop_update(int command, struct zclient *zclient,
+ zebra_size_t length, vrf_id_t vrf_id);
+int pim_find_or_track_nexthop(struct prefix *addr, struct pim_upstream *up,
+ struct rp_info *rp,
+ struct pim_nexthop_cache *out_pnc);
+void pim_delete_tracked_nexthop(struct prefix *addr, struct pim_upstream *up,
+ struct rp_info *rp);
+struct pim_nexthop_cache *pim_nexthop_cache_add(struct pim_rpf *rpf_addr);
+struct pim_nexthop_cache *pim_nexthop_cache_find(struct pim_rpf *rpf);
+uint32_t pim_compute_ecmp_hash(struct prefix *src, struct prefix *grp);
+int pim_ecmp_nexthop_search(struct pim_nexthop_cache *pnc,
+ struct pim_nexthop *nexthop, struct prefix *src,
+ struct prefix *grp, int neighbor_needed);
+int pim_ecmp_nexthop_lookup(struct pim_nexthop *nexthop, struct in_addr addr,
+ struct prefix *src, struct prefix *grp,
+ int neighbor_needed);
+void pim_sendmsg_zebra_rnh(struct zclient *zclient,
+ struct pim_nexthop_cache *pnc, int command);
+int pim_update_rp_nh(struct pim_nexthop_cache *pnc);
+void pim_resolve_upstream_nh(struct prefix *nht_p);
+int pim_ecmp_fib_lookup_if_vif_index(struct in_addr addr, struct prefix *src,
+ struct prefix *grp);
#endif