mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Implemented eval command can be used to evaluate expressions. The patch also documents echo command and allows to use log classes instead of integer as a mask for echo.
		
			
				
	
	
		
			20 lines
		
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  *	BIRD Internet Routing Daemon -- CLI Commands Which Don't Fit Anywhere Else
 | |
|  *
 | |
|  *	(c) 2000 Martin Mares <mj@ucw.cz>
 | |
|  *
 | |
|  *	Can be freely distributed and used under the terms of the GNU GPL.
 | |
|  */
 | |
| 
 | |
| struct sym_show_data {
 | |
| 	int	type;	/* Symbols type to show */
 | |
| 	struct symbol	*sym;
 | |
| };
 | |
| 
 | |
| struct f_inst;
 | |
| 
 | |
| void cmd_show_status(void);
 | |
| void cmd_show_symbols(struct sym_show_data *sym);
 | |
| void cmd_show_memory(void);
 | |
| void cmd_eval(struct f_inst *expr);
 |