blob: 71286e4964b19340e02f16ecd4cf4fc174e09bc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* PIM for Quagga
* Copyright (C) 2008 Everton da Silva Marques
*/
#ifndef PIM_SSMPINGD_H
#define PIM_SSMPINGD_H
#include <zebra.h>
#include "if.h"
#include "pim_iface.h"
struct ssmpingd_sock {
struct pim_instance *pim;
int sock_fd; /* socket */
struct event *t_sock_read; /* thread for reading socket */
pim_addr source_addr; /* source address */
int64_t creation; /* timestamp of socket creation */
int64_t requests; /* counter */
};
void pim_ssmpingd_init(struct pim_instance *pim);
void pim_ssmpingd_destroy(struct pim_instance *pim);
int pim_ssmpingd_start(struct pim_instance *pim, pim_addr source_addr);
int pim_ssmpingd_stop(struct pim_instance *pim, pim_addr source_addr);
#endif /* PIM_SSMPINGD_H */
|