]> git.ipfire.org Git - thirdparty/bird.git/blame - sysdep/linux/krt-sys.h
Last state change should track protocol state change.
[thirdparty/bird.git] / sysdep / linux / krt-sys.h
CommitLineData
95616c82
OZ
1/*
2 * BIRD -- Linux Kernel Netlink Route Syncer
3 *
4 * (c) 1998--2000 Martin Mares <mj@ucw.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
12
13/* Kernel interfaces */
14
15struct kif_params {
16};
17
c6964c30 18struct kif_state {
95616c82
OZ
19};
20
21
22static inline void kif_sys_init(struct kif_proto *p UNUSED) { }
23static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; }
24
25static inline void kif_sys_preconfig(struct config *c UNUSED) { }
26static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { }
27static inline void kif_sys_init_config(struct kif_config *c UNUSED) { }
28static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { }
29
30
31/* Kernel routes */
32
33#define NL_NUM_TABLES 256
34
35struct krt_params {
36 int table_id; /* Kernel table ID we sync with */
37};
38
c6964c30 39struct krt_state {
95616c82
OZ
40};
41
42
43static inline void krt_sys_init(struct krt_proto *p UNUSED) { }
44
45
46#endif