0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00
bird/nest/rt-dev.h
Ondrej Zajicek (work) 3d23e41dcb Nest: Use rtable for neighbor lookup
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.
2019-05-31 21:23:32 +02:00

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