Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / linux / krt-sys.h @ 48e5f32d

History | View | Annotate | Download (1.09 KB)

1 95616c82 Ondrej Zajicek
/*
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
15
struct kif_params {
16
};
17
18 c6964c30 Ondrej Zajicek
struct kif_state {
19 95616c82 Ondrej Zajicek
};
20
21
22
static inline void kif_sys_init(struct kif_proto *p UNUSED) { }
23
static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; }
24
25
static inline void kif_sys_preconfig(struct config *c UNUSED) { }
26
static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { }
27
static inline void kif_sys_init_config(struct kif_config *c UNUSED) { }
28
static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { }
29
30 e237b28a Ondrej Zajicek
static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; }
31
32 95616c82 Ondrej Zajicek
33
/* Kernel routes */
34
35
#define NL_NUM_TABLES 256
36
37
struct krt_params {
38
  int table_id;                                /* Kernel table ID we sync with */
39
};
40
41 c6964c30 Ondrej Zajicek
struct krt_state {
42 95616c82 Ondrej Zajicek
};
43
44
45
static inline void krt_sys_init(struct krt_proto *p UNUSED) { }
46
47
48
#endif