]>
git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_str.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2008 Everton da Silva Marques
10 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <arpa/inet.h>
19 * Longest possible length of a IPV4 (S,G) string is 34 bytes
20 * 123.123.123.123 = 16 * 2
22 * NULL Character at end = 1
23 * (123.123.123.123,123.123.123.123)
25 #define PIM_SG_LEN PREFIX_SG_STR_LEN
28 * Longest possible length of a IPV6 (S,G) string is 94 bytes
29 * INET6_ADDRSTRLEN * 2 = 46 * 2
31 * NULL Character at end = 1
36 #define pim_inet4_dump prefix_mcast_inet4_dump
38 void pim_addr_dump(const char *onfail
, struct prefix
*p
, char *buf
,
40 void pim_inet4_dump(const char *onfail
, struct in_addr addr
, char *buf
,