summaryrefslogtreecommitdiffstats
path: root/pimd/pim_macro.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: auto-convert to SPDX License IDsDavid Lamparter2023-02-091-14/+1
| | | | | | Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: un-dependency-hell `pim_instance.h`David Lamparter2022-05-061-0/+1
| | | | | | | This is causing build issues on BSD by including (transitively) `linux/mroute6.h` - try to address by disentangling the headers a bunch. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pim6d: IPv6-adjust pim_ifchannel_*David Lamparter2022-02-141-4/+4
| | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: remove PIM_INADDR_IS[NOT]_ANY macrosDavid Lamparter2022-01-171-1/+1
| | | | | | | These really don't serve much of a purpose, especially with how inconsistently they're used. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: Modifying in_addr to pim_addr in struct pim_interface for IPv6Mobashshera Rasool2022-01-111-1/+1
| | | | | | | Based on compiler option, pim_addr will be changed to in_addr or in6_addr for pimd and pim6d respectively. Reviewed-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
* pimd: Allow LHR in a AA situation to join upstreamDonald Sharp2020-03-061-1/+14
| | | | | | | | | | | | Add a special catch to the test for pim_macro_chisin_pim_include to allow the LHR to signal interest in joining upstream. This will allow both the DR and non DR of the ActiveActive situation to draw traffic to itself. The non-DR will continue to not forward traffic. Ticket: CM-26610 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: Replace __PRETTY_FUNCTION__/__FUNCTION__ to __func__Donatas Abraitis2020-03-051-9/+6
| | | | | | Just keep the code cool. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* *: Remove break after returnDonatas Abraitis2020-02-131-2/+0
| | | | | | Just a deadcode. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* *: s/TRUE/true/, s/FALSE/false/Quentin Young2019-07-011-11/+11
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* pimd: Move the infinite_assert_metric global to pim_routerDonald Sharp2019-01-041-1/+1
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-178/+174
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: make consistent & update GPLv2 file headersDavid Lamparter2017-05-151-18/+17
| | | | | | | | | | | The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Merge remote-tracking branch 'origin/master' into pim_lib_work2Donald Sharp2017-01-181-1/+0
|\
| * build: remove $Format tagsDavid Lamparter2016-12-201-2/+0
| | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | pimd: Allow storing of sg in string formatDonald Sharp2016-12-221-11/+7
| | | | | | | | | | | | | | | | Debugs are extremely expensive currently. Let's store 'struct prefix_sg sg' string format in the ifchannel, upstream and msdp_sa structures. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: Modify downstream JP state to take into account all statesDonald Sharp2016-12-221-1/+14
| | | | | | | | | | | | | | When we make a decision about downstream state let's take into account all states. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | PIM: prefix-list support for selecting RPDaniel Walton2016-12-221-0/+3
| | | | | | | | | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: CCR-5173 Ticket: CM-12819
* | pimd: Fix join received when in Prune or Prune PendingDonald Sharp2016-12-221-1/+1
| | | | | | | | | | | | | | When we are a FHR, and the upstream state is in Prune or Prune Pending allow the join because we know we want to forward traffic to the RP. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: More macro fallout fix.Donald Sharp2016-12-221-2/+1
| | | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: Fix pim_macro downstream_jpstateDonald Sharp2016-12-221-1/+1
| | | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: Fix DownstreamJPState(S,G,I) check.Donald Sharp2016-12-221-2/+5
| | | | | | | | | | | | | | | | Fix the DownStreamJPState(S,G,I) and DownStreamJPState(*,G,I) macros. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: Remove unnecessary QuaggaIdDonald Sharp2016-12-221-1/+0
| | | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | pimd: Convert ifchannel to using a prefix to store (s,g)Donald Sharp2016-12-221-36/+12
|/ | | | | | | | Convert ifchannel to use a prefix to store (s,g) information. Additionally create pim_str_sg_dump function to output data when using debugs. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Move I_am_DR macro to more appropriate placeDonald Sharp2016-05-261-4/+2
| | | | | | | Move the I_am_DR(ifp) outside of pim_macro.c and into pim_iface.h where it belongs. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Cleanup some comments and documentationDonald Sharp2016-05-261-1/+1
| | | | | | | | Starting the transition of PIM-SSM to PIM-SM means that we have to cleanup some internal code comments so that the code will match the comments. Signed-off-by: Donald Sharp<sharpd@cumulusnetworks.com
* pimd: Add SPTbit(S,G) supportDonald Sharp2016-05-261-2/+4
| | | | | | | Add code to allow pimd to store the SPTbit as needed and to properly test against it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: merge pimd as of 2015-01-19David Lamparter2016-05-261-0/+437
Welcome pimd to the Quagga daemon zoo! This is a merge of commit 77ae369 ("pimd: Log ifindex found for an interface when zebra lib reports a new connected address."), with the intermediate "reconnect" changes removed (c9adf00...d274381). d274381 is replaced with b162ab7, which includes some changes. In addition, 4 reconnect-related changes and 1 cosmetic one have been bumped out. The rebase command used to produce the branch that is merged here is: git rebase --onto b162ab7 c9adf00 77ae369 Note that 3 patches had their author rewritten from "Anonymous SR#108542 <>" (which is not a valid git author ID) to: "Savannah SR#108542 <nbahr@atcorp.com>" (which is the e-mail address listed in the associated Savannah ticket) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>