]> git.proxmox.com Git - mirror_frr.git/blame - zebra/interface.h
tools: Add `show thread timers` to support bundle generation
[mirror_frr.git] / zebra / interface.h
CommitLineData
b9368db9 1
718e3744 2/* Interface function header.
3 * Copyright (C) 1999 Kunihiro Ishiguro
4 *
5 * This file is part of GNU Zebra.
6 *
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
896014f4
DL
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
718e3744 20 */
21
5b73a671 22#ifndef _ZEBRA_INTERFACE_H
23#define _ZEBRA_INTERFACE_H
24
25#include "redistribute.h"
12f6fb97 26#include "vrf.h"
2eb27eec 27#include "hook.h"
ce5160c0 28#include "bitfield.h"
ca776988 29
6675513d 30#include "zebra/zebra_l2.h"
5948f013 31#include "zebra/zebra_nhg_private.h"
c36e442c 32#include "zebra/zebra_router.h"
6675513d 33
51e94aa7
EDP
34#ifdef __cplusplus
35extern "C" {
36#endif
37
718e3744 38/* For interface multicast configuration. */
39#define IF_ZEBRA_MULTICAST_UNSPEC 0
40#define IF_ZEBRA_MULTICAST_ON 1
41#define IF_ZEBRA_MULTICAST_OFF 2
42
43/* For interface shutdown configuration. */
bfac8dcd 44#define IF_ZEBRA_SHUTDOWN_OFF 0
718e3744 45#define IF_ZEBRA_SHUTDOWN_ON 1
718e3744 46
ce5160c0
AK
47#define IF_VLAN_BITMAP_MAX 4096
48
d62a17ae 49#if defined(HAVE_RTADV)
6eb0c5ab 50/* Router advertisement parameter. From RFC4861, RFC6275 and RFC4191. */
d62a17ae 51struct rtadvconf {
52 /* A flag indicating whether or not the router sends periodic Router
53 Advertisements and responds to Router Solicitations.
2951a7a4 54 Default: false */
d62a17ae 55 int AdvSendAdvertisements;
56
57 /* The maximum time allowed between sending unsolicited multicast
58 Router Advertisements from the interface, in milliseconds.
59 MUST be no less than 70 ms [RFC6275 7.5] and no greater
60 than 1800000 ms [RFC4861 6.2.1].
61
62 Default: 600000 milliseconds */
63 int MaxRtrAdvInterval;
7cee1bb1 64#define RTADV_MAX_RTR_ADV_INTERVAL 600000
718e3744 65
d62a17ae 66 /* The minimum time allowed between sending unsolicited multicast
67 Router Advertisements from the interface, in milliseconds.
68 MUST be no less than 30 ms [RFC6275 7.5].
69 MUST be no greater than .75 * MaxRtrAdvInterval.
718e3744 70
d62a17ae 71 Default: 0.33 * MaxRtrAdvInterval */
72 int MinRtrAdvInterval; /* This field is currently unused. */
718e3744 73#define RTADV_MIN_RTR_ADV_INTERVAL (0.33 * RTADV_MAX_RTR_ADV_INTERVAL)
74
d62a17ae 75 /* Unsolicited Router Advertisements' interval timer. */
76 int AdvIntervalTimer;
718e3744 77
2951a7a4 78 /* The true/false value to be placed in the "Managed address
d62a17ae 79 configuration" flag field in the Router Advertisement. See
80 [ADDRCONF].
718e3744 81
2951a7a4 82 Default: false */
d62a17ae 83 int AdvManagedFlag;
637f95bf 84 struct timeval lastadvmanagedflag;
718e3744 85
718e3744 86
2951a7a4 87 /* The true/false value to be placed in the "Other stateful
d62a17ae 88 configuration" flag field in the Router Advertisement. See
89 [ADDRCONF].
718e3744 90
2951a7a4 91 Default: false */
d62a17ae 92 int AdvOtherConfigFlag;
637f95bf 93 struct timeval lastadvotherconfigflag;
718e3744 94
d62a17ae 95 /* The value to be placed in MTU options sent by the router. A
96 value of zero indicates that no MTU options are sent.
718e3744 97
d62a17ae 98 Default: 0 */
99 int AdvLinkMTU;
718e3744 100
718e3744 101
d62a17ae 102 /* The value to be placed in the Reachable Time field in the Router
103 Advertisement messages sent by the router. The value zero means
104 unspecified (by this router). MUST be no greater than 3,600,000
105 milliseconds (1 hour).
718e3744 106
d62a17ae 107 Default: 0 */
d7c0a89a 108 uint32_t AdvReachableTime;
d62a17ae 109#define RTADV_MAX_REACHABLE_TIME 3600000
637f95bf 110 struct timeval lastadvreachabletime;
718e3744 111
d62a17ae 112 /* The value to be placed in the Retrans Timer field in the Router
113 Advertisement messages sent by the router. The value zero means
114 unspecified (by this router).
718e3744 115
d62a17ae 116 Default: 0 */
117 int AdvRetransTimer;
637f95bf 118 struct timeval lastadvretranstimer;
718e3744 119
d62a17ae 120 /* The default value to be placed in the Cur Hop Limit field in the
121 Router Advertisement messages sent by the router. The value
122 should be set to that current diameter of the Internet. The
123 value zero means unspecified (by this router).
718e3744 124
d62a17ae 125 Default: The value specified in the "Assigned Numbers" RFC
126 [ASSIGNED] that was in effect at the time of implementation. */
127 int AdvCurHopLimit;
637f95bf
DS
128 struct timeval lastadvcurhoplimit;
129
fae01935 130#define RTADV_DEFAULT_HOPLIMIT 64 /* 64 hops */
718e3744 131
d62a17ae 132 /* The value to be placed in the Router Lifetime field of Router
133 Advertisements sent from the interface, in seconds. MUST be
134 either zero or between MaxRtrAdvInterval and 9000 seconds. A
135 value of zero indicates that the router is not to be used as a
136 default router.
718e3744 137
d62a17ae 138 Default: 3 * MaxRtrAdvInterval */
139 int AdvDefaultLifetime;
d660f698 140#define RTADV_MAX_RTRLIFETIME 9000 /* 2.5 hours */
718e3744 141
d62a17ae 142 /* A list of prefixes to be placed in Prefix Information options in
143 Router Advertisement messages sent from the interface.
718e3744 144
d62a17ae 145 Default: all prefixes that the router advertises via routing
146 protocols as being on-link for the interface from which the
147 advertisement is sent. The link-local prefix SHOULD NOT be
148 included in the list of advertised prefixes. */
149 struct list *AdvPrefixList;
7cee1bb1 150
2951a7a4 151 /* The true/false value to be placed in the "Home agent"
d62a17ae 152 flag field in the Router Advertisement. See [RFC6275 7.1].
7cee1bb1 153
2951a7a4 154 Default: false */
d62a17ae 155 int AdvHomeAgentFlag;
7cee1bb1 156#ifndef ND_RA_FLAG_HOME_AGENT
157#define ND_RA_FLAG_HOME_AGENT 0x20
158#endif
159
d62a17ae 160 /* The value to be placed in Home Agent Information option if Home
161 Flag is set.
162 Default: 0 */
163 int HomeAgentPreference;
164
165 /* The value to be placed in Home Agent Information option if Home
166 Flag is set. Lifetime (seconds) MUST not be greater than 18.2
167 hours.
168 The value 0 has special meaning: use of AdvDefaultLifetime value.
169
170 Default: 0 */
171 int HomeAgentLifetime;
7cee1bb1 172#define RTADV_MAX_HALIFETIME 65520 /* 18.2 hours */
173
2951a7a4 174 /* The true/false value to insert or not an Advertisement Interval
d62a17ae 175 option. See [RFC 6275 7.3]
7cee1bb1 176
2951a7a4 177 Default: false */
d62a17ae 178 int AdvIntervalOption;
b60668d0 179
d62a17ae 180 /* The value to be placed in the Default Router Preference field of
181 a router advertisement. See [RFC 4191 2.1 & 2.2]
b60668d0 182
d62a17ae 183 Default: 0 (medium) */
184 int DefaultPreference;
b60668d0 185#define RTADV_PREF_MEDIUM 0x0 /* Per RFC4191. */
6c9678b4 186
3eb4fbb0
LS
187 /*
188 * List of recursive DNS servers to include in the RDNSS option.
189 * See [RFC8106 5.1]
190 *
191 * Default: empty list; do not emit RDNSS option
192 */
193 struct list *AdvRDNSSList;
194
195 /*
196 * List of DNS search domains to include in the DNSSL option.
197 * See [RFC8106 5.2]
198 *
199 * Default: empty list; do not emit DNSSL option
200 */
201 struct list *AdvDNSSLList;
202
adee8f21
DS
203 /*
204 * rfc4861 states RAs must be sent at least 3 seconds apart.
205 * We allow faster retransmits to speed up convergence but can
206 * turn that capability off to meet the rfc if needed.
207 */
208 bool UseFastRexmit; /* True if fast rexmits are enabled */
209
d7c0a89a 210 uint8_t inFastRexmit; /* True if we're rexmits faster than usual */
3ea48364
DS
211
212 /* Track if RA was configured by BGP or by the Operator or both */
d7c0a89a 213 uint8_t ra_configured; /* Was RA configured? */
3ea48364
DS
214#define BGP_RA_CONFIGURED (1<<0) /* BGP configured RA? */
215#define VTY_RA_CONFIGURED (1<<1) /* Operator configured RA? */
216#define VTY_RA_INTERVAL_CONFIGURED (1<<2) /* Operator configured RA interval */
996c9314
LB
217 int NumFastReXmitsRemain; /* Loaded first with number of fast
218 rexmits to do */
6c9678b4
DD
219
220#define RTADV_FAST_REXMIT_PERIOD 1 /* 1 sec */
221#define RTADV_NUM_FAST_REXMITS 4 /* Fast Rexmit RA 4 times on certain events */
718e3744 222};
223
3eb4fbb0
LS
224struct rtadv_rdnss {
225 /* Address of recursive DNS server to advertise */
226 struct in6_addr addr;
227
228 /*
229 * Lifetime in seconds; all-ones means infinity, zero
230 * stop using it.
231 */
232 uint32_t lifetime;
233
234 /* If lifetime not set, use a default of 3*MaxRtrAdvInterval */
235 int lifetime_set;
236};
237
238/*
239 * [RFC1035 2.3.4] sets the maximum length of a domain name (a sequence of
240 * labels, each prefixed by a length octet) at 255 octets.
241 */
242#define RTADV_MAX_ENCODED_DOMAIN_NAME 255
243
244struct rtadv_dnssl {
245 /* Domain name without trailing root zone dot (NUL-terminated) */
246 char name[RTADV_MAX_ENCODED_DOMAIN_NAME - 1];
247
248 /* Name encoded as in [RFC1035 3.1] */
249 uint8_t encoded_name[RTADV_MAX_ENCODED_DOMAIN_NAME];
250
251 /* Actual length of encoded_name */
252 size_t encoded_len;
253
254 /* Lifetime as for RDNSS */
255 uint32_t lifetime;
256 int lifetime_set;
257};
258
8da4e946 259#endif /* HAVE_RTADV */
718e3744 260
6675513d 261/* Zebra interface type - ones of interest. */
e6f2bec0 262enum zebra_iftype {
7a38782a
DL
263 ZEBRA_IF_OTHER = 0, /* Anything else */
264 ZEBRA_IF_VXLAN, /* VxLAN interface */
265 ZEBRA_IF_VRF, /* VRF device */
266 ZEBRA_IF_BRIDGE, /* bridge device */
267 ZEBRA_IF_VLAN, /* VLAN sub-interface */
268 ZEBRA_IF_MACVLAN, /* MAC VLAN interface*/
0e4864ea 269 ZEBRA_IF_VETH, /* VETH interface*/
b9368db9
DD
270 ZEBRA_IF_BOND, /* Bond */
271 ZEBRA_IF_BOND_SLAVE, /* Bond */
077c07cc 272 ZEBRA_IF_GRE, /* GRE interface */
e6f2bec0 273};
6675513d 274
275/* Zebra "slave" interface type */
a81982fa 276enum zebra_slave_iftype {
d62a17ae 277 ZEBRA_IF_SLAVE_NONE, /* Not a slave */
278 ZEBRA_IF_SLAVE_VRF, /* Member of a VRF */
279 ZEBRA_IF_SLAVE_BRIDGE, /* Member of a bridge */
b9368db9 280 ZEBRA_IF_SLAVE_BOND, /* Bond member */
d62a17ae 281 ZEBRA_IF_SLAVE_OTHER, /* Something else - e.g., bond slave */
a81982fa 282};
6675513d 283
2eb27eec
DL
284struct irdp_interface;
285
ce5160c0
AK
286/* Ethernet segment info used for setting up EVPN multihoming */
287struct zebra_evpn_es;
288struct zebra_es_if_info {
325d694b 289 /* type-3 esi config */
ce5160c0
AK
290 struct ethaddr sysmac;
291 uint32_t lid; /* local-id; has to be unique per-ES-sysmac */
325d694b
AK
292
293 esi_t esi;
294
1103c5c6 295 uint16_t df_pref;
00a7710c
AK
296 uint8_t flags;
297#define ZIF_CFG_ES_FLAG_BYPASS (1 << 0)
298
ce5160c0
AK
299 struct zebra_evpn_es *es; /* local ES */
300};
301
c36e442c
AK
302enum zebra_if_flags {
303 /* device has been configured as an uplink for
304 * EVPN multihoming
305 */
306 ZIF_FLAG_EVPN_MH_UPLINK = (1 << 0),
307 ZIF_FLAG_EVPN_MH_UPLINK_OPER_UP = (1 << 1),
308
309 /* Dataplane protodown-on */
00a7710c
AK
310 ZIF_FLAG_PROTODOWN = (1 << 2),
311
312 /* LACP bypass state is set by the dataplane on a bond member
313 * and inherited by the bond (if one or more bond members are in
314 * a bypass state the bond is placed in a bypass state)
315 */
316 ZIF_FLAG_LACP_BYPASS = (1 << 3)
c36e442c
AK
317};
318
718e3744 319/* `zebra' daemon local interface structure. */
d62a17ae 320struct zebra_if {
ce5160c0
AK
321 /* back pointer to the interface */
322 struct interface *ifp;
323
c36e442c
AK
324 enum zebra_if_flags flags;
325
d62a17ae 326 /* Shutdown configuration. */
d7c0a89a 327 uint8_t shutdown;
718e3744 328
d62a17ae 329 /* Multicast configuration. */
d7c0a89a 330 uint8_t multicast;
718e3744 331
b6beb700
MS
332 /* MPLS status. */
333 bool mpls;
334
d62a17ae 335 /* Router advertise configuration. */
d7c0a89a 336 uint8_t rtadv_enable;
718e3744 337
d62a17ae 338 /* Installed addresses chains tree. */
339 struct route_table *ipv4_subnets;
eef1fe11 340
fe593b78 341 /* Nexthops pointing to this interface */
602fea61
SW
342 /**
343 * Any nexthop that we get should have an
344 * interface. When an interface goes down,
345 * we will use this list to update the nexthops
346 * pointing to it with that info.
347 */
37c6708b 348 struct nhg_connected_tree_head nhg_dependents;
602fea61 349
d62a17ae 350 /* Information about up/down changes */
351 unsigned int up_count;
e36f61b5 352 char up_last[FRR_TIMESTAMP_LEN];
d62a17ae 353 unsigned int down_count;
e36f61b5 354 char down_last[FRR_TIMESTAMP_LEN];
55ce4d3a 355
8da4e946 356#if defined(HAVE_RTADV)
d62a17ae 357 struct rtadvconf rtadv;
358 unsigned int ra_sent, ra_rcvd;
8da4e946 359#endif /* HAVE_RTADV */
ca776988 360
2eb27eec 361 struct irdp_interface *irdp;
ca776988 362
8ccc7e80 363#ifdef HAVE_STRUCT_SOCKADDR_DL
d62a17ae 364 union {
365 /* note that sdl_storage is never accessed, it only exists to
366 * make space.
367 * all actual uses refer to sdl - but use sizeof(sdl_storage)!
368 * this fits
369 * best with C aliasing rules. */
370 struct sockaddr_dl sdl;
371 struct sockaddr_storage sdl_storage;
372 };
8ccc7e80
TT
373#endif
374
d62a17ae 375 /* ptm enable configuration */
d7c0a89a 376 uint8_t ptm_enable;
6675513d 377
d62a17ae 378 /* Zebra interface and "slave" interface type */
e6f2bec0 379 enum zebra_iftype zif_type;
a81982fa 380 enum zebra_slave_iftype zif_slave_type;
6675513d 381
d62a17ae 382 /* Additional L2 info, depends on zif_type */
383 union zebra_l2if_info l2info;
6675513d 384
d62a17ae 385 /* For members of a bridge, link to bridge. */
386 /* Note: If additional fields become necessary, this can be modified to
387 * be a pointer to a dynamically allocd struct.
388 */
389 struct zebra_l2info_brslave brslave_info;
6675513d 390
b9368db9 391 struct zebra_l2info_bondslave bondslave_info;
c36e442c 392 struct zebra_l2info_bond bond_info;
b9368db9 393
ce5160c0
AK
394 /* ethernet segment */
395 struct zebra_es_if_info es_info;
396
397 /* bitmap of vlans associated with this interface */
398 bitfield_t vlan_bitmap;
399
c36e442c
AK
400 /* An interface can be error-disabled if a protocol (such as EVPN or
401 * VRRP) detects a problem with keeping it operationally-up.
402 * If any of the protodown bits are set protodown-on is programmed
403 * in the dataplane. This results in a carrier/L1 down on the
404 * physical device.
405 */
406 enum protodown_reasons protodown_rc;
407
8b07f173
AK
408 /* list of zebra_mac entries using this interface as destination */
409 struct list *mac_list;
410
d62a17ae 411 /* Link fields - for sub-interfaces. */
412 ifindex_t link_ifindex;
413 struct interface *link;
dc7b3cae
DS
414
415 struct thread *speed_update;
20089ae2
DS
416
417 /*
418 * Does this interface have a v6 to v4 ll neighbor entry
419 * for bgp unnumbered?
420 */
421 bool v6_2_v4_ll_neigh_entry;
ee98d1f1 422 char neigh_mac[6];
20089ae2 423 struct in6_addr v6_2_v4_ll_addr6;
ba5165ec
DS
424
425 /* The description of the interface */
426 char *desc;
718e3744 427};
428
996c9314 429DECLARE_HOOK(zebra_if_extra_info, (struct vty * vty, struct interface *ifp),
8451921b 430 (vty, ifp));
996c9314 431DECLARE_HOOK(zebra_if_config_wr, (struct vty * vty, struct interface *ifp),
8451921b 432 (vty, ifp));
2eb27eec 433
d62a17ae 434#define IS_ZEBRA_IF_VRF(ifp) \
435 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_VRF)
436
437#define IS_ZEBRA_IF_BRIDGE(ifp) \
438 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_BRIDGE)
439
440#define IS_ZEBRA_IF_VLAN(ifp) \
441 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_VLAN)
442
443#define IS_ZEBRA_IF_VXLAN(ifp) \
444 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_VXLAN)
445
1a98c087
MK
446#define IS_ZEBRA_IF_MACVLAN(ifp) \
447 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_MACVLAN)
448
0e4864ea
PG
449#define IS_ZEBRA_IF_VETH(ifp) \
450 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_VETH)
451
c36e442c
AK
452#define IS_ZEBRA_IF_BOND(ifp) \
453 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_BOND)
454
077c07cc
PG
455#define IS_ZEBRA_IF_GRE(ifp) \
456 (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_GRE)
457
0e4864ea 458#define IS_ZEBRA_IF_BRIDGE_SLAVE(ifp) \
d62a17ae 459 (((struct zebra_if *)(ifp->info))->zif_slave_type \
460 == ZEBRA_IF_SLAVE_BRIDGE)
461
462#define IS_ZEBRA_IF_VRF_SLAVE(ifp) \
463 (((struct zebra_if *)(ifp->info))->zif_slave_type == ZEBRA_IF_SLAVE_VRF)
464
b9368db9
DD
465#define IS_ZEBRA_IF_BOND_SLAVE(ifp) \
466 (((struct zebra_if *)(ifp->info))->zif_slave_type \
467 == ZEBRA_IF_SLAVE_BOND)
468
05f7f5db
DS
469extern void zebra_if_init(void);
470
d7c0a89a 471extern struct interface *if_lookup_by_index_per_ns(struct zebra_ns *, uint32_t);
d62a17ae 472extern struct interface *if_lookup_by_name_per_ns(struct zebra_ns *,
473 const char *);
474extern struct interface *if_link_per_ns(struct zebra_ns *, struct interface *);
475extern const char *ifindex2ifname_per_ns(struct zebra_ns *, unsigned int);
476
477extern void if_unlink_per_ns(struct interface *);
ee98d1f1
DS
478extern void if_nbr_mac_to_ipv4ll_neigh_update(struct interface *fip,
479 char mac[6],
480 struct in6_addr *address,
481 int add);
d62a17ae 482extern void if_nbr_ipv6ll_to_ipv4ll_neigh_update(struct interface *ifp,
483 struct in6_addr *address,
484 int add);
485extern void if_nbr_ipv6ll_to_ipv4ll_neigh_del_all(struct interface *ifp);
486extern void if_delete_update(struct interface *ifp);
487extern void if_add_update(struct interface *ifp);
488extern void if_up(struct interface *);
489extern void if_down(struct interface *);
490extern void if_refresh(struct interface *);
491extern void if_flags_update(struct interface *, uint64_t);
492extern int if_subnet_add(struct interface *, struct connected *);
493extern int if_subnet_delete(struct interface *, struct connected *);
494extern int ipv6_address_configured(struct interface *ifp);
495extern void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id);
680c278f
PG
496extern void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex,
497 ns_id_t ns_id);
357b150d 498extern void zebra_if_update_all_links(struct zebra_ns *zns);
c3bd894e 499extern void zebra_if_set_protodown(struct interface *ifp, bool down);
09268680
CS
500extern int if_ip_address_install(struct interface *ifp, struct prefix *prefix,
501 const char *label, struct prefix *pp);
502extern int if_ipv6_address_install(struct interface *ifp, struct prefix *prefix,
503 const char *label);
504extern int if_ip_address_uinstall(struct interface *ifp, struct prefix *prefix);
505extern int if_shutdown(struct interface *ifp);
506extern int if_no_shutdown(struct interface *ifp);
507extern int if_multicast_set(struct interface *ifp);
508extern int if_multicast_unset(struct interface *ifp);
509extern int if_linkdetect(struct interface *ifp, bool detect);
510extern void if_addr_wakeup(struct interface *ifp);
d62a17ae 511
fe593b78
SW
512/* Nexthop group connected functions */
513extern void if_nhg_dependents_add(struct interface *ifp,
514 struct nhg_hash_entry *nhe);
515extern void if_nhg_dependents_del(struct interface *ifp,
516 struct nhg_hash_entry *nhe);
517extern unsigned int if_nhg_dependents_count(const struct interface *ifp);
518extern bool if_nhg_dependents_is_empty(const struct interface *ifp);
602fea61 519
d62a17ae 520extern void vrf_add_update(struct vrf *vrfp);
c36e442c
AK
521extern void zebra_l2_map_slave_to_bond(struct zebra_if *zif, vrf_id_t vrf);
522extern void zebra_l2_unmap_slave_from_bond(struct zebra_if *zif);
904e9b05
MS
523extern const char *zebra_protodown_rc_str(enum protodown_reasons protodown_rc,
524 char *pd_buf, uint32_t pd_buf_len);
d166308b 525void zebra_if_addr_update_ctx(struct zebra_dplane_ctx *ctx);
cd787a8a 526int zebra_if_netconf_update_ctx(struct zebra_dplane_ctx *ctx);
12f6fb97 527
718e3744 528#ifdef HAVE_PROC_NET_DEV
d62a17ae 529extern void ifstat_update_proc(void);
718e3744 530#endif /* HAVE_PROC_NET_DEV */
531#ifdef HAVE_NET_RT_IFLIST
d62a17ae 532extern void ifstat_update_sysctl(void);
718e3744 533
534#endif /* HAVE_NET_RT_IFLIST */
535#ifdef HAVE_PROC_NET_DEV
d62a17ae 536extern int interface_list_proc(void);
718e3744 537#endif /* HAVE_PROC_NET_DEV */
538#ifdef HAVE_PROC_NET_IF_INET6
d62a17ae 539extern int ifaddr_proc_ipv6(void);
718e3744 540#endif /* HAVE_PROC_NET_IF_INET6 */
541
51e94aa7
EDP
542#ifdef __cplusplus
543}
544#endif
545
5b73a671 546#endif /* _ZEBRA_INTERFACE_H */