summaryrefslogtreecommitdiff
path: root/pimd/pim_util.c
AgeCommit message (Collapse)Author
2023-03-14pimd: IN_MULTICAST needs host orderDonald Sharp
New correct behavior: eva# conf eva(config)# ip pim rp 192.168.1.224 224.0.0.0/24 No Path to RP address specified: 192.168.1.224 eva(config)# ip pim rp 224.1.2.3 224.0.0.0/24 % Bad RP address specified: 224.1.2.3 eva(config)# Fixes: #12970 Signed-off-by: Donald Sharp <sharpd@nvidia.com> (cherry picked from commit 8083e713562a44744c4c2f4a0aa5cc6e2b2170ff)
2022-11-23pimd: consistently ignore prefix list mask lenDavid Lamparter
... the prefix length wasn't ignored as expected. Both S and G are always /32. But expecting "le 32" in prefix-list config is unexpected & counterintuitive. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit ab2f9e89b44642af568c3542e1f2b14378fb5ec2)
2022-10-21pimd, pim6d: Define pim_addr_is_multicast APISarita Patra
pim_addr_is_multicast API will check if the address is multicast address or not. Signed-off-by: Sarita Patra <saritap@vmware.com> (cherry picked from commit dce0f7468d4b1f3bb39dfdd0e768138bebb08b0d)
2022-03-08pim6d: Add pim_get_all_mcast_group apiMobashshera Rasool
Added this api to fill all multicast group address based on IP version. For PIMv4 its 224.0.0.0/4, for PIMv6 its FF00::0/8. Changed the code where its being used currently. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-14pim6d: prepare SSM/filter functionsDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-07-01*: Convert numeric 32 into IPV4_MAX_BITLEN for prefixlenDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-07-01*: Replace IPV4_MAX_PREFIXLEN to IPV4_MAX_BITLENDonatas Abraitis
Just drop IPV4_MAX_PREFIXLEN at all, no need keeping both. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2017-09-26pimd: add support for boundariesQuentin Young
Adds the ability to filter PIM Joins & IGMP reports on an interface. Enabling a multicast boundary on an interface for a particular group will prevent the interface from appearing in the group's OIL. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-07-24pimd: Error check str2prefixDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-07-17*: reindentreindent-master-afterwhitespace / reindent
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-05-15*: make consistent & update GPLv2 file headersDavid Lamparter
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>
2017-01-19pimd: Cleanup the headers.Donald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-01-17Merge remote-tracking branch 'origin/master' into pim_lib_work2Donald Sharp
2016-12-21pimd: With igmpv2 turned on don't accept 224.0.0.0/24 groupsDonald Sharp
When a group is in the 224.0.0.0/24 range and we have igmp v2 turned on do not allow it to be considered for inclusion as a mroute. Ticket: CM-13855 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
2016-12-21pimd: Fix so creation of prefix happens one timeDonald Sharp
Fix code so that the creation of the 224 prefix happens one time. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-12-21pimd: Don't allow invalid groups to be passed for igmpDonald Sharp
When we receive a invalid group( say outside of the 224/4 range) don't allow it to create state. Nicely reject the rejectable. Ticket: CM-13821 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-12-21pimd: Remove unnecessary QuaggaIdDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-12-20build: remove $Format tagsDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2016-06-07pimd: Make pim_pkt_dump use standard lib functionsDonald Sharp
pim_pkt_dump was creating a custom function to dump detailed packet data. Switch it over to use zlog_hexdump. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-05-25pimd: merge pimd as of 2015-01-19David Lamparter
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>