1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Added skeleton of static route protocol.

This commit is contained in:
Martin Mares
1998-12-06 18:21:23 +00:00
parent 980ffedbb0
commit a1bf6440b5
8 changed files with 149 additions and 1 deletions

30
proto/static/static.h Normal file
View File

@@ -0,0 +1,30 @@
/*
* BIRD -- Static Route Generator
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRD_STATIC_H_
#define _BIRD_STATIC_H_
struct static_proto {
struct proto p;
list routes;
};
void static_init_instance(struct static_proto *);
struct static_route {
node n;
u32 net; /* Network we route */
int masklen; /* Mask length */
int dest; /* Destination type (RTD_*) */
u32 via; /* Destination router */
struct neighbor *neigh;
/* FIXME: Device routes, maybe via device patterns? */
/* FIXME: More route attributes, probably via filter syntax */
};
#endif