diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-09-18 17:29:00 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-09-18 17:50:45 +0200 |
commit | c0fc3e67185c1e0ff2d083572c6ad3983ba4ef25 (patch) | |
tree | 9fe17603f4fec18b7f9fbd8d8efc1f13a9bef8ee /sysdep/unix/unix.h | |
parent | afa14f1868f2c753efdc81ce8e2c2d44e6bdd80e (diff) |
The MRT protocol
The new MRT protocol is responsible for periodic RIB table dumps in the
MRT format (RFC 6396). Also the existing code for BGP4MP MRT dumps is
refactored and splitted between BGP to MRT protocols, will be more
integrated into MRT in the future.
Example:
protocol mrt {
table "*";
filename "%N_%F_%T.mrt";
period 60;
}
It is partially based on the old MRT code from Pavel Tvrdik.
Diffstat (limited to 'sysdep/unix/unix.h')
-rw-r--r-- | sysdep/unix/unix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 3ef2e3ef..6a05718c 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -14,6 +14,7 @@ struct pool; struct iface; struct birdsock; +struct rfile; /* main.c */ @@ -103,7 +104,9 @@ void io_init(void); void io_loop(void); void io_log_dump(void); int sk_open_unix(struct birdsock *s, char *name); -void *tracked_fopen(struct pool *, char *name, char *mode); +struct rfile *rf_open(struct pool *, char *name, char *mode); +void *rf_file(struct rfile *f); +int rf_fileno(struct rfile *f); void test_old_bird(char *path); |