krt-sys.h 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 *	BIRD -- *BSD Kernel Route Syncer
 *
 *	(c) 2004 Ondrej Filip <feela@network.cz>
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */

#ifndef _BIRD_KRT_SYS_H_
#define _BIRD_KRT_SYS_H_

12
struct birdsock;
13 14 15 16 17 18

/* Kernel interfaces */

struct kif_params {
};

19
struct kif_state {
20 21 22 23 24 25 26 27 28 29 30 31 32 33
};


static inline void kif_sys_init(struct kif_proto *p UNUSED) { }
static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; }

static inline void kif_sys_preconfig(struct config *c UNUSED) { }
static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { }
static inline void kif_sys_init_config(struct kif_config *c UNUSED) { }
static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { }


/* Kernel routes */

34 35
extern int krt_max_tables;

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

40
struct krt_state {
41
  struct birdsock *sk;
42 43 44
};


45
static inline void krt_sys_io_init(void) { }
46 47
static inline void krt_sys_init(struct krt_proto *p UNUSED) { }

48
static inline int krt_sys_get_attr(eattr *a UNUSED, byte *buf UNUSED, int buflen UNUSED) { return 0; }
49

50 51

#endif