Revision c01a9466 sysdep/bsd/krt-sys.h

View differences:

sysdep/bsd/krt-sys.h
9 9
#ifndef _BIRD_KRT_SYS_H_
10 10
#define _BIRD_KRT_SYS_H_
11 11

  
12
struct birdsock;
12 13

  
13 14
/* Kernel interfaces */
14 15

  
......
30 31

  
31 32
/* Kernel routes */
32 33

  
34
extern int krt_max_tables;
35

  
33 36
struct krt_params {
37
  int table_id;				/* Kernel table ID we sync with */
34 38
};
35 39

  
36 40
struct krt_state {
41
  struct birdsock *sk;
37 42
};
38 43

  
39 44

  
40 45
static inline void krt_sys_init(struct krt_proto *p UNUSED) { }
41
static inline int krt_sys_reconfigure(struct krt_proto *p UNUSED, struct krt_config *n UNUSED, struct krt_config *o UNUSED) { return 1; }
42

  
43
static inline void krt_sys_preconfig(struct config *c UNUSED) { }
44
static inline void krt_sys_postconfig(struct krt_config *c UNUSED) { }
45
static inline void krt_sys_init_config(struct krt_config *c UNUSED) { }
46
static inline void krt_sys_copy_config(struct krt_config *d UNUSED, struct krt_config *s UNUSED) { }
47 46

  
48 47

  
49 48
#endif

Also available in: Unified diff