]> git.proxmox.com Git - mirror_frr.git/blame - zebra/kernel_socket.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / zebra / kernel_socket.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
ec1a4283 2/*
3 * Exported kernel_socket functions, exported only for convenience of
4 * sysctl methods.
ec1a4283 5 */
6
7#ifndef __ZEBRA_KERNEL_SOCKET_H
8#define __ZEBRA_KERNEL_SOCKET_H
9
51e94aa7
EDP
10#ifdef __cplusplus
11extern "C" {
12#endif
13
94ed344a
DS
14/* Error codes of zebra. */
15#define ZEBRA_ERR_NOERROR 0
16#define ZEBRA_ERR_RTEXIST -1
17#define ZEBRA_ERR_RTUNREACH -2
18#define ZEBRA_ERR_EPERM -3
19#define ZEBRA_ERR_RTNOEXIST -4
20#define ZEBRA_ERR_KERNEL -5
21
d62a17ae 22extern void rtm_read(struct rt_msghdr *);
23extern int ifam_read(struct ifa_msghdr *);
24extern int ifm_read(struct if_msghdr *);
25extern int rtm_write(int, union sockunion *, union sockunion *,
a8309422
DL
26 union sockunion *, union sockunion *, unsigned int,
27 enum blackhole_type, int);
1423c809 28extern const struct message rtm_type_str[];
ec1a4283 29
51e94aa7
EDP
30#ifdef __cplusplus
31}
32#endif
33
ec1a4283 34#endif /* __ZEBRA_KERNEL_SOCKET_H */