Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (797 Bytes)

1 2d140452 Martin Mares
/*
2
 *        BIRD -- Linux Kernel Netlink Route Syncer -- Scanning
3
 *
4 aa8761de Martin Mares
 *        (c) 1998--2000 Martin Mares <mj@ucw.cz>
5 2d140452 Martin Mares
 *
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 4532a89e Martin Mares
#ifdef IPV6
19
#define NL_NUM_TABLES 1
20
#else
21
#define NL_NUM_TABLES 256
22
#endif
23
24 2d140452 Martin Mares
struct krt_scan_params {
25 7de45ba4 Martin Mares
  int table_id;                                /* Kernel table ID we sync with */
26 2d140452 Martin Mares
};
27
28
struct krt_scan_status {
29
  list temp_ifs;                        /* Temporary interfaces */
30
};
31
32 aa8761de Martin Mares
static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n)
33
{
34 b6c9d8eb Martin Mares
  return o->table_id == n->table_id;
35 aa8761de Martin Mares
}
36
37 2d140452 Martin Mares
#endif