Added get_route_info and show_route_data hooks to struct protocol.
Please implement them.
This commit is contained in:
parent
f611f0ee82
commit
04a60c689a
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ struct protocol {
|
||||||
int (*start)(struct proto *); /* Start the instance */
|
int (*start)(struct proto *); /* Start the instance */
|
||||||
int (*shutdown)(struct proto *); /* Stop the instance */
|
int (*shutdown)(struct proto *); /* Stop the instance */
|
||||||
void (*get_status)(struct proto *, byte *buf); /* Get instance status (for `show protocols' command) */
|
void (*get_status)(struct proto *, byte *buf); /* Get instance status (for `show protocols' command) */
|
||||||
|
void (*get_route_info)(struct rte *, byte *buf); /* Get route information (for `show route' command) */
|
||||||
|
void (*show_route_data)(struct rte *); /* Print verbose route information (`show route' again) */
|
||||||
};
|
};
|
||||||
|
|
||||||
void protos_build(void);
|
void protos_build(void);
|
||||||
|
|
Loading…
Reference in a new issue