]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zserv.h
1 /* Zebra daemon server header.
2 * Copyright (C) 1997, 98 Kunihiro Ishiguro
4 * This file is part of GNU Zebra.
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
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.
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 Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 #ifndef _ZEBRA_ZSERV_H
23 #define _ZEBRA_ZSERV_H
27 /* Default port information. */
28 #define ZEBRA_PORT 2600
29 #define ZEBRA_VTY_PORT 2601
31 /* Default configuration filename. */
32 #define DEFAULT_CONFIG_FILE "zebra.conf"
34 /* Client structure. */
37 /* Client file descriptor. */
40 /* Input/output buffer to the client. */
44 /* Buffer of data waiting to be written to client. */
47 /* Threads for read/write. */
48 struct thread
*t_read
;
49 struct thread
*t_write
;
51 /* Thread for delayed close. */
52 struct thread
*t_suicide
;
54 /* default routing table this client munges */
57 /* This client's redistribute flag. */
58 u_char redist
[ZEBRA_ROUTE_MAX
];
60 /* Redistribute default route flag. */
61 u_char redist_default
;
63 /* Interface information. */
66 /* Router-id information. */
74 struct thread_master
*master
;
75 struct list
*client_list
;
78 int rtm_table_default
;
82 /* Count prefix size from mask length */
83 #define PSIZE(a) (((a) + 7) / (8))
87 void zebra_if_init ();
90 void interface_list ();
94 void zebra_snmp_init ();
96 int zsend_interface_add (struct zserv
*, struct interface
*);
97 #if (defined(RTM_IFANNOUNCE) || defined(HAVE_NETLINK))
98 int zsend_interface_delete (struct zserv
*, struct interface
*);
100 int zsend_interface_address (int, struct zserv
*, struct interface
*,
102 int zsend_interface_update (int, struct zserv
*, struct interface
*);
103 int zsend_route_multipath (int, struct zserv
*, struct prefix
*, struct rib
*);
104 int zsend_router_id_update(struct zserv
*, struct prefix
*);
107 extern pid_t old_pid
;
109 #endif /* _ZEBRA_ZEBRA_H */