mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-10 05:08:42 +00:00
3d23e41dcb
Implicitly define rtables 'local4' and 'local6' and a pair of direct protocols to fill them. Use modified net_route() for neighbor lookup to avoid iterating over all interfaces.
29 lines
578 B
C
29 lines
578 B
C
/*
|
|
* BIRD -- Direct Device Routes
|
|
*
|
|
* (c) 1998--1999 Martin Mares <mj@ucw.cz>
|
|
*
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
*/
|
|
|
|
#ifndef _BIRD_RT_DEV_H_
|
|
#define _BIRD_RT_DEV_H_
|
|
|
|
struct rt_dev_config {
|
|
struct proto_config c;
|
|
list iface_list; /* list of struct iface_patt */
|
|
int check_link;
|
|
int host_ip; /* Annunce local IP instead of prefix */
|
|
|
|
struct channel_config *ip4_channel;
|
|
struct channel_config *ip6_channel;
|
|
};
|
|
|
|
struct rt_dev_proto {
|
|
struct proto p;
|
|
struct channel *ip4_channel;
|
|
struct channel *ip6_channel;
|
|
};
|
|
|
|
#endif
|