diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-13 12:26:26 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-13 12:26:26 +0100 |
commit | dca75fd7c207f0bfc627cb6b74a484da3b27e05f (patch) | |
tree | c8e2f7469e10bb692c3b09b3735b90883318180b /nest/proto-hooks.c | |
parent | 9db74169be76f658df2207d1ec99eac48fa36f5f (diff) | |
download | bird-dca75fd7c207f0bfc627cb6b74a484da3b27e05f.tar bird-dca75fd7c207f0bfc627cb6b74a484da3b27e05f.zip |
Removes phantom protocol from the pipe design.
It seems that by adding one pipe-specific exception to route
announcement code and by adding one argument to rt_notify() callback i
could completely eliminate the need for the phantom protocol instance
and therefore make the code more straightforward. It will also fix some
minor bugs (like ignoring debug flag changes from the command line).
Diffstat (limited to 'nest/proto-hooks.c')
-rw-r--r-- | nest/proto-hooks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/proto-hooks.c b/nest/proto-hooks.c index c30b107..3d19e3f 100644 --- a/nest/proto-hooks.c +++ b/nest/proto-hooks.c @@ -178,13 +178,14 @@ void ifa_notify(struct proto *p, unsigned flags, struct ifa *a) /** * rt_notify - notify instance about routing table change * @p: protocol instance + * @table: a routing table * @net: a network entry * @new: new route for the network * @old: old route for the network * @attrs: extended attributes associated with the @new entry * * The rt_notify() hook is called to inform the protocol instance about - * changes in the routing table it's connected to, that is a route @old + * changes in the connected routing table @table, that is a route @old * belonging to network @net being replaced by a new route @new with * extended attributes @attrs. Either @new or @old or both can be %NULL * if the corresponding route doesn't exist. |