mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-10 05:08:42 +00:00
a7f23f581f
Based on the patch from Alexander V. Chernikov. Extended to support almost all protocols. Uses 'protocol bgp NAME from TEMPLATE { ... }' syntax.
37 lines
904 B
C
37 lines
904 B
C
/*
|
|
* BIRD -- Linux Kernel Netlink Route Syncer -- Scanning
|
|
*
|
|
* (c) 1998--2000 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.
|
|
*/
|
|
|
|
#define NL_NUM_TABLES 256
|
|
|
|
struct krt_scan_params {
|
|
int table_id; /* Kernel table ID we sync with */
|
|
};
|
|
|
|
struct krt_scan_status {
|
|
list temp_ifs; /* Temporary interfaces */
|
|
};
|
|
|
|
static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n)
|
|
{
|
|
return o->table_id == n->table_id;
|
|
}
|
|
|
|
static inline void krt_scan_copy_params(struct krt_scan_params *d UNUSED, struct krt_scan_params *s UNUSED) { }
|
|
/* table_id copied in krt_copy_config() */
|
|
|
|
#endif
|