blob: 9796a4d2e7ab24f9cdd117d18f82370835533f19 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/* Interface related header.
2 Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
3
4This file is part of GNU Zebra.
5
6GNU Zebra is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation; either version 2, or (at your
9option) any later version.
10
11GNU Zebra is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Zebra; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21#ifndef _ZEBRA_IF_H
22#define _ZEBRA_IF_H
23
Paul Jakma9099f9b2016-01-18 10:12:10 +000024#include "zebra.h"
paul718e3742002-12-13 20:15:29 +000025#include "linklist.h"
26
Timo Teräs954c7d62016-01-15 17:36:33 +020027/* Interface link-layer type, if known. Derived from:
28 *
29 * net/if_arp.h on various platforms - Linux especially.
30 * http://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml
31 *
32 * Some of the more obviously defunct technologies left out.
33 */
34enum zebra_link_type {
35 ZEBRA_LLT_UNKNOWN = 0,
36 ZEBRA_LLT_ETHER,
37 ZEBRA_LLT_EETHER,
38 ZEBRA_LLT_AX25,
39 ZEBRA_LLT_PRONET,
40 ZEBRA_LLT_IEEE802,
41 ZEBRA_LLT_ARCNET,
42 ZEBRA_LLT_APPLETLK,
43 ZEBRA_LLT_DLCI,
44 ZEBRA_LLT_ATM,
45 ZEBRA_LLT_METRICOM,
46 ZEBRA_LLT_IEEE1394,
47 ZEBRA_LLT_EUI64,
48 ZEBRA_LLT_INFINIBAND,
49 ZEBRA_LLT_SLIP,
50 ZEBRA_LLT_CSLIP,
51 ZEBRA_LLT_SLIP6,
52 ZEBRA_LLT_CSLIP6,
53 ZEBRA_LLT_RSRVD,
54 ZEBRA_LLT_ADAPT,
55 ZEBRA_LLT_ROSE,
56 ZEBRA_LLT_X25,
57 ZEBRA_LLT_PPP,
58 ZEBRA_LLT_CHDLC,
59 ZEBRA_LLT_LAPB,
60 ZEBRA_LLT_RAWHDLC,
61 ZEBRA_LLT_IPIP,
62 ZEBRA_LLT_IPIP6,
63 ZEBRA_LLT_FRAD,
64 ZEBRA_LLT_SKIP,
65 ZEBRA_LLT_LOOPBACK,
66 ZEBRA_LLT_LOCALTLK,
67 ZEBRA_LLT_FDDI,
68 ZEBRA_LLT_SIT,
69 ZEBRA_LLT_IPDDP,
70 ZEBRA_LLT_IPGRE,
71 ZEBRA_LLT_IP6GRE,
72 ZEBRA_LLT_PIMREG,
73 ZEBRA_LLT_HIPPI,
74 ZEBRA_LLT_ECONET,
75 ZEBRA_LLT_IRDA,
76 ZEBRA_LLT_FCPP,
77 ZEBRA_LLT_FCAL,
78 ZEBRA_LLT_FCPL,
79 ZEBRA_LLT_FCFABRIC,
80 ZEBRA_LLT_IEEE802_TR,
81 ZEBRA_LLT_IEEE80211,
82 ZEBRA_LLT_IEEE80211_RADIOTAP,
83 ZEBRA_LLT_IEEE802154,
84 ZEBRA_LLT_IEEE802154_PHY,
85};
86
paul718e3742002-12-13 20:15:29 +000087/*
88 Interface name length.
89
90 Linux define value in /usr/include/linux/if.h.
91 #define IFNAMSIZ 16
92
93 FreeBSD define value in /usr/include/net/if.h.
94 #define IFNAMSIZ 16
95*/
96
97#define INTERFACE_NAMSIZ 20
98#define INTERFACE_HWADDR_MAX 20
99
Paul Jakma9099f9b2016-01-18 10:12:10 +0000100typedef signed int ifindex_t;
101
paul718e3742002-12-13 20:15:29 +0000102#ifdef HAVE_PROC_NET_DEV
103struct if_stats
104{
105 unsigned long rx_packets; /* total packets received */
106 unsigned long tx_packets; /* total packets transmitted */
107 unsigned long rx_bytes; /* total bytes received */
108 unsigned long tx_bytes; /* total bytes transmitted */
109 unsigned long rx_errors; /* bad packets received */
110 unsigned long tx_errors; /* packet transmit problems */
111 unsigned long rx_dropped; /* no space in linux buffers */
112 unsigned long tx_dropped; /* no space available in linux */
113 unsigned long rx_multicast; /* multicast packets received */
114 unsigned long rx_compressed;
115 unsigned long tx_compressed;
116 unsigned long collisions;
117
118 /* detailed rx_errors: */
119 unsigned long rx_length_errors;
120 unsigned long rx_over_errors; /* receiver ring buff overflow */
121 unsigned long rx_crc_errors; /* recved pkt with crc error */
122 unsigned long rx_frame_errors; /* recv'd frame alignment error */
123 unsigned long rx_fifo_errors; /* recv'r fifo overrun */
124 unsigned long rx_missed_errors; /* receiver missed packet */
125 /* detailed tx_errors */
126 unsigned long tx_aborted_errors;
127 unsigned long tx_carrier_errors;
128 unsigned long tx_fifo_errors;
129 unsigned long tx_heartbeat_errors;
130 unsigned long tx_window_errors;
131};
132#endif /* HAVE_PROC_NET_DEV */
133
Olivier Dugeonae51c9d2016-04-19 16:21:46 +0200134/* Here are "non-official" architectural constants. */
135#define TE_EXT_MASK 0x0FFFFFFF
136#define TE_EXT_ANORMAL 0x80000000
137#define LOSS_PRECISION 0.000003
138#define TE_KILO_BIT 1000
139#define TE_BYTE 8
140#define DEFAULT_BANDWIDTH 10000
141#define MAX_CLASS_TYPE 8
142#define MAX_PKT_LOSS 50.331642
143
144/* Link Parameters Status: 0: unset, 1: set, */
145#define LP_UNSET 0x0000
146#define LP_TE 0x0001
147#define LP_MAX_BW 0x0002
148#define LP_MAX_RSV_BW 0x0004
149#define LP_UNRSV_BW 0x0008
150#define LP_ADM_GRP 0x0010
151#define LP_RMT_AS 0x0020
152#define LP_DELAY 0x0040
153#define LP_MM_DELAY 0x0080
154#define LP_DELAY_VAR 0x0100
155#define LP_PKT_LOSS 0x0200
156#define LP_RES_BW 0x0400
157#define LP_AVA_BW 0x0800
158#define LP_USE_BW 0x1000
159
160#define IS_PARAM_UNSET(lp, st) !(lp->lp_status & st)
161#define IS_PARAM_SET(lp, st) (lp->lp_status & st)
162#define IS_LINK_PARAMS_SET(lp) (lp->lp_status != LP_UNSET)
163
164#define SET_PARAM(lp, st) (lp->lp_status) |= (st)
165#define UNSET_PARAM(lp, st) (lp->lp_status) &= ~(st)
166#define RESET_LINK_PARAM(lp) (lp->lp_status = LP_UNSET)
167
168/* Link Parameters for Traffic Engineering */
169struct if_link_params {
170 u_int32_t lp_status; /* Status of Link Parameters: */
171 u_int32_t te_metric; /* Traffic Engineering metric */
172 float max_bw; /* Maximum Bandwidth */
173 float max_rsv_bw; /* Maximum Reservable Bandwidth */
174 float unrsv_bw[MAX_CLASS_TYPE]; /* Unreserved Bandwidth per Class Type (8) */
175 u_int32_t admin_grp; /* Administrative group */
176 u_int32_t rmt_as; /* Remote AS number */
177 struct in_addr rmt_ip; /* Remote IP address */
178 u_int32_t av_delay; /* Link Average Delay */
179 u_int32_t min_delay; /* Link Min Delay */
180 u_int32_t max_delay; /* Link Max Delay */
181 u_int32_t delay_var; /* Link Delay Variation */
182 float pkt_loss; /* Link Packet Loss */
183 float res_bw; /* Residual Bandwidth */
184 float ava_bw; /* Available Bandwidth */
185 float use_bw; /* Utilized Bandwidth */
186};
187
188#define INTERFACE_LINK_PARAMS_SIZE sizeof(struct if_link_params)
189#define HAS_LINK_PARAMS(ifp) ((ifp)->link_params != NULL)
190
paul718e3742002-12-13 20:15:29 +0000191/* Interface structure */
192struct interface
193{
ajsd2fc8892005-04-02 18:38:43 +0000194 /* Interface name. This should probably never be changed after the
195 interface is created, because the configuration info for this interface
196 is associated with this structure. For that reason, the interface
197 should also never be deleted (to avoid losing configuration info).
198 To delete, just set ifindex to IFINDEX_INTERNAL to indicate that the
199 interface does not exist in the kernel.
200 */
paul718e3742002-12-13 20:15:29 +0000201 char name[INTERFACE_NAMSIZ + 1];
202
ajsd2fc8892005-04-02 18:38:43 +0000203 /* Interface index (should be IFINDEX_INTERNAL for non-kernel or
204 deleted interfaces). */
Paul Jakma9099f9b2016-01-18 10:12:10 +0000205 ifindex_t ifindex;
ajsd2fc8892005-04-02 18:38:43 +0000206#define IFINDEX_INTERNAL 0
paul718e3742002-12-13 20:15:29 +0000207
208 /* Zebra internal interface status */
209 u_char status;
210#define ZEBRA_INTERFACE_ACTIVE (1 << 0)
211#define ZEBRA_INTERFACE_SUB (1 << 1)
paul2e3b2e42002-12-13 21:03:13 +0000212#define ZEBRA_INTERFACE_LINKDETECTION (1 << 2)
paul718e3742002-12-13 20:15:29 +0000213
214 /* Interface flags. */
paulc77d4542006-01-11 01:59:04 +0000215 uint64_t flags;
paul718e3742002-12-13 20:15:29 +0000216
217 /* Interface metric */
218 int metric;
219
220 /* Interface MTU. */
paulc9eca012004-10-11 11:28:44 +0000221 unsigned int mtu; /* IPv4 MTU */
222 unsigned int mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu */
paul718e3742002-12-13 20:15:29 +0000223
Timo Teräs954c7d62016-01-15 17:36:33 +0200224 /* Link-layer information and hardware address */
225 enum zebra_link_type ll_type;
paul718e3742002-12-13 20:15:29 +0000226 u_char hw_addr[INTERFACE_HWADDR_MAX];
227 int hw_addr_len;
paul718e3742002-12-13 20:15:29 +0000228
229 /* interface bandwidth, kbits */
230 unsigned int bandwidth;
231
Olivier Dugeonae51c9d2016-04-19 16:21:46 +0200232 /* Link parameters for Traffic Engineering */
233 struct if_link_params *link_params;
234
paul718e3742002-12-13 20:15:29 +0000235 /* description of the interface. */
236 char *desc;
237
238 /* Distribute list. */
239 void *distribute_in;
240 void *distribute_out;
241
242 /* Connected address list. */
hasso52dc7ee2004-09-23 19:18:23 +0000243 struct list *connected;
paul718e3742002-12-13 20:15:29 +0000244
245 /* Daemon specific interface data pointer. */
246 void *info;
247
248 /* Statistics fileds. */
249#ifdef HAVE_PROC_NET_DEV
250 struct if_stats stats;
251#endif /* HAVE_PROC_NET_DEV */
252#ifdef HAVE_NET_RT_IFLIST
253 struct if_data stats;
254#endif /* HAVE_NET_RT_IFLIST */
Feng Lu2fc97f62015-05-22 11:39:57 +0200255
256 vrf_id_t vrf_id;
paul718e3742002-12-13 20:15:29 +0000257};
258
259/* Connected address structure. */
260struct connected
261{
262 /* Attached interface. */
263 struct interface *ifp;
264
265 /* Flags for configuration. */
266 u_char conf;
267#define ZEBRA_IFC_REAL (1 << 0)
268#define ZEBRA_IFC_CONFIGURED (1 << 1)
Christian Frankef7f740f2013-01-24 14:04:48 +0000269#define ZEBRA_IFC_QUEUED (1 << 2)
Andrew J. Schorr9c378512006-05-21 04:04:49 +0000270 /*
271 The ZEBRA_IFC_REAL flag should be set if and only if this address
Christian Frankef7f740f2013-01-24 14:04:48 +0000272 exists in the kernel and is actually usable. (A case where it exists but
273 is not yet usable would be IPv6 with DAD)
Andrew J. Schorr9c378512006-05-21 04:04:49 +0000274 The ZEBRA_IFC_CONFIGURED flag should be set if and only if this address
275 was configured by the user from inside quagga.
Christian Frankef7f740f2013-01-24 14:04:48 +0000276 The ZEBRA_IFC_QUEUED flag should be set if and only if the address exists
277 in the kernel. It may and should be set although the address might not be
278 usable yet. (compare with ZEBRA_IFC_REAL)
Andrew J. Schorr9c378512006-05-21 04:04:49 +0000279 */
paul718e3742002-12-13 20:15:29 +0000280
281 /* Flags for connected address. */
282 u_char flags;
Andrew J. Schorre4529632006-12-12 19:18:21 +0000283#define ZEBRA_IFA_SECONDARY (1 << 0)
284#define ZEBRA_IFA_PEER (1 << 1)
285 /* N.B. the ZEBRA_IFA_PEER flag should be set if and only if
286 a peer address has been configured. If this flag is set,
287 the destination field must contain the peer address.
288 Otherwise, if this flag is not set, the destination address
289 will either contain a broadcast address or be NULL.
290 */
paul718e3742002-12-13 20:15:29 +0000291
292 /* Address of connected network. */
293 struct prefix *address;
Andrew J. Schorre4529632006-12-12 19:18:21 +0000294
295 /* Peer or Broadcast address, depending on whether ZEBRA_IFA_PEER is set.
296 Note: destination may be NULL if ZEBRA_IFA_PEER is not set. */
297 struct prefix *destination;
paul718e3742002-12-13 20:15:29 +0000298
299 /* Label for Linux 2.2.X and upper. */
300 char *label;
301};
302
Andrew J. Schorre4529632006-12-12 19:18:21 +0000303/* Does the destination field contain a peer address? */
304#define CONNECTED_PEER(C) CHECK_FLAG((C)->flags, ZEBRA_IFA_PEER)
hasso3fb9cd62004-10-19 19:44:43 +0000305
Andrew J. Schorre4529632006-12-12 19:18:21 +0000306/* Prefix to insert into the RIB */
307#define CONNECTED_PREFIX(C) \
308 (CONNECTED_PEER(C) ? (C)->destination : (C)->address)
309
310/* Identifying address. We guess that if there's a peer address, but the
311 local address is in the same prefix, then the local address may be unique. */
312#define CONNECTED_ID(C) \
313 ((CONNECTED_PEER(C) && !prefix_match((C)->destination, (C)->address)) ?\
314 (C)->destination : (C)->address)
hasso3fb9cd62004-10-19 19:44:43 +0000315
paul718e3742002-12-13 20:15:29 +0000316/* Interface hook sort. */
317#define IF_NEW_HOOK 0
318#define IF_DELETE_HOOK 1
319
320/* There are some interface flags which are only supported by some
321 operating system. */
322
323#ifndef IFF_NOTRAILERS
324#define IFF_NOTRAILERS 0x0
325#endif /* IFF_NOTRAILERS */
326#ifndef IFF_OACTIVE
327#define IFF_OACTIVE 0x0
328#endif /* IFF_OACTIVE */
329#ifndef IFF_SIMPLEX
330#define IFF_SIMPLEX 0x0
331#endif /* IFF_SIMPLEX */
332#ifndef IFF_LINK0
333#define IFF_LINK0 0x0
334#endif /* IFF_LINK0 */
335#ifndef IFF_LINK1
336#define IFF_LINK1 0x0
337#endif /* IFF_LINK1 */
338#ifndef IFF_LINK2
339#define IFF_LINK2 0x0
340#endif /* IFF_LINK2 */
paul4ba9b922004-12-21 22:34:58 +0000341#ifndef IFF_NOXMIT
342#define IFF_NOXMIT 0x0
343#endif /* IFF_NOXMIT */
344#ifndef IFF_NORTEXCH
345#define IFF_NORTEXCH 0x0
346#endif /* IFF_NORTEXCH */
347#ifndef IFF_IPV4
348#define IFF_IPV4 0x0
349#endif /* IFF_IPV4 */
350#ifndef IFF_IPV6
351#define IFF_IPV6 0x0
352#endif /* IFF_IPV6 */
353#ifndef IFF_VIRTUAL
354#define IFF_VIRTUAL 0x0
355#endif /* IFF_VIRTUAL */
paul718e3742002-12-13 20:15:29 +0000356
357/* Prototypes. */
paul8cc41982005-05-06 21:25:49 +0000358extern int if_cmp_func (struct interface *, struct interface *);
359extern struct interface *if_create (const char *name, int namelen);
Paul Jakma9099f9b2016-01-18 10:12:10 +0000360extern struct interface *if_lookup_by_index (ifindex_t);
paul8cc41982005-05-06 21:25:49 +0000361extern struct interface *if_lookup_exact_address (struct in_addr);
362extern struct interface *if_lookup_address (struct in_addr);
Dinesh Duttb81e97a2013-08-24 07:55:50 +0000363extern struct interface *if_lookup_prefix (struct prefix *prefix);
ajsa3491982005-04-02 22:50:38 +0000364
Feng Lu5a5702f2015-05-22 11:39:59 +0200365extern struct interface *if_create_vrf (const char *name, int namelen,
366 vrf_id_t vrf_id);
Paul Jakma9099f9b2016-01-18 10:12:10 +0000367extern struct interface *if_lookup_by_index_vrf (ifindex_t, vrf_id_t vrf_id);
Feng Lu5a5702f2015-05-22 11:39:59 +0200368extern struct interface *if_lookup_exact_address_vrf (struct in_addr,
369 vrf_id_t vrf_id);
370extern struct interface *if_lookup_address_vrf (struct in_addr,
371 vrf_id_t vrf_id);
372extern struct interface *if_lookup_prefix_vrf (struct prefix *prefix,
373 vrf_id_t vrf_id);
374
ajs08dbfb62005-04-03 03:40:52 +0000375/* These 2 functions are to be used when the ifname argument is terminated
376 by a '\0' character: */
paul8cc41982005-05-06 21:25:49 +0000377extern struct interface *if_lookup_by_name (const char *ifname);
378extern struct interface *if_get_by_name (const char *ifname);
ajsd2fc8892005-04-02 18:38:43 +0000379
Feng Lu5a5702f2015-05-22 11:39:59 +0200380extern struct interface *if_lookup_by_name_vrf (const char *ifname,
381 vrf_id_t vrf_id);
382extern struct interface *if_get_by_name_vrf (const char *ifname,
383 vrf_id_t vrf_id);
384
ajs08dbfb62005-04-03 03:40:52 +0000385/* For these 2 functions, the namelen argument should be the precise length
386 of the ifname string (not counting any optional trailing '\0' character).
387 In most cases, strnlen should be used to calculate the namelen value. */
388extern struct interface *if_lookup_by_name_len(const char *ifname,
Feng Lu5a5702f2015-05-22 11:39:59 +0200389 size_t namelen);
390extern struct interface *if_get_by_name_len(const char *ifname,size_t namelen);
391
392extern struct interface *if_lookup_by_name_len_vrf(const char *ifname,
393 size_t namelen, vrf_id_t vrf_id);
394extern struct interface *if_get_by_name_len_vrf(const char *ifname,
395 size_t namelen, vrf_id_t vrf_id);
ajsa3491982005-04-02 22:50:38 +0000396
397
ajsd2fc8892005-04-02 18:38:43 +0000398/* Delete the interface, but do not free the structure, and leave it in the
399 interface list. It is often advisable to leave the pseudo interface
400 structure because there may be configuration information attached. */
401extern void if_delete_retain (struct interface *);
402
403/* Delete and free the interface structure: calls if_delete_retain and then
404 deletes it from the interface list and frees the structure. */
405extern void if_delete (struct interface *);
406
paul8cc41982005-05-06 21:25:49 +0000407extern int if_is_up (struct interface *);
408extern int if_is_running (struct interface *);
409extern int if_is_operative (struct interface *);
410extern int if_is_loopback (struct interface *);
411extern int if_is_broadcast (struct interface *);
412extern int if_is_pointopoint (struct interface *);
413extern int if_is_multicast (struct interface *);
414extern void if_add_hook (int, int (*)(struct interface *));
Feng Lu5a5702f2015-05-22 11:39:59 +0200415extern void if_init (vrf_id_t, struct list **);
416extern void if_terminate (vrf_id_t, struct list **);
paul8cc41982005-05-06 21:25:49 +0000417extern void if_dump_all (void);
ajs847947f2005-02-02 18:38:48 +0000418extern const char *if_flag_dump(unsigned long);
Timo Teräs954c7d62016-01-15 17:36:33 +0200419extern const char *if_link_type_str (enum zebra_link_type);
paul718e3742002-12-13 20:15:29 +0000420
ajsd2fc8892005-04-02 18:38:43 +0000421/* Please use ifindex2ifname instead of if_indextoname where possible;
422 ifindex2ifname uses internal interface info, whereas if_indextoname must
423 make a system call. */
Paul Jakma9099f9b2016-01-18 10:12:10 +0000424extern const char *ifindex2ifname (ifindex_t);
425extern const char *ifindex2ifname_vrf (ifindex_t, vrf_id_t vrf_id);
ajsd2fc8892005-04-02 18:38:43 +0000426
427/* Please use ifname2ifindex instead of if_nametoindex where possible;
428 ifname2ifindex uses internal interface info, whereas if_nametoindex must
429 make a system call. */
Paul Jakma9099f9b2016-01-18 10:12:10 +0000430extern ifindex_t ifname2ifindex(const char *ifname);
431extern ifindex_t ifname2ifindex_vrf(const char *ifname, vrf_id_t vrf_id);
ajsd2fc8892005-04-02 18:38:43 +0000432
paul718e3742002-12-13 20:15:29 +0000433/* Connected address functions. */
paul8cc41982005-05-06 21:25:49 +0000434extern struct connected *connected_new (void);
435extern void connected_free (struct connected *);
436extern void connected_add (struct interface *, struct connected *);
437extern struct connected *connected_add_by_prefix (struct interface *,
paul4a7aac12004-05-08 05:00:31 +0000438 struct prefix *,
439 struct prefix *);
paul8cc41982005-05-06 21:25:49 +0000440extern struct connected *connected_delete_by_prefix (struct interface *,
paul4a7aac12004-05-08 05:00:31 +0000441 struct prefix *);
paul8cc41982005-05-06 21:25:49 +0000442extern struct connected *connected_lookup_address (struct interface *,
paul4a7aac12004-05-08 05:00:31 +0000443 struct in_addr);
paul718e3742002-12-13 20:15:29 +0000444
445#ifndef HAVE_IF_NAMETOINDEX
Paul Jakma9099f9b2016-01-18 10:12:10 +0000446extern ifindex_t if_nametoindex (const char *);
paul718e3742002-12-13 20:15:29 +0000447#endif
448#ifndef HAVE_IF_INDEXTONAME
Paul Jakma9099f9b2016-01-18 10:12:10 +0000449extern char *if_indextoname (ifindex_t, char *);
paul718e3742002-12-13 20:15:29 +0000450#endif
451
Olivier Dugeonae51c9d2016-04-19 16:21:46 +0200452/* link parameters */
453struct if_link_params *if_link_params_get (struct interface *);
454void if_link_params_free (struct interface *);
455
paul718e3742002-12-13 20:15:29 +0000456/* Exported variables. */
hasso52dc7ee2004-09-23 19:18:23 +0000457extern struct list *iflist;
paul718e3742002-12-13 20:15:29 +0000458extern struct cmd_element interface_desc_cmd;
459extern struct cmd_element no_interface_desc_cmd;
460extern struct cmd_element interface_cmd;
paul32d24632003-05-23 09:25:20 +0000461extern struct cmd_element no_interface_cmd;
Feng Lu471ea392015-05-22 11:40:00 +0200462extern struct cmd_element interface_vrf_cmd;
463extern struct cmd_element no_interface_vrf_cmd;
paul718e3742002-12-13 20:15:29 +0000464extern struct cmd_element interface_pseudo_cmd;
465extern struct cmd_element no_interface_pseudo_cmd;
Paul Jakma478ccfd2006-03-06 18:18:37 +0000466extern struct cmd_element show_address_cmd;
Feng Lu5a5702f2015-05-22 11:39:59 +0200467extern struct cmd_element show_address_vrf_cmd;
468extern struct cmd_element show_address_vrf_all_cmd;
paul718e3742002-12-13 20:15:29 +0000469
470#endif /* _ZEBRA_IF_H */