]> git.proxmox.com Git - mirror_frr.git/blame - zebra/kernel_socket.h
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / zebra / kernel_socket.h
CommitLineData
ec1a4283 1/*
2 * Exported kernel_socket functions, exported only for convenience of
3 * sysctl methods.
4 *
5 * This file is part of Quagga.
6 *
7 * Quagga 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 * Quagga 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
ec1a4283 20 */
21
22#ifndef __ZEBRA_KERNEL_SOCKET_H
23#define __ZEBRA_KERNEL_SOCKET_H
24
51e94aa7
EDP
25#ifdef __cplusplus
26extern "C" {
27#endif
28
94ed344a
DS
29/* Error codes of zebra. */
30#define ZEBRA_ERR_NOERROR 0
31#define ZEBRA_ERR_RTEXIST -1
32#define ZEBRA_ERR_RTUNREACH -2
33#define ZEBRA_ERR_EPERM -3
34#define ZEBRA_ERR_RTNOEXIST -4
35#define ZEBRA_ERR_KERNEL -5
36
d62a17ae 37extern void rtm_read(struct rt_msghdr *);
38extern int ifam_read(struct ifa_msghdr *);
39extern int ifm_read(struct if_msghdr *);
40extern int rtm_write(int, union sockunion *, union sockunion *,
a8309422
DL
41 union sockunion *, union sockunion *, unsigned int,
42 enum blackhole_type, int);
1423c809 43extern const struct message rtm_type_str[];
ec1a4283 44
51e94aa7
EDP
45#ifdef __cplusplus
46}
47#endif
48
ec1a4283 49#endif /* __ZEBRA_KERNEL_SOCKET_H */