📄 mpls2tn.h
字号:
#ifndef MPLS_2_TN_H
#define MPLS_2_TN_H
#include "protocol/h/exec_cmd.h"
extern unsigned char globalModule[SDP_TELNET_NUMBER_PERMIT]; /* 全局变量,在端口状态用于记录模块号、端口号、虚端口号 ,非端口状态则为0*/
extern unsigned char globalPort[SDP_TELNET_NUMBER_PERMIT];
extern unsigned short globalIfIndex[SDP_TELNET_NUMBER_PERMIT];
/* Begin command function of mpls SBP */
int16 mpls_ldp_tunnel_port(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_discovery_trans_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_control_mode(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_aggregate(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_egress_targeted_proxy(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_maxhops(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_loopdetection(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_discovery_holdtime(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ldp_holdtime(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ip_default(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_tunnel_loadshare(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_ip_if_default_3(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_lsr_id(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_lsp_filter_tunnel(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_address(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_port(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_phyport(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_dscp(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_protocol_type(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_filter_tos(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_qos_filter_delete(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_router_te(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_crlsp_nextaddr_lasthop(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_crlsp_nextaddr_lasthop_loose_strict(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_crlsp_nextaddr_loose_strict(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_crlsp_nextaddr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_frequency(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_weight(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_pdr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_cdr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_pbs(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_cbs(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_traffic_ebs(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_crlsp_lspid(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_tunnel_destination(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_tunnel_path_option(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_lsp_resource(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_atm_eth_pos_interface_2(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_preemt(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_mpls_traffic_eng_configuration_single(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_mpls_traffic_eng_configuration(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_tunnel_traffic_eng_backup(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_tunnel_traffic_eng_metric(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
/* End command function of mpls SBP */
int16 cmd_mpls_policy_permit_32(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_permit_for(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_permit_to(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_deny_any(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_deny_30(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_deny_for(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_deny_to(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_policy_egress_to(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
/* Begin show command function of mpls SBP */
int16 sdp_sh_mpls_entitystats_all(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_entity_stats_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_entity_stats_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_back_off_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_back_off_all(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_show_mpls_lib_remote_atm(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_show_mpls_lib_remote_general(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_param_detail(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_param_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_peer_detail(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_peer_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_peer_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_stats_detail(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_stats_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_stats_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_detail(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_session_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_discovery(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_adjacency_by_detail(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_adjacency_by_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_ldp_adjacency_by_addr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_interface_type_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_interface_type_all(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_transport_addr_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_transport_addr_all(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_bandwidth_if(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_bandwidth_system(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 showMplsLdpAtmLabelPort(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 showMplsLdpAtmLabelAll(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 showMplsAtmLdpCapability(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sdp_sh_mpls_interface_config(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sh_mpls_api(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 sh_mpls_debug(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
/* End show command function of mpls SBP */
/* Begin check function of mpls command SBP */
int16 sdp_check_ethernet_module_port_no(int8 * number);
int16 sdp_check_atm_module_port_no(int8 * number);
int16 sdp_check_pos_module_port_no(int8 * number);
int16 sdp_check_tunnel_traffic_cbs(int8 * number);
int16 sdp_check_tunnel_traffic_cdr(int8 * number);
int16 mplsTunnelTrafficHelpfunc(struct sty *sty,int16 ResMsgNo);
void mplsIfDelete(unsigned char module,unsigned char port);
/* End check function of mpls command SBP */
int16 sdp_show_mpls_fwd(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_encapsulation(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);/*2004-4-2 lixia add*/
int16 cmd_mpls_policy_enable(struct sty *sty,SDP_PARAM_STRU* para,int16 no_flag,int16 telnet_num); /*2003-11-10 lixia add*/
int16 cmd_mpls_abort_timer(struct sty *sty,SDP_PARAM_STRU* para,int16 no_flag,int16 telnet_num); /*2003-11-10 lixia add*/
int16 cmd_mpls_set_nodetype(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
int16 cmd_mpls_set_cr(struct sty *sty,SDP_PARAM_STRU *para_group,int16 is_no,int16 telnet_num);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -