-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmdcodes.h
20 lines (17 loc) · 1.05 KB
/
cmdcodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Created by Ben on 7/17/22.
//
#ifndef TCP_IP_CMDCODES_H
#define TCP_IP_CMDCODES_H
#define CMDCODE_SHOW_NW_TOPOLOGY 1
#define CMDCODE_PING 2 /*run <node-name> ping <ip-address>*/
#define CMDCODE_SHOW_NODE_ARP_TABLE 3 /*show node <node-name> arp*/
#define CMDCODE_RUN_ARP 4 /*run node <node-name> resolve-arp <ip-address>*/
#define CMDCODE_INTF_CONFIG_L2_MODE 5 /*config node <node-name> interface <intf-name> l2mode <access|trunk>*/
#define CMDCODE_INTF_CONFIG_IP_ADDR 6 /*config node <node-name> interface <intf-name> ip-address <ip-address> <mask>*/
#define CMDCODE_INTF_CONFIG_VLAN 7 /*config node <node-name> interface <intf-name> vlan <vlan-id>*/
#define CMDCODE_SHOW_NODE_MAC_TABLE 8 /*show node <node-name> mac*/
#define CMDCODE_SHOW_NODE_RT_TABLE 9 /*show node <node-name> rt*/
#define CMDCODE_CONF_NODE_L3ROUTE 10 /*config node <node-name> route <ip-address> <mask> [<gw-ip> <oif>]*/
#define CMDCODE_ERO_PING 11 /*run <node-name> ping <ip-address> ero <ero-ip-address>*/
#endif //TCP_IP_CMDCODES_H