Statistics
| Branch: | Revision:

iof-bird-daemon / proto / static / static.h @ feed8226

History | View | Annotate | Download (888 Bytes)

1
/*
2
 *        BIRD -- Static Route Generator
3
 *
4
 *        (c) 1998 Martin Mares <mj@ucw.cz>
5
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
#ifndef _BIRD_STATIC_H_
10
#define _BIRD_STATIC_H_
11

    
12
struct static_config {
13
  struct proto_config c;
14
  list iface_routes;                        /* Routes to search on interface events */
15
  list other_routes;                        /* Routes hooked to neighbor cache and reject routes */
16
};
17

    
18
void static_init_config(struct static_config *);
19

    
20
struct static_route {
21
  node n;
22
  struct static_route *chain;                /* Next for the same neighbor */
23
  ip_addr net;                                /* Network we route */
24
  int masklen;                                /* Mask length */
25
  int dest;                                /* Destination type (RTD_*) */
26
  ip_addr via;                                /* Destination router */
27
  struct neighbor *neigh;
28
  byte *if_name;                        /* Name for RTD_DEVICE routes */
29
  int installed;                        /* Installed in master table */
30
};
31

    
32
void static_show(struct proto *);
33

    
34
#endif