Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / linux / netlink / krt-scan.h @ b6c9d8eb

History | View | Annotate | Download (797 Bytes)

1
/*
2
 *        BIRD -- Linux Kernel Netlink Route Syncer -- Scanning
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_SCAN_H_
10
#define _BIRD_KRT_SCAN_H_
11

    
12
/*
13
 *  We don't have split iface/scan/set for Netlink. All options
14
 *  and run-time parameters are declared here instead of splitting
15
 *  to krt-set.h, krt-iface.h and this file.
16
 */
17

    
18
#ifdef IPV6
19
#define NL_NUM_TABLES 1
20
#else
21
#define NL_NUM_TABLES 256
22
#endif
23

    
24
struct krt_scan_params {
25
  int table_id;                                /* Kernel table ID we sync with */
26
};
27

    
28
struct krt_scan_status {
29
  list temp_ifs;                        /* Temporary interfaces */
30
};
31

    
32
static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n)
33
{
34
  return o->table_id == n->table_id;
35
}
36

    
37
#endif