]>
Commit | Line | Data |
---|---|---|
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 | ||
16 | struct 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 |
26 | void pim_ssmpingd_init(struct pim_instance *pim); |
27 | void pim_ssmpingd_destroy(struct pim_instance *pim); | |
1c56018f BG |
28 | int pim_ssmpingd_start(struct pim_instance *pim, pim_addr source_addr); |
29 | int pim_ssmpingd_stop(struct pim_instance *pim, pim_addr source_addr); | |
12e41d03 DL |
30 | |
31 | #endif /* PIM_SSMPINGD_H */ |