Revision 725270cb proto/static/static.c

View differences:

proto/static/static.c
9 9
/**
10 10
 * DOC: Static
11 11
 *
12
 * The Static protocol is implemented in a very straightforward way. It keeps
13
 * a two lists of static routes: one containing interface routes and one
12
 * The Static protocol is implemented in a straightforward way. It keeps
13
 * two lists of static routes: one containing interface routes and one
14 14
 * holding the remaining ones. Interface routes are inserted and removed according
15
 * to interface events received from the core via the if_notify() hook, routes
15
 * to interface events received from the core via the if_notify() hook. Routes
16 16
 * pointing to a neighboring router use a sticky node in the neighbor cache
17
 * to be notified about gaining or losing the neighbor and finally special
17
 * to be notified about gaining or losing the neighbor. Special
18 18
 * routes like black holes or rejects are inserted all the time.
19 19
 *
20 20
 * The only other thing worth mentioning is that when asked for reconfiguration,
21 21
 * Static not only compares the two configurations, but it also calculates
22
 * difference between the lists of static routes mentioned in the old config
23
 * and the lists in the new one and it just inserts the newly added routes
24
 * and removes the obsolete ones.
22
 * difference between the lists of static routes and it just inserts the
23
 * newly added routes and removes the obsolete ones.
25 24
 */
26 25

  
27 26
#undef LOCAL_DEBUG

Also available in: Unified diff