diff options
author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
---|---|---|
committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /pimd/pim_neighbor.h | |
parent | *: add indent control files (diff) | |
download | frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_neighbor.h')
-rw-r--r-- | pimd/pim_neighbor.h | 62 |
1 files changed, 27 insertions, 35 deletions
diff --git a/pimd/pim_neighbor.h b/pimd/pim_neighbor.h index eaaefd8fe..a4f2e10c8 100644 --- a/pimd/pim_neighbor.h +++ b/pimd/pim_neighbor.h @@ -29,54 +29,46 @@ #include "pim_tlv.h" struct pim_neighbor { - int64_t creation; /* timestamp of creation */ - struct in_addr source_addr; - pim_hello_options hello_options; - uint16_t holdtime; - uint16_t propagation_delay_msec; - uint16_t override_interval_msec; - uint32_t dr_priority; - uint32_t generation_id; - struct list *prefix_list; /* list of struct prefix */ - struct thread *t_expire_timer; - struct interface *interface; + int64_t creation; /* timestamp of creation */ + struct in_addr source_addr; + pim_hello_options hello_options; + uint16_t holdtime; + uint16_t propagation_delay_msec; + uint16_t override_interval_msec; + uint32_t dr_priority; + uint32_t generation_id; + struct list *prefix_list; /* list of struct prefix */ + struct thread *t_expire_timer; + struct interface *interface; - struct thread *jp_timer; - struct list *upstream_jp_agg; - struct bfd_info *bfd_info; + struct thread *jp_timer; + struct list *upstream_jp_agg; + struct bfd_info *bfd_info; }; void pim_neighbor_timer_reset(struct pim_neighbor *neigh, uint16_t holdtime); void pim_neighbor_free(struct pim_neighbor *neigh); struct pim_neighbor *pim_neighbor_find(struct interface *ifp, struct in_addr source_addr); -struct pim_neighbor *pim_neighbor_find_by_secondary (struct interface *ifp, - struct prefix *src); -struct pim_neighbor *pim_neighbor_find_if (struct interface *ifp); +struct pim_neighbor *pim_neighbor_find_by_secondary(struct interface *ifp, + struct prefix *src); +struct pim_neighbor *pim_neighbor_find_if(struct interface *ifp); #define PIM_NEIGHBOR_SEND_DELAY 0 #define PIM_NEIGHBOR_SEND_NOW 1 -struct pim_neighbor *pim_neighbor_add(struct interface *ifp, - struct in_addr source_addr, - pim_hello_options hello_options, - uint16_t holdtime, - uint16_t propagation_delay, - uint16_t override_interval, - uint32_t dr_priority, - uint32_t generation_id, - struct list *addr_list, - int send_hello_now); -void pim_neighbor_delete(struct interface *ifp, - struct pim_neighbor *neigh, +struct pim_neighbor * +pim_neighbor_add(struct interface *ifp, struct in_addr source_addr, + pim_hello_options hello_options, uint16_t holdtime, + uint16_t propagation_delay, uint16_t override_interval, + uint32_t dr_priority, uint32_t generation_id, + struct list *addr_list, int send_hello_now); +void pim_neighbor_delete(struct interface *ifp, struct pim_neighbor *neigh, const char *delete_message); -void pim_neighbor_delete_all(struct interface *ifp, - const char *delete_message); +void pim_neighbor_delete_all(struct interface *ifp, const char *delete_message); void pim_neighbor_update(struct pim_neighbor *neigh, - pim_hello_options hello_options, - uint16_t holdtime, - uint32_t dr_priority, - struct list *addr_list); + pim_hello_options hello_options, uint16_t holdtime, + uint32_t dr_priority, struct list *addr_list); struct prefix *pim_neighbor_find_secondary(struct pim_neighbor *neigh, struct prefix *addr); int pim_if_dr_election(struct interface *ifp); |