summaryrefslogtreecommitdiffstats
path: root/pimd/pim_str.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pimd: Remove pim_addr_dumpDonald Sharp2023-07-211-2/+0
| | | | | | This function is no longer used, remove it from the system. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: 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>
* pim6d: Longest possible length of a (S,G) string is 94 bytesSarita Patra2022-07-121-0/+10
| | | | | | | | | Longest possible length of a IPV6 (S,G) string is 94 bytes INET6_ADDRSTRLEN * 2 = 46 * 2 (,) = 1 NULL Character at end = 1 Signed-off-by: Sarita Patra <saritap@vmware.com>
* pimd: Fix description for PIM_SG_LENSarita Patra2022-07-121-2/+3
| | | | Signed-off-by: Sarita Patra <saritap@vmware.com>
* pimd: removal double inclusion of pim_addr.hSarita Patra2022-07-111-2/+0
| | | | Signed-off-by: Sarita Patra <saritap@vmware.com>
* pimd: remove pim_addr_copyDavid Lamparter2022-01-171-5/+0
| | | | | | This is not needed, pim_addr can just be assigned as a whole. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: move & deploy pim_addr_cmp() helperDavid Lamparter2022-01-171-5/+0
| | | | | | Comparing `s_addr` isn't cutting it for IPv6 support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: move, rename and deploy pim_addr_is_any()David Lamparter2022-01-171-5/+0
| | | | | | | | | 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>
* pimd: remove pim_str_sg_dump()David Lamparter2022-01-171-1/+0
| | | | | | | | ... 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>
* pimd: remove pim_str_sg_set()David Lamparter2022-01-171-6/+0
| | | | | | ... and replace with `%pSG` printfrr specifier. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: `prefix_sg` => `pim_sgaddr`David Lamparter2022-01-121-3/+9
| | | | | | | | | | | 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>
* pimd: abstract addresses for IPv4/IPv6 PIMDavid Lamparter2022-01-121-1/+1
| | | | | | | Depending on whether we're compiling pimd or pim6d, these types take on the appropriate AF being used. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: API changes to accomodate IPv4 and IPv6Mobashshera Rasool2022-01-101-0/+15
| | | | | | | Added apis which will be decided on compile time for pimd and pim6d daemon Reviewed-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
* pimd: Adding pim_addr as common address for IPv4 and IPv6Mobashshera Rasool2022-01-101-0/+2
| | | | | | | PIM_ADDR will be controlled at compile time for IPv4 and IPv6. in_addr and in6_addr will be compiled for the respective daemons. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
* lib: move SG prefix2str APIs from pimd to libAnuradha Karuppiah2019-04-201-2/+3
| | | | | | This is to allow zebra to use these APIs instead of re-defining. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-4/+6
| | | | | | 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>
* pimd: Cleanup the headers.Donald Sharp2017-01-191-4/+0
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* Merge remote-tracking branch 'origin/master' into pim_lib_work2Donald Sharp2017-01-181-0/+3
|\
| * 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-0/+10
| | | | | | | | | | | | | | | | 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: Add pim_addr_dump to facilitate v4 and v6 address dumpingDonald Sharp2016-12-221-0/+1
| | | | | | | | | | | | Allow pim_addr_dump to understand prefixes to print out. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | lib, pimd: Fix borked up prefix codeDonald Sharp2016-12-221-1/+1
| | | | | | | | | | | | | | Fix the struct prefix to be an actual struct prefix_sg. This cleans up a bunch of code to make it look nicer. 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-0/+3
|/ | | | | | | | 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: merge pimd as of 2015-01-19David Lamparter2016-05-261-0/+32
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>