1999-03-04 03:49:56 +08:00
|
|
|
/*
|
|
|
|
* BIRD -- Linux Kernel Netlink Route Syncer -- Scanning
|
|
|
|
*
|
|
|
|
* (c) 1998--1999 Martin Mares <mj@ucw.cz>
|
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BIRD_KRT_SCAN_H_
|
|
|
|
#define _BIRD_KRT_SCAN_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We don't have split iface/scan/set for Netlink. All options
|
|
|
|
* and run-time parameters are declared here instead of splitting
|
|
|
|
* to krt-set.h, krt-iface.h and this file.
|
|
|
|
*/
|
|
|
|
|
1999-08-04 03:37:37 +08:00
|
|
|
#ifdef IPV6
|
|
|
|
#define NL_NUM_TABLES 1
|
|
|
|
#else
|
|
|
|
#define NL_NUM_TABLES 256
|
|
|
|
#endif
|
|
|
|
|
1999-03-04 03:49:56 +08:00
|
|
|
struct krt_scan_params {
|
|
|
|
int async; /* Allow asynchronous events */
|
1999-08-04 03:33:22 +08:00
|
|
|
int table_id; /* Kernel table ID we sync with */
|
1999-03-04 03:49:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct krt_scan_status {
|
|
|
|
list temp_ifs; /* Temporary interfaces */
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|