]>
Commit | Line | Data |
---|---|---|
01d68c9b DS |
1 | /* |
2 | * PIM for Quagga | |
3 | * Copyright (C) 2015 Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation; either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program; see the file COPYING; if not, write to the | |
18 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, | |
19 | * MA 02110-1301 USA | |
20 | */ | |
21 | #ifndef PIM_REGISTER_H | |
22 | #define PIM_REGISTER_H | |
23 | ||
24 | #include <zebra.h> | |
25 | ||
26 | #include "if.h" | |
27 | ||
28 | #define PIM_REGISTER_BORDER_BIT 0x80000000 | |
29 | #define PIM_REGISTER_NR_BIT 0x40000000 | |
30 | ||
998af219 | 31 | #define PIM_MSG_REGISTER_LEN (8) |
86d1f7c4 | 32 | #define PIM_MSG_REGISTER_STOP_LEN (4) |
77e390e5 | 33 | |
01d68c9b DS |
34 | void pim_register_send_test_packet_start (struct in_addr source, |
35 | struct in_addr group, | |
36 | uint32_t pps); | |
37 | ||
38 | int pim_register_recv (struct interface *ifp, | |
39 | struct in_addr dest_addr, | |
40 | struct in_addr src_addr, | |
41 | uint8_t *tlv_buf, int tlv_buf_size); | |
42 | ||
998af219 DS |
43 | void pim_register_send (const struct ip *msg, struct pim_rpf *rpg); |
44 | ||
01d68c9b | 45 | #endif |