summaryrefslogtreecommitdiff
path: root/sysdep/unix/main.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-01 10:19:47 +0000
committerMartin Mares <mj@ucw.cz>2000-04-01 10:19:47 +0000
commit3991d84e8fa9118a43149d4d3304726eb786bd46 (patch)
treea1fdbcdb43b3bc63f228593f017f0389c09f3d0f /sysdep/unix/main.c
parentf8809249906811683e7e8d2a7b8cdcccde86742a (diff)
Changed initialization of protocol list -- now we call proto_build() instead
of calling the protocols manually. Implemented printing of dynamic attributes in `show route all'. Each protocol can now register its own attribute class (protocol->attr_class, set to EAP_xxx) and also a callback for naming and formatting of attributes. The callback can return one of the following results: GA_UNKNOWN Attribute not recognized. GA_NAME Attribute name recognized and put to the buffer, generic code should format the value. GA_FULL Both attribute name and value put to the buffer. Please update protocols generating dynamic attributes to provide the attr_class and formatting hook.
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r--sysdep/unix/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 121ec9dc..39ac3521 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -400,8 +400,8 @@ main(int argc, char **argv)
if_init();
protos_build();
- add_tail(&protocol_list, &proto_unix_kernel.n);
- add_tail(&protocol_list, &proto_unix_iface.n);
+ proto_build(&proto_unix_kernel);
+ proto_build(&proto_unix_iface);
read_config();