summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
AgeCommit message (Collapse)Author
2022-03-01pim6d: Adding "ipv6 pim" CLIsarita patra
This cli used to enable PIMV6 on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-02-28pim6d: Add ipv6 pim register-suppress-time CLIMobashshera Rasool
Adding below CLI for pim6d [no] ipv6 pim register-suppress-time (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim rp keep-alive-timerMobashshera Rasool
Adding below CLI for pim6d daemon [no] ipv6 pim rp keep-alive-timer [(1-65535)] Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim keep-alive-timerMobashshera Rasool
Adding the below CLI for pim6d daemon: ipv6 pim keep-alive-timer (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim packet CLIMobashshera Rasool
Adding below CLI for pim6d daemon: [no] ipv6 pim packet (1-255) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim spt-switchover CLIMobashshera Rasool
Adding the below CLIs for ipv6: [no] ipv6 pim spt-switchover infinity-and-beyond [no] ipv6 pim spt-switchover infinity-and-beyond prefix-list WORD Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Implementing join-prune interval CLIMobashshera Rasool
Adding "ipv6 pim join-prune interval (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Moving pim_cli_get_vrf_name function to common fileMobashshera Rasool
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Adding pim_cmd_common.h and .cMobashshera Rasool
This is to keep the cmd changes common to v4 and v6 in this file. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Removing unnecessary #ifMobashshera Rasool
Since pim_cmd.c file is moved to pimv4 make file, therefore removing #if PIM_IPV !=6. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-26Merge pull request #10400 from opensourcerouting/pim6-compilefixDonald Sharp
pim6d: get running with ipv6 types throughout
2022-02-16pimd: Fix Compilation issue in PIMMobashshera Rasool
A recent merge caused this, fixing it. Signed-off-by: Mobashshera Rasool <mrasool@gmail.com>
2022-02-16Merge pull request #9224 from SaiGomathiN/saigDonald Sharp
pimd: IGMP Query Generation
2022-02-16pim6d: drop off IGMP codeDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-14pim6d: IPv6-adjust neigh->source_addrDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-11Merge pull request #9697 from SaiGomathiN/igmp-sourcesDonatas Abraitis
pimd: json support added
2022-02-08Merge pull request #10292 from opensourcerouting/pim6-addr-auxDonald Sharp
pimd: start tackling IPv6 address operations
2022-02-07pimd: Modify `show ip pim assert` to only show interesting bitsDonald Sharp
`show ip pim assert` shows S,G ifchannel information even when there is no information available about the assert process. Fix the code to not dump non-interesting cases. Fixes: 10462 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-02-03*: Add camelCase JSON keys in addition to PascalCaseDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-01-31bgpd,pimd,isisd,nhrpd: Convert to vty_json()Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-01-25Merge pull request #10395 from qlyoung/fix-pim-xpath-buffer-sizesDavid Lamparter
2022-01-25pimd: json support added for command "show ip igmp sources"Sai Gomathi
Add JSON support in the show command “show ip igmp sources” with proper formatting. Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2022-01-24pimd: fix misuse of xpath buf size constantsQuentin Young
XPATH_MAXLEN denotes the maximum length of an XPATH. It does not make sense to allocate a buffer intended to contain an XPATH with a size larger than the maximum allowable size of an XPATH. Consequently this PR removes buffers that do this. Prints into these buffers are now checked for overflow. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2022-01-21Merge pull request #10398 from patrasar/pim_debug_fixQuentin Young
2022-01-21pimd: debug pim fixessarita patra
Enable debug commands "debug pim packetdump send" and "debug pim packetdump receive" in config mode. Display "debug pim nht rp" in show running config. Signed-off-by: sarita patra <saritap@vmware.com>
2022-01-17pimd: replace pim_inet4_dump with `%pPAs`David Lamparter
Only pim_sgaddr uses are covered by this since regular in_addr is still used for singular addresses, so only a part of pim_inet4_dump calls are gone with this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-17pim: Keeping list of address-family under gmp containersarita patra
Renamed frr-igmp.yang to frr-gmp.yang, igmp to gmp container. to support IGMP and MLD protocol. frr-gmp.yang, created a list of address family under mgmd container. For PIMV4 the key is IPV4, where as for PIMV6 the key is IPV6. This is done for PIMV6 development. This commit will have all the northbound changes to support IPV4 address family. Signed-off-by: sarita patra <saritap@vmware.com>
2022-01-17pimd: deploy pim_sgaddr_* helpersDavid Lamparter
Use _cmp/_hash/_match helpers for operations on pim_sgaddr to prepare IPv6 support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-17pimd: move & deploy pim_addr_cmp() helperDavid Lamparter
Comparing `s_addr` isn't cutting it for IPv6 support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-17pimd: move, rename and deploy pim_addr_is_any()David Lamparter
Replaces comparison against INADDR_ANY, so we can do IPv6 too. (Renamed from "pim_is_addr_any" for "pim_addr_*" naming pattern, and type fixed to bool.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-17pimd: remove pim_str_sg_dump()David Lamparter
... and replace with `%pSG` printfrr specifier. This actually used a static buffer in the formatting function, so subsequent formatting would overwrite earlier uses. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-17Merge pull request #10179 from patrasar/pimv6_northboundDavid Lamparter
2022-01-14pim6d: drop off MSDP codeDavid Lamparter
There is no MSDP for IPv6, so drop this code out of pim6d. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-13Merge pull request #10279 from SaiGomathiN/pim_intfDavid Lamparter
2022-01-13pim: Northbound changes accomodating IPV4 address familysarita patra
frr-pim.yang, created a list of address family under pim container. For PIMV4 the key is IPV4, where as for PIMV6 the key is IPV6. This is done for PIMV6 development. This commit will have all the northbound changes to support IPV4 address family. Signed-off-by: sarita patra <saritap@vmware.com>
2022-01-12pimd: `prefix_sg` => `pim_sgaddr`David Lamparter
Mostly just 2 sed calls: - `sed -e 's%struct prefix_sg%pim_sgaddr%g'` - `sed -e 's%memset(&sg, 0, sizeof(pim_sgaddr));%memset(\&sg, 0, sizeof(sg));%g'` Plus a bunch of fixing whatever that broke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-11pimd: Modifying members of pim_interface to accommodate IPv6 changesSai Gomathi
Modifying the members of pim_interface which are to be used for both IPv4 and IPv6 to common names(for both MLD and IGMP). Issues: #10023 Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-12-15Merge pull request #10215 from FRRouting/revert-10164-name_changeStephen Worley
Revert "pimd: Modifying members of pim_interface to accommodate IPv6 changes"
2021-12-14Merge pull request #10167 from mobash-rasool/pim-upst-1David Lamparter
2021-12-14Revert "pimd: Modifying members of pim_interface to accommodate IPv6 changes"David Lamparter
2021-12-13pimd: IGMP Query Generationnsaigomathi
Problem: ======= Generate query once cli is generating IGMPv2 report for IGMPv3 enabled interface Description: =========== If the version is not specified in the cli, it was taking version 2 as default Fix: === If the version is not specified in the cli along with ip igmp generate-query-once, the default will be the version enabled on that interface. Signed-off-by: nsaigomathi <nsaigomathi@vmware.com>
2021-12-03pimd: Modifying struct igmp_sock to gm_sock for IPv6Sai Gomathi
Modifying name of struct igmp_sock to struct gm_sock, which is to be used by both IPv4 and IPv6(for both MLD and IGMP). Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-12-03pimd: Modifying name of struct igmp_group to struct gm_group for IPv6.Sai Gomathi
Modifying name of struct igmp_group to struct gm_group, which is to be used by both IPv4 and IPv6(for both MLD and IGMP). Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-12-03pimd: Modifying name of struct igmp_source to struct gm_source for IPv6.Sai Gomathi
Modifying name of struct igmp_source to struct gm_source, which is to be used by both IPv4 and IPv6(for both MLD and IGMP). Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-12-03pimd: Modifying name of struct igmp_join to struct gm_join to accomodate ↵Mobashshera Rasool
IPv6 changes. Fix: ==== Modifying name of struct igmp_join to struct gm_join, which is to be used by both IPv4 and IPv6(for both MLD and IGMP). Co-authored-by: Abhishek N R abnr@vmware.com Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2021-12-02pimd: Modifying members of pim_interface to accommodate IPv6 changesSai Gomathi
Modifying the members of pim_interface which are to be used for both IPv4 and IPv6 to common names(for both MLD and IGMP). Issue: #10023 Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-11-18*: Remove unused variablesDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-11-18pimd: Replace inet_ntop to %pI4/6 for JSON outputsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-11-17pimd: move BSM clear into BSM codeDavid Lamparter
... where it actually belongs. And make a bunch of stuff static, since it's no longer used across files now. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-11-17pimd: clean up BSR NHT & fix parallel linksDavid Lamparter
The Bootstrap message RX path needs a RPF check for the BSR address, and this is implemented both incorrectly as well as quite ugly. Clean up and fix case when we have multiple interfaces to the same LAN and/or ECMP nexthops (both would cause message duplication, the former can even cause BSM forwarding loops.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>