From a1bf6440b5c27f7fb829eb25f6ac1c2629eb72eb Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 6 Dec 1998 18:21:23 +0000 Subject: Added skeleton of static route protocol. --- proto/static/static.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 proto/static/static.h (limited to 'proto/static/static.h') diff --git a/proto/static/static.h b/proto/static/static.h new file mode 100644 index 0000000..df18c13 --- /dev/null +++ b/proto/static/static.h @@ -0,0 +1,30 @@ +/* + * BIRD -- Static Route Generator + * + * (c) 1998 Martin Mares + * + * 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 -- cgit v1.2.3