paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | /* Interface related header. |
| 2 | Copyright (C) 1997, 98, 99 Kunihiro Ishiguro |
| 3 | |
| 4 | This file is part of GNU Zebra. |
| 5 | |
| 6 | GNU Zebra is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published |
| 8 | by the Free Software Foundation; either version 2, or (at your |
| 9 | option) any later version. |
| 10 | |
| 11 | GNU Zebra 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 GNU Zebra; see the file COPYING. If not, write to the |
| 18 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 19 | Boston, MA 02111-1307, USA. */ |
| 20 | |
| 21 | #ifndef _ZEBRA_IF_H |
| 22 | #define _ZEBRA_IF_H |
| 23 | |
| 24 | #include "linklist.h" |
| 25 | |
| 26 | /* |
| 27 | Interface name length. |
| 28 | |
| 29 | Linux define value in /usr/include/linux/if.h. |
| 30 | #define IFNAMSIZ 16 |
| 31 | |
| 32 | FreeBSD define value in /usr/include/net/if.h. |
| 33 | #define IFNAMSIZ 16 |
| 34 | */ |
| 35 | |
| 36 | #define INTERFACE_NAMSIZ 20 |
| 37 | #define INTERFACE_HWADDR_MAX 20 |
| 38 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 39 | #ifdef HAVE_PROC_NET_DEV |
| 40 | struct if_stats |
| 41 | { |
| 42 | unsigned long rx_packets; /* total packets received */ |
| 43 | unsigned long tx_packets; /* total packets transmitted */ |
| 44 | unsigned long rx_bytes; /* total bytes received */ |
| 45 | unsigned long tx_bytes; /* total bytes transmitted */ |
| 46 | unsigned long rx_errors; /* bad packets received */ |
| 47 | unsigned long tx_errors; /* packet transmit problems */ |
| 48 | unsigned long rx_dropped; /* no space in linux buffers */ |
| 49 | unsigned long tx_dropped; /* no space available in linux */ |
| 50 | unsigned long rx_multicast; /* multicast packets received */ |
| 51 | unsigned long rx_compressed; |
| 52 | unsigned long tx_compressed; |
| 53 | unsigned long collisions; |
| 54 | |
| 55 | /* detailed rx_errors: */ |
| 56 | unsigned long rx_length_errors; |
| 57 | unsigned long rx_over_errors; /* receiver ring buff overflow */ |
| 58 | unsigned long rx_crc_errors; /* recved pkt with crc error */ |
| 59 | unsigned long rx_frame_errors; /* recv'd frame alignment error */ |
| 60 | unsigned long rx_fifo_errors; /* recv'r fifo overrun */ |
| 61 | unsigned long rx_missed_errors; /* receiver missed packet */ |
| 62 | /* detailed tx_errors */ |
| 63 | unsigned long tx_aborted_errors; |
| 64 | unsigned long tx_carrier_errors; |
| 65 | unsigned long tx_fifo_errors; |
| 66 | unsigned long tx_heartbeat_errors; |
| 67 | unsigned long tx_window_errors; |
| 68 | }; |
| 69 | #endif /* HAVE_PROC_NET_DEV */ |
| 70 | |
| 71 | /* Interface structure */ |
| 72 | struct interface |
| 73 | { |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 74 | /* Interface name. This should probably never be changed after the |
| 75 | interface is created, because the configuration info for this interface |
| 76 | is associated with this structure. For that reason, the interface |
| 77 | should also never be deleted (to avoid losing configuration info). |
| 78 | To delete, just set ifindex to IFINDEX_INTERNAL to indicate that the |
| 79 | interface does not exist in the kernel. |
| 80 | */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 81 | char name[INTERFACE_NAMSIZ + 1]; |
| 82 | |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 83 | /* Interface index (should be IFINDEX_INTERNAL for non-kernel or |
| 84 | deleted interfaces). */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 85 | unsigned int ifindex; |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 86 | #define IFINDEX_INTERNAL 0 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 87 | |
| 88 | /* Zebra internal interface status */ |
| 89 | u_char status; |
| 90 | #define ZEBRA_INTERFACE_ACTIVE (1 << 0) |
| 91 | #define ZEBRA_INTERFACE_SUB (1 << 1) |
paul | 2e3b2e4 | 2002-12-13 21:03:13 +0000 | [diff] [blame] | 92 | #define ZEBRA_INTERFACE_LINKDETECTION (1 << 2) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 93 | |
| 94 | /* Interface flags. */ |
paul | c77d454 | 2006-01-11 01:59:04 +0000 | [diff] [blame] | 95 | uint64_t flags; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 96 | |
| 97 | /* Interface metric */ |
| 98 | int metric; |
| 99 | |
| 100 | /* Interface MTU. */ |
paul | c9eca01 | 2004-10-11 11:28:44 +0000 | [diff] [blame] | 101 | unsigned int mtu; /* IPv4 MTU */ |
| 102 | unsigned int mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 103 | |
| 104 | /* Hardware address. */ |
Paul Jakma | 6f0e3f6 | 2007-05-10 02:38:51 +0000 | [diff] [blame] | 105 | #ifdef HAVE_STRUCT_SOCKADDR_DL |
David Lamparter | ca3ccd8 | 2012-09-26 14:52:39 +0200 | [diff] [blame] | 106 | union { |
| 107 | /* note that sdl_storage is never accessed, it only exists to make space. |
| 108 | * all actual uses refer to sdl - but use sizeof(sdl_storage)! this fits |
| 109 | * best with C aliasing rules. */ |
| 110 | struct sockaddr_dl sdl; |
| 111 | struct sockaddr_storage sdl_storage; |
| 112 | }; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 113 | #else |
| 114 | unsigned short hw_type; |
| 115 | u_char hw_addr[INTERFACE_HWADDR_MAX]; |
| 116 | int hw_addr_len; |
Paul Jakma | 6f0e3f6 | 2007-05-10 02:38:51 +0000 | [diff] [blame] | 117 | #endif /* HAVE_STRUCT_SOCKADDR_DL */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 118 | |
| 119 | /* interface bandwidth, kbits */ |
| 120 | unsigned int bandwidth; |
| 121 | |
| 122 | /* description of the interface. */ |
| 123 | char *desc; |
| 124 | |
| 125 | /* Distribute list. */ |
| 126 | void *distribute_in; |
| 127 | void *distribute_out; |
| 128 | |
| 129 | /* Connected address list. */ |
hasso | 52dc7ee | 2004-09-23 19:18:23 +0000 | [diff] [blame] | 130 | struct list *connected; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 131 | |
| 132 | /* Daemon specific interface data pointer. */ |
| 133 | void *info; |
| 134 | |
| 135 | /* Statistics fileds. */ |
| 136 | #ifdef HAVE_PROC_NET_DEV |
| 137 | struct if_stats stats; |
| 138 | #endif /* HAVE_PROC_NET_DEV */ |
| 139 | #ifdef HAVE_NET_RT_IFLIST |
| 140 | struct if_data stats; |
| 141 | #endif /* HAVE_NET_RT_IFLIST */ |
Feng Lu | 2fc97f6 | 2015-05-22 11:39:57 +0200 | [diff] [blame] | 142 | |
| 143 | vrf_id_t vrf_id; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 144 | }; |
| 145 | |
| 146 | /* Connected address structure. */ |
| 147 | struct connected |
| 148 | { |
| 149 | /* Attached interface. */ |
| 150 | struct interface *ifp; |
| 151 | |
| 152 | /* Flags for configuration. */ |
| 153 | u_char conf; |
| 154 | #define ZEBRA_IFC_REAL (1 << 0) |
| 155 | #define ZEBRA_IFC_CONFIGURED (1 << 1) |
Christian Franke | f7f740f | 2013-01-24 14:04:48 +0000 | [diff] [blame] | 156 | #define ZEBRA_IFC_QUEUED (1 << 2) |
Andrew J. Schorr | 9c37851 | 2006-05-21 04:04:49 +0000 | [diff] [blame] | 157 | /* |
| 158 | The ZEBRA_IFC_REAL flag should be set if and only if this address |
Christian Franke | f7f740f | 2013-01-24 14:04:48 +0000 | [diff] [blame] | 159 | exists in the kernel and is actually usable. (A case where it exists but |
| 160 | is not yet usable would be IPv6 with DAD) |
Andrew J. Schorr | 9c37851 | 2006-05-21 04:04:49 +0000 | [diff] [blame] | 161 | The ZEBRA_IFC_CONFIGURED flag should be set if and only if this address |
| 162 | was configured by the user from inside quagga. |
Christian Franke | f7f740f | 2013-01-24 14:04:48 +0000 | [diff] [blame] | 163 | The ZEBRA_IFC_QUEUED flag should be set if and only if the address exists |
| 164 | in the kernel. It may and should be set although the address might not be |
| 165 | usable yet. (compare with ZEBRA_IFC_REAL) |
Andrew J. Schorr | 9c37851 | 2006-05-21 04:04:49 +0000 | [diff] [blame] | 166 | */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 167 | |
| 168 | /* Flags for connected address. */ |
| 169 | u_char flags; |
Andrew J. Schorr | e452963 | 2006-12-12 19:18:21 +0000 | [diff] [blame] | 170 | #define ZEBRA_IFA_SECONDARY (1 << 0) |
| 171 | #define ZEBRA_IFA_PEER (1 << 1) |
| 172 | /* N.B. the ZEBRA_IFA_PEER flag should be set if and only if |
| 173 | a peer address has been configured. If this flag is set, |
| 174 | the destination field must contain the peer address. |
| 175 | Otherwise, if this flag is not set, the destination address |
| 176 | will either contain a broadcast address or be NULL. |
| 177 | */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 178 | |
| 179 | /* Address of connected network. */ |
| 180 | struct prefix *address; |
Andrew J. Schorr | e452963 | 2006-12-12 19:18:21 +0000 | [diff] [blame] | 181 | |
| 182 | /* Peer or Broadcast address, depending on whether ZEBRA_IFA_PEER is set. |
| 183 | Note: destination may be NULL if ZEBRA_IFA_PEER is not set. */ |
| 184 | struct prefix *destination; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 185 | |
| 186 | /* Label for Linux 2.2.X and upper. */ |
| 187 | char *label; |
| 188 | }; |
| 189 | |
Andrew J. Schorr | e452963 | 2006-12-12 19:18:21 +0000 | [diff] [blame] | 190 | /* Does the destination field contain a peer address? */ |
| 191 | #define CONNECTED_PEER(C) CHECK_FLAG((C)->flags, ZEBRA_IFA_PEER) |
hasso | 3fb9cd6 | 2004-10-19 19:44:43 +0000 | [diff] [blame] | 192 | |
Andrew J. Schorr | e452963 | 2006-12-12 19:18:21 +0000 | [diff] [blame] | 193 | /* Prefix to insert into the RIB */ |
| 194 | #define CONNECTED_PREFIX(C) \ |
| 195 | (CONNECTED_PEER(C) ? (C)->destination : (C)->address) |
| 196 | |
| 197 | /* Identifying address. We guess that if there's a peer address, but the |
| 198 | local address is in the same prefix, then the local address may be unique. */ |
| 199 | #define CONNECTED_ID(C) \ |
| 200 | ((CONNECTED_PEER(C) && !prefix_match((C)->destination, (C)->address)) ?\ |
| 201 | (C)->destination : (C)->address) |
hasso | 3fb9cd6 | 2004-10-19 19:44:43 +0000 | [diff] [blame] | 202 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 203 | /* Interface hook sort. */ |
| 204 | #define IF_NEW_HOOK 0 |
| 205 | #define IF_DELETE_HOOK 1 |
| 206 | |
| 207 | /* There are some interface flags which are only supported by some |
| 208 | operating system. */ |
| 209 | |
| 210 | #ifndef IFF_NOTRAILERS |
| 211 | #define IFF_NOTRAILERS 0x0 |
| 212 | #endif /* IFF_NOTRAILERS */ |
| 213 | #ifndef IFF_OACTIVE |
| 214 | #define IFF_OACTIVE 0x0 |
| 215 | #endif /* IFF_OACTIVE */ |
| 216 | #ifndef IFF_SIMPLEX |
| 217 | #define IFF_SIMPLEX 0x0 |
| 218 | #endif /* IFF_SIMPLEX */ |
| 219 | #ifndef IFF_LINK0 |
| 220 | #define IFF_LINK0 0x0 |
| 221 | #endif /* IFF_LINK0 */ |
| 222 | #ifndef IFF_LINK1 |
| 223 | #define IFF_LINK1 0x0 |
| 224 | #endif /* IFF_LINK1 */ |
| 225 | #ifndef IFF_LINK2 |
| 226 | #define IFF_LINK2 0x0 |
| 227 | #endif /* IFF_LINK2 */ |
paul | 4ba9b92 | 2004-12-21 22:34:58 +0000 | [diff] [blame] | 228 | #ifndef IFF_NOXMIT |
| 229 | #define IFF_NOXMIT 0x0 |
| 230 | #endif /* IFF_NOXMIT */ |
| 231 | #ifndef IFF_NORTEXCH |
| 232 | #define IFF_NORTEXCH 0x0 |
| 233 | #endif /* IFF_NORTEXCH */ |
| 234 | #ifndef IFF_IPV4 |
| 235 | #define IFF_IPV4 0x0 |
| 236 | #endif /* IFF_IPV4 */ |
| 237 | #ifndef IFF_IPV6 |
| 238 | #define IFF_IPV6 0x0 |
| 239 | #endif /* IFF_IPV6 */ |
| 240 | #ifndef IFF_VIRTUAL |
| 241 | #define IFF_VIRTUAL 0x0 |
| 242 | #endif /* IFF_VIRTUAL */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 243 | |
| 244 | /* Prototypes. */ |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 245 | extern int if_cmp_func (struct interface *, struct interface *); |
| 246 | extern struct interface *if_create (const char *name, int namelen); |
| 247 | extern struct interface *if_lookup_by_index (unsigned int); |
| 248 | extern struct interface *if_lookup_exact_address (struct in_addr); |
| 249 | extern struct interface *if_lookup_address (struct in_addr); |
Dinesh Dutt | b81e97a | 2013-08-24 07:55:50 +0000 | [diff] [blame] | 250 | extern struct interface *if_lookup_prefix (struct prefix *prefix); |
ajs | a349198 | 2005-04-02 22:50:38 +0000 | [diff] [blame] | 251 | |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 252 | extern struct interface *if_create_vrf (const char *name, int namelen, |
| 253 | vrf_id_t vrf_id); |
| 254 | extern struct interface *if_lookup_by_index_vrf (unsigned int, |
| 255 | vrf_id_t vrf_id); |
| 256 | extern struct interface *if_lookup_exact_address_vrf (struct in_addr, |
| 257 | vrf_id_t vrf_id); |
| 258 | extern struct interface *if_lookup_address_vrf (struct in_addr, |
| 259 | vrf_id_t vrf_id); |
| 260 | extern struct interface *if_lookup_prefix_vrf (struct prefix *prefix, |
| 261 | vrf_id_t vrf_id); |
| 262 | |
ajs | 08dbfb6 | 2005-04-03 03:40:52 +0000 | [diff] [blame] | 263 | /* These 2 functions are to be used when the ifname argument is terminated |
| 264 | by a '\0' character: */ |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 265 | extern struct interface *if_lookup_by_name (const char *ifname); |
| 266 | extern struct interface *if_get_by_name (const char *ifname); |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 267 | |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 268 | extern struct interface *if_lookup_by_name_vrf (const char *ifname, |
| 269 | vrf_id_t vrf_id); |
| 270 | extern struct interface *if_get_by_name_vrf (const char *ifname, |
| 271 | vrf_id_t vrf_id); |
| 272 | |
ajs | 08dbfb6 | 2005-04-03 03:40:52 +0000 | [diff] [blame] | 273 | /* For these 2 functions, the namelen argument should be the precise length |
| 274 | of the ifname string (not counting any optional trailing '\0' character). |
| 275 | In most cases, strnlen should be used to calculate the namelen value. */ |
| 276 | extern struct interface *if_lookup_by_name_len(const char *ifname, |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 277 | size_t namelen); |
| 278 | extern struct interface *if_get_by_name_len(const char *ifname,size_t namelen); |
| 279 | |
| 280 | extern struct interface *if_lookup_by_name_len_vrf(const char *ifname, |
| 281 | size_t namelen, vrf_id_t vrf_id); |
| 282 | extern struct interface *if_get_by_name_len_vrf(const char *ifname, |
| 283 | size_t namelen, vrf_id_t vrf_id); |
ajs | a349198 | 2005-04-02 22:50:38 +0000 | [diff] [blame] | 284 | |
| 285 | |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 286 | /* Delete the interface, but do not free the structure, and leave it in the |
| 287 | interface list. It is often advisable to leave the pseudo interface |
| 288 | structure because there may be configuration information attached. */ |
| 289 | extern void if_delete_retain (struct interface *); |
| 290 | |
| 291 | /* Delete and free the interface structure: calls if_delete_retain and then |
| 292 | deletes it from the interface list and frees the structure. */ |
| 293 | extern void if_delete (struct interface *); |
| 294 | |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 295 | extern int if_is_up (struct interface *); |
| 296 | extern int if_is_running (struct interface *); |
| 297 | extern int if_is_operative (struct interface *); |
| 298 | extern int if_is_loopback (struct interface *); |
| 299 | extern int if_is_broadcast (struct interface *); |
| 300 | extern int if_is_pointopoint (struct interface *); |
| 301 | extern int if_is_multicast (struct interface *); |
| 302 | extern void if_add_hook (int, int (*)(struct interface *)); |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 303 | extern void if_init (vrf_id_t, struct list **); |
| 304 | extern void if_terminate (vrf_id_t, struct list **); |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 305 | extern void if_dump_all (void); |
ajs | 847947f | 2005-02-02 18:38:48 +0000 | [diff] [blame] | 306 | extern const char *if_flag_dump(unsigned long); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 307 | |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 308 | /* Please use ifindex2ifname instead of if_indextoname where possible; |
| 309 | ifindex2ifname uses internal interface info, whereas if_indextoname must |
| 310 | make a system call. */ |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 311 | extern const char *ifindex2ifname (unsigned int); |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 312 | extern const char *ifindex2ifname_vrf (unsigned int, vrf_id_t vrf_id); |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 313 | |
| 314 | /* Please use ifname2ifindex instead of if_nametoindex where possible; |
| 315 | ifname2ifindex uses internal interface info, whereas if_nametoindex must |
| 316 | make a system call. */ |
| 317 | extern unsigned int ifname2ifindex(const char *ifname); |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 318 | extern unsigned int ifname2ifindex_vrf(const char *ifname, vrf_id_t vrf_id); |
ajs | d2fc889 | 2005-04-02 18:38:43 +0000 | [diff] [blame] | 319 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 320 | /* Connected address functions. */ |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 321 | extern struct connected *connected_new (void); |
| 322 | extern void connected_free (struct connected *); |
| 323 | extern void connected_add (struct interface *, struct connected *); |
| 324 | extern struct connected *connected_add_by_prefix (struct interface *, |
paul | 4a7aac1 | 2004-05-08 05:00:31 +0000 | [diff] [blame] | 325 | struct prefix *, |
| 326 | struct prefix *); |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 327 | extern struct connected *connected_delete_by_prefix (struct interface *, |
paul | 4a7aac1 | 2004-05-08 05:00:31 +0000 | [diff] [blame] | 328 | struct prefix *); |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 329 | extern struct connected *connected_lookup_address (struct interface *, |
paul | 4a7aac1 | 2004-05-08 05:00:31 +0000 | [diff] [blame] | 330 | struct in_addr); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 331 | |
| 332 | #ifndef HAVE_IF_NAMETOINDEX |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 333 | extern unsigned int if_nametoindex (const char *); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 334 | #endif |
| 335 | #ifndef HAVE_IF_INDEXTONAME |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 336 | extern char *if_indextoname (unsigned int, char *); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 337 | #endif |
| 338 | |
| 339 | /* Exported variables. */ |
hasso | 52dc7ee | 2004-09-23 19:18:23 +0000 | [diff] [blame] | 340 | extern struct list *iflist; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 341 | extern struct cmd_element interface_desc_cmd; |
| 342 | extern struct cmd_element no_interface_desc_cmd; |
| 343 | extern struct cmd_element interface_cmd; |
paul | 32d2463 | 2003-05-23 09:25:20 +0000 | [diff] [blame] | 344 | extern struct cmd_element no_interface_cmd; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 345 | extern struct cmd_element interface_pseudo_cmd; |
| 346 | extern struct cmd_element no_interface_pseudo_cmd; |
Paul Jakma | 478ccfd | 2006-03-06 18:18:37 +0000 | [diff] [blame] | 347 | extern struct cmd_element show_address_cmd; |
Feng Lu | 5a5702f | 2015-05-22 11:39:59 +0200 | [diff] [blame^] | 348 | extern struct cmd_element show_address_vrf_cmd; |
| 349 | extern struct cmd_element show_address_vrf_all_cmd; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 350 | |
| 351 | #endif /* _ZEBRA_IF_H */ |