📄 cmds.h
字号:
/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/router/cmds.h,v 1.2 2001/11/09 21:06:48 josh Exp $ *//* * Copyright (C) 1999-2005 Wind River Systems, Inc. * All rights reserved. Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//**************************************************************************** * Copyright 1994-1997 Epilogue Technology Corporation. * Copyright 1998 Integrated Systems, Inc. * All rights reserved. ****************************************************************************//* * $Log: cmds.h,v $ * Revision 1.2 2001/11/09 21:06:48 josh * demo router path modification * * Revision 1.1.1.1 2001/11/05 17:49:09 tneale * Tornado shuffle * * Revision 2.10 2001/05/10 15:45:51 paul * Removed tcptest. * * Revision 2.9 2001/01/19 22:24:36 paul * Update copyright. * * Revision 2.8 2000/03/17 00:14:17 meister * Update copyright message * * Revision 2.7 1999/04/29 22:31:22 wes * Beginnings of a test to exercise random dark corners/error cases in * the tcp API. * * Revision 2.6 1999/04/15 21:43:39 wes * Fix SNARK_ATTACHE_34_DNS_COMPAT to continue working.. * * Revision 2.5 1998/12/02 18:07:17 josh * additions to allow dynamic adding/deleting of IP addresses * * Revision 2.4 1998/10/28 18:51:04 josh * marging in courier-sep98 branch * * Revision 2.3.4.2 1998/09/11 18:53:49 sra * Second batch of updates from Josh and Shukri. * * Revision 2.3.4.1 1998/09/11 05:50:30 sra * Initial commit on courier-sep98 branch. * * Revision 2.3 1998/06/25 21:31:12 wes * Add command to start/stop/abort DHCP from the command line * * Revision 2.2 1998/06/22 22:17:11 meister * include sty.h * * Revision 2.1 1998/04/09 22:00:23 wes * Start splitting main.c into app-specific files; add netime client * *//* [clearcase]modification history-------------------01a,19apr05,job update copyright notices*/#if INSTALL_ATTACHE_DNS#include <wrn/wm/attache/dns.h>#include <wrn/wm/demo/sty.h>/* Print DNS error to `sty'.. */void display_dns_error(struct sty *, struct dns_query *, enum dns_error);#if INSTALL_SNARK_ATTACHE_34_DNS_COMPATextern void snark_attache_dns_34_compat (void (*handler)(struct dns_query *, char *, int, ipaddr_t [], void *), struct dns_query *query, char *dname, int n, inaddr_t addrs[], void *cookie);#define DNS_NAME_TO_IPADDR(x1, x2, x3, x4, x5, x6) \ dns_name_to_address(x1, x2 ## _compat , x3, x4, x5, x6)#else /* INSTALL_SNARK_ATTACHE_34_DNS_COMPAT */#define DNS_NAME_TO_IPADDR dns_name_to_ipaddr#endif /* INSTALL_SNARK_ATTACHE_34_DNS_COMPAT */#endif /* INSTALL_ATTACHE_DNS */enum help_level { help_none, help_short, help_long };extern char *prompt;void do_cmd(struct sty *, char *, void *);/* command-related prototypes */boolean_t cmd_tftp (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_netime (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_dhcp (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_add_address (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_delete_address(struct sty *sty, enum help_level help, int argc, char **argv);#if INSTALL_COURIER#if INSTALL_COURIER_RIPboolean_t cmd_rip_get_export_template (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_get_import_template (struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_add_export_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_add_export_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_add_import_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_add_import_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_delete_export_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_delete_export_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_delete_import_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_rip_delete_import_template(struct sty *sty, enum help_level help, int argc, char **argv);#endif#if INSTALL_COURIER_OSPFboolean_t cmd_ospf_add_export_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_add_export_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_add_import_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_add_import_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_delete_export_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_delete_export_template(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_delete_import_filter(struct sty *sty, enum help_level help, int argc, char **argv);boolean_t cmd_ospf_delete_import_template(struct sty *sty, enum help_level help, int argc, char **argv);#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -