]> git.proxmox.com Git - mirror_frr.git/blob - zebra/kernel_socket.h
debian: add pkg-config to build-depends
[mirror_frr.git] / zebra / kernel_socket.h
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 *
17 * You should have received a copy of the GNU General Public License
18 * along with Quagga; see the file COPYING. If not, write to the Free
19 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
21 */
22
23 #ifndef __ZEBRA_KERNEL_SOCKET_H
24 #define __ZEBRA_KERNEL_SOCKET_H
25
26 /* Error codes of zebra. */
27 #define ZEBRA_ERR_NOERROR 0
28 #define ZEBRA_ERR_RTEXIST -1
29 #define ZEBRA_ERR_RTUNREACH -2
30 #define ZEBRA_ERR_EPERM -3
31 #define ZEBRA_ERR_RTNOEXIST -4
32 #define ZEBRA_ERR_KERNEL -5
33
34 extern void rtm_read(struct rt_msghdr *);
35 extern int ifam_read(struct ifa_msghdr *);
36 extern int ifm_read(struct if_msghdr *);
37 extern int rtm_write(int, union sockunion *, union sockunion *,
38 union sockunion *, union sockunion *, unsigned int, int,
39 int);
40 extern const struct message rtm_type_str[];
41
42 #endif /* __ZEBRA_KERNEL_SOCKET_H */