]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim6_stubs.c
Merge pull request #10770 from chiragshah6/evpn_dev3
[mirror_frr.git] / pimd / pim6_stubs.c
1 /*
2 * PIMv6 temporary stubs
3 * Copyright (C) 2022 David Lamparter for NetDEF, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; see the file COPYING; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include <zebra.h>
21
22 #include "pimd.h"
23 #include "pim_nht.h"
24 #include "pim_zlookup.h"
25 #include "pim_pim.h"
26 #include "pim_register.h"
27 #include "pim_cmd.h"
28
29 /*
30 * NH lookup / NHT
31 */
32 void pim_nht_bsr_add(struct pim_instance *pim, struct in_addr addr)
33 {
34 }
35
36 void pim_nht_bsr_del(struct pim_instance *pim, struct in_addr addr)
37 {
38 }
39
40 int zclient_lookup_nexthop(struct pim_instance *pim,
41 struct pim_zlookup_nexthop nexthop_tab[],
42 const int tab_size, pim_addr addr,
43 int max_lookup)
44 {
45 return -1;
46 }
47
48 void zclient_lookup_new(void)
49 {
50 }
51
52 void zclient_lookup_free(void)
53 {
54 }
55
56 /*
57 * packet handling
58 */
59 int pim_msg_send(int fd, pim_addr src, pim_addr dst, uint8_t *pim_msg,
60 int pim_msg_size, const char *ifname)
61 {
62 return 0;
63 }
64
65 int pim_hello_send(struct interface *ifp, uint16_t holdtime)
66 {
67 return -1;
68 }
69
70 void pim_hello_restart_now(struct interface *ifp)
71 {
72 }
73
74 void pim_hello_restart_triggered(struct interface *ifp)
75 {
76 }
77
78 int pim_sock_add(struct interface *ifp)
79 {
80 return -1;
81 }
82
83 void pim_sock_delete(struct interface *ifp, const char *delete_message)
84 {
85 }
86
87 /*
88 * PIM register
89 */
90 void pim_register_join(struct pim_upstream *up)
91 {
92 }
93
94 void pim_null_register_send(struct pim_upstream *up)
95 {
96 }
97
98 void pim_reg_del_on_couldreg_fail(struct interface *ifp)
99 {
100 }
101
102 bool pim_bsm_new_nbr_fwd(struct pim_neighbor *neigh, struct interface *ifp)
103 {
104 return false;
105 }
106
107 void pim_bsm_proc_free(struct pim_instance *pim)
108 {
109 }
110
111 void pim_bsm_proc_init(struct pim_instance *pim)
112 {
113 }
114
115 struct bsgrp_node *pim_bsm_get_bsgrp_node(struct bsm_scope *scope,
116 struct prefix *grp)
117 {
118 return NULL;
119 }
120
121 void pim_bsm_write_config(struct vty *vty, struct interface *ifp)
122 {
123 }