]> git.proxmox.com Git - mirror_frr.git/blame - pimd/pim_ssmpingd.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / pimd / pim_ssmpingd.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
12e41d03 2/*
896014f4
DL
3 * PIM for Quagga
4 * Copyright (C) 2008 Everton da Silva Marques
896014f4 5 */
12e41d03
DL
6
7#ifndef PIM_SSMPINGD_H
8#define PIM_SSMPINGD_H
9
10#include <zebra.h>
11
12#include "if.h"
13
14#include "pim_iface.h"
15
16struct ssmpingd_sock {
71ad9915
DS
17 struct pim_instance *pim;
18
d62a17ae 19 int sock_fd; /* socket */
e6685141 20 struct event *t_sock_read; /* thread for reading socket */
1c56018f 21 pim_addr source_addr; /* source address */
d62a17ae 22 int64_t creation; /* timestamp of socket creation */
23 int64_t requests; /* counter */
12e41d03
DL
24};
25
71ad9915
DS
26void pim_ssmpingd_init(struct pim_instance *pim);
27void pim_ssmpingd_destroy(struct pim_instance *pim);
1c56018f
BG
28int pim_ssmpingd_start(struct pim_instance *pim, pim_addr source_addr);
29int pim_ssmpingd_stop(struct pim_instance *pim, pim_addr source_addr);
12e41d03
DL
30
31#endif /* PIM_SSMPINGD_H */