]> git.ipfire.org Git - thirdparty/bird.git/blame - sysdep/bsd/krt-sys.h
Netlink: Allow more than 256 routing tables.
[thirdparty/bird.git] / sysdep / bsd / krt-sys.h
CommitLineData
95616c82
OZ
1/*
2 * BIRD -- *BSD Kernel Route Syncer
3 *
4 * (c) 2004 Ondrej Filip <feela@network.cz>
5 *
6 * Can be freely distributed and used under the terms of the GNU GPL.
7 */
8
9#ifndef _BIRD_KRT_SYS_H_
10#define _BIRD_KRT_SYS_H_
11
c01a9466 12struct birdsock;
95616c82
OZ
13
14/* Kernel interfaces */
15
16struct kif_params {
17};
18
c6964c30 19struct kif_state {
95616c82
OZ
20};
21
22
23static inline void kif_sys_init(struct kif_proto *p UNUSED) { }
24static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; }
25
26static inline void kif_sys_preconfig(struct config *c UNUSED) { }
27static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { }
28static inline void kif_sys_init_config(struct kif_config *c UNUSED) { }
29static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { }
30
31
32/* Kernel routes */
33
c01a9466
OZ
34extern int krt_max_tables;
35
95616c82 36struct krt_params {
c01a9466 37 int table_id; /* Kernel table ID we sync with */
95616c82
OZ
38};
39
c6964c30 40struct krt_state {
c01a9466 41 struct birdsock *sk;
95616c82
OZ
42};
43
44
9ddbfbdd 45static inline void krt_sys_io_init(void) { }
95616c82 46static inline void krt_sys_init(struct krt_proto *p UNUSED) { }
95616c82 47
9fdf9d29
OZ
48static inline int krt_sys_get_attr(eattr *a UNUSED, byte *buf UNUSED, int buflen UNUSED) { }
49
95616c82
OZ
50
51#endif