summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.c
Commit message (Collapse)AuthorAgeFilesLines
* pimd: Cleanup zebra debugs to be protected by debug commandsDonald Sharp2015-10-271-1/+1
| | | | | | | | pimd is very chatty without any pim debugs turned on. This commit fixes a bunch of the debugs to be protected by appropriate pim debug statement. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Fix first DR ElectionDonald Sharp2015-08-211-20/+20
| | | | | | | | | | | | The function pim_neighbor_new caused the dr election before the addition of the neighbor to the pim_ifp->pim_neighbor_list, in pim_neighbor_add, which is needed to properly elect the correct DR. Move the dr_election and hello trigger till after the addition to the list. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Add ability to set DR Priority for an interfaceDonald Sharp2015-08-211-1/+4
| | | | | | | | | | | | | | | | | | From RFC 4601, Section 4.3.1: The DR_Priority Option allows a network administrator to give preference to a particular router in the DR election process by giving it a numerically larger DR Priority. The DR_Priority Option SHOULD be included in every Hello message, even if no DR Priority is explicitly configured on that interface. This is necessary because priority-based DR election is only enabled when all neighbors on an interface advertise that they are capable of using the DR_Priority Option. The default priority is 1. This modification allows the setting of the DR Priority on a per interface basis. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Reduce informative mandatory logging.Everton Marques2015-02-041-7/+10
|
* pimd: Reset DR uptime only on actual changeEverton Marques2015-02-041-1/+1
|
* Run DR election when hello packet is received.Everton Marques2015-02-041-4/+5
|
* pimd: fix wtf codeDavid Lamparter2015-02-041-2/+2
| | | | | | | * pim_hello.c, * pim_neighbor.c: print pointers as %p * pim_time.c: comment out unused function * pim_zebra.c: wtf
* pimd: fix format stringsDavid Lamparter2015-02-041-1/+1
| | | | | | | | | | | | | | | | * pim_igmp.c, * pim_igmpv3.c, * pim_pim.c, * pim_tlv.c: use %zu / %zd for size_t/ssize_t * pim_iface.c, * pim_ifchannel.c, * pim_mroute.c, * pim_neighbor.c, * pim_oil.c, * pim_ssmpingd.c, * pim_upstream.c: %zu for size_t * pim_cmd.c: %zu + a few (long long) casts for int64_t * pim_hello.c: %td for ptrdiff_t
* [pim] Clean-up log messagesEverton Marques2015-02-041-26/+25
|
* [pim] igmpv3: specific query interval set to 1 second (RFC 3376 8.8.)Leonard Herve2015-02-041-7/+27
| | | | | | | [pim] pim messages: encoded source address format with Sparse bit=1 (RFC 4601 4.9.1.) [pim] and Mask Len MUST be equal to 32 [pim] dr election: new traces [pim] fix triggered_hello_delay_msec randomization
* [pim] Initial pim 0.155Everton Marques2015-02-041-0/+696