summaryrefslogtreecommitdiff
path: root/pimd/pim_nb_config.c
AgeCommit message (Collapse)Author
2022-09-16Merge pull request #11900 from patrasar/pimv6_lmqtDonatas Abraitis
pim6d: Update last_member_query_interval and last_member_query_count
2022-09-13pimd, pim6d: Changing IGMP to GM in debug macros.Abhishek N R
Changed PIM_DEBUG_IGMP_TRACE to PIM_DEBUG_GM_TRACE and PIM_DEBUG_IGMP_TRACE_DETAIL to PIM_DEBUG_GM_TRACE_DETAIL. Hence, these macros can be used for both v6 and v4. Issue: #11895 Co-authored-by: Sai Gomathi N <nsaigomathi@vmware.com> Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-09-04pim6d: Update last_member_query_interval and last_member_query_countSarita Patra
When there is update in the configuration of last_member_query_interval and last_member_query_count, call gm_ifp_update(). This will update cur_query_intv_trig and cur_lmqc of gm_ifp structure. Issue: #11901 Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld last-member-query-interval" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld last-member-query-count" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld query-max-response-time" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-18Merge pull request #11485 from AbhishekNR/ipv6_mld_todoDonatas Abraitis
pim6d: Completing "ipv6 mld" config command.
2022-07-07pim6d: Completing "ipv6 mld" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-07-03pim6d: configure ipv6 pim drprioritySarita Patra
Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-06-27pim6d: Changing igmp_enable to gm_enable.Abhishek N R
Modified variable name so that it can be reused in mld. Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-05-17Merge pull request #10775 from opensourcerouting/pim6-mld-prDonald Sharp
pim6d: MLD code
2022-05-12pimd: Northbound support for pim passive enablesarita patra
Added nothbound callbacks for pim-passive-enable Signed-off-by: sarita patra <saritap@vmware.com>
2022-05-06pim6d: add fresh MLD implementationDavid Lamparter
Fresh ground-up MLD implementation with subscriber-tracking for MLDv2. Intended to be adapted for IPv4 and replace the IGMP implementation at a later point. Tested in ANVL, currently at 94/116. Some issues/TODOs are left in the code as CPP_NOTICE markers, but the code is very much good enough to proceed since otherwise we're blocked on overall PIM v6 progress. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-05Merge pull request #10365 from SaiGomathiN/ipv6-config-cmdDavid Lamparter
2022-04-05pim6d: Adding "ipv6 mld last-member-query-interval" CLISai Gomathi N
Adding the Interface level config command ipv6 mld last-member-query-interval (1-65535) This command can be use to tune the response time for group specific queries. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-04-05pim6d: Adding ipv6 mld last-member-query-count CLISai Gomathi N
Adding the Interface level config command ipv6 mld last-member-query-count (1-255) This command can be use to tune the number of Multicast-Address- Specific Queries sent before the router assumes there are no remaining listeners for an address on a link. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-04-05pim6d: Adding "ipv6 mld query-max-response-time" CLISai Gomathi N
Adding the Interface level config command ipv6 mld query-max-response-time <1-65535> This command can be use to tune the max response time for general queries. The number of seconds represented by the [Query Response Interval] must be less than the [Query Interval] Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-04-04pimd: remove useless PIM_IF_* macrosDavid Lamparter
The only function these macros have is to make the code confusing. "PIM_IF_DO_PIM" sounds like it triggers some action, but it doesn't. Replace with "bool" fields in struct pim_interface. (Note: PIM_IF_*_IGMP_LISTEN_ALLROUTERS was always set, without any way to unset it. It is completely removed now and always enabled.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-28Merge pull request #10366 from AbhishekNR/mld_cliDavid Lamparter
2022-03-16pim6d: Changes done in pim_ssmpingd to support v6Balaji Gurudoss
Signed-off-by: Balaji Gurudoss <G_Balaji1@dell.com>
2022-03-14pim6d: Adding "ipv6 mld query-interval" CLIAbhishek N R
Adding the Interface level config command ipv6 mld query-interval <1-65535> This command can be use to tune the timing for the general queries sent by the querier. Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-03-14pim6d: Adding "ipv6 mld" CLIAbhishek N R
Adding the Interface level config command ipv6 mld To enable MLD on the interface. Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-03-14pim6d: Adding "ipv6 mld join" CLIAbhishek N R
Adding the Interface level config command ipv6 mld join This command can be used to configure the static MLD join for IPv6 group addresses on the interfaces. Signed-off-by: Abhishek N R <abnr@vmware.com>
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-03-08pim6d: Convert %s to %pPA for RP AddressesMobashshera Rasool
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-08pim6d: Modify pim_*_cmd_worker api passing pim_addr parameterMobashshera Rasool
Pass pim_addr as parameter for rp address to accomodate ipv6. Modifying pim_rp_cmd_worker and pim_no_rp_cmd_worker function parameters from in_addr to pim_addr. Changes in the caller functions are done as well to make it work for IPv6. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-08pim6d: Add northbound changes for static rpMobashshera Rasool
Parsing the inputs for static RP configuration. 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-20pimd: Do not allow 224.0.0.0/24 range in igmp joinMobashshera Rasool
224.0.0.0/24 cannot be used by igmp since this is reserved for routing protocols and other low-level topology discovery or maintenance protocols. Fixes: #10614 Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-16pim6d: remove `PIM_V6_TEMP_BREAK`David Lamparter
It's no longer necessary, pim6d now compiles without this hack. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-16pim6d: IPv6-adjust static multicast routesDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-16pim6d: IPv6-adjust northbound codeDavid Lamparter
Just fixing a bunch of compiler errors, this will NOT actually configure IPv6 PIM properly. 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-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-14Revert "pimd: Modifying members of pim_interface to accommodate IPv6 changes"David Lamparter
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-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-26pimd: fix igmp user configron
user config should go ahead no matter it is a query router or not Signed-off-by: ron <lyq140hf2006@163.com>
2021-09-28pimd: fixing command "no ip msdp mesh-group member"Adriano Marto Reis
Deleting a mesh-group member no longer deletes the mesh-group. Complete bug description at: https://github.com/FRRouting/frr/issues/9664 Signed-off-by: Adriano Marto Reis <adrianomarto@gmail.com>
2021-08-27pimd: reformat after dropping indent levelsDavid Lamparter
Intentionally separate here because the previous patch does a whole bunch of "move stuff up 1 level of indentation", and reviewing that is easier when you can use the ignore-whitespace option on diff. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-08-27pimd: IGMP memberships are not querier specificDavid Lamparter
IGMP group/source memberships are a property of the interface; the particular IP address that the querier used to collect the data is irrelevant. ... and IGMP packets get delivered only once to pimd anyway, since we receive them on the "global" per-VRF IGMP socket. (The one in igmp_sock is only used for sending queries.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-08-27pimd: de-circularize includesDavid Lamparter
pimd's include files are very interdependent. Let's chop that down a bit to gain some flexibility. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>