📄 protocol_numbers.h
字号:
#ifndef __PROTOCOL_NUMBERS_DEFINED
#define __PROTOCOL_NUMBERS_DEFINED
typedef struct ip_protocol{
//const char number;
const char *protocol;
}IP_PROTOCOL_NUMBER;
IP_PROTOCOL_NUMBER ip_protocol_number [] ={
"HOPOPT IPv6 Hop-by-Hop Option [RFC1883]",
"ICMP Internet Control Message [RFC792]",
"IGMP //Internet Group Management [RFC1112]",
"GGP //Gateway-to-Gateway [RFC823]",
"IP //IP in IP (encapsulation) [RFC2003]",
"ST //Stream [RFC1190,RFC1819]",
"TCP //Transmission Control [RFC793]",
"CBT //CBT [Ballardie]",
"EGP //Exterior Gateway Protocol [RFC888,DLM1]",
"IGP //any private interior gateway (used by Cisco for their IGRP) [IANA]",
"BBN-RCC-MON //BBN RCC Monitoring [SGC]",
"NVP-II //Network Voice Protocol [RFC741,SC3]",
"PUP //PUP [PUP,XEROX]",
"ARGUS //ARGUS [RWS4]",
"EMCON //EMCON [BN7]",
"XNET //Cross Net Debugger [IEN158,JFH2]",
"CHAOS //Chaos [NC3]",
"UDP //User Datagram [RFC768,JBP]",
"MUX //Multiplexing [IEN90,JBP]",
"DCN-MEAS //DCN Measurement Subsystems [DLM1]",
"HMP //Host Monitoring [RFC869,RH6]",
"PRM //Packet Radio Measurement [ZSU]",
"XNS-IDP //XEROX NS IDP [ETHERNET,XEROX]",
"TRUNK-1 //Trunk-1 [BWB6]",
"TRUNK-2 //Trunk-2 [BWB6]",
"LEAF-1 //Leaf-1 [BWB6]",
"LEAF-2 //Leaf-2 [BWB6]",
"RDP //Reliable Data Protocol [RFC908,RH6]",
"IRTP //Internet Reliable Transaction [RFC938,TXM]",
"ISO-TP4 //ISO Transport Protocol Class 4 [RFC905,RC77]",
"NETBLT //Bulk Data Transfer Protocol [RFC969,DDC1]",
"MFE-NSP //MFE Network Services Protocol [MFENET,BCH2]",
"MERIT-INP //MERIT Internodal Protocol [HWB]",
"SEP //Sequential Exchange Protocol [JC120]",
"3PC //Third Party Connect Protocol [SAF3]",
"IDPR //Inter-Domain Policy Routing Protocol [MXS1]",
"XTP //XTP [GXC]",
"DDP //Datagram Delivery Protocol [WXC]",
"IDPR-CMTP //IDPR Control Message Transport Proto [MXS1]",
" TP++ //TP++ Transport Protocol [DXF]",
"IL //IL Transport Protocol [Presotto]",
"IPv6 //Ipv6 [Deering]",
"SDRP //Source Demand Routing Protocol [DXE1]",
"IPv6-Route //Routing Header for IPv6 [Deering]",
"IPv6-Frag //Fragment Header for IPv6 [Deering]",
"IDRP //Inter-Domain Routing Protocol [Sue Hares]",
"RSVP //Reservation Protocol [Bob Braden]",
"GRE //General Routing Encapsulation [Tony Li]",
"MHRP //Mobile Host Routing Protocol[David Johnson]",
"BNA //BNA [Gary Salamon]",
"ESP //Encap Security Payload [RFC2406]",
"AH //Authentication Header [RFC2402]",
"I-NLSP //Integrated Net Layer Security TUBA [GLENN]",
"SWIPE //IP with Encryption [JI6]",
"NARP //NBMA Address Resolution Protocol [RFC1735]",
"MOBILE //IP Mobility [Perkins]",
"TLSP Transport Layer Security Protocol using Kryptonet key management [Oberg]",
"SKIP //SKIP [Markson]",
"IPv6-ICMP //ICMP for IPv6 [RFC1883]",
"IPv6-NoNxt //No Next Header for IPv6 [RFC1883]",
"IPv6-Opts //Destination Options for IPv6 [RFC1883]",
"any host internal protocol [IANA]",
"CFTP //CFTP [CFTP,HCF2]",
"any local network [IANA]",
"SAT-EXPAK //SATNET and Backroom EXPAK [SHB]",
"KRYPTOLAN //Kryptolan [PXL1]",
"RVD //MIT Remote Virtual Disk Protocol [MBG]",
"IPPC //Internet Pluribus Packet Core [SHB]",
"any distributed file system [IANA]",
"SAT-MON //SATNET Monitoring [SHB]",
"VISA //VISA Protocol [GXT1]",
"IPCV //Internet Packet Core Utility [SHB]",
"CPNX //Computer Protocol Network Executive [DXM2]",
"CPHB //Computer Protocol Heart Beat [DXM2]",
"WSN //Wang Span Network [VXD]",
"PVP //Packet Video Protocol [SC3]",
"BR-SAT-MON //Backroom SATNET Monitoring [SHB]",
"SUN-ND //SUN ND PROTOCOL-Temporary [WM3]",
"WB-MON //WIDEBAND Monitoring [SHB]",
"WB-EXPAK //WIDEBAND EXPAK [SHB]",
"ISO-IP //ISO Internet Protocol [MTR]",
"VMTP //VMTP [DRC3]",
"SECURE-VMTP //SECURE-VMTP [DRC3]",
"VINES //VINES [BXH]",
"TTP //TTP [JXS]",
"NSFNET-IGP //NSFNET-IGP [HWB]",
"DGP //Dissimilar Gateway Protocol [DGP,ML109]",
"TCF //TCF [GAL5]",
"EIGRP //EIGRP [CISCO,GXS]",
"OSPFIGP //OSPFIGP [RFC1583,JTM4]",
"Sprite-RPC //Sprite RPC Protocol [SPRITE,BXW]",
"LARP //Locus Address Resolution Protocol [BXH]",
"MTP //Multicast Transport Protocol [SXA]",
"AX.25 //AX.25 Frames [BK29]",
"IPIP //IP-within-IP Encapsulation Protocol [JI6]",
"MICP //Mobile Internetworking Control Pro. [JI6]",
"SCC-SP //Semaphore Communications Sec. Pro. [HXH]",
"ETHERIP //Ethernet-within-IP Encapsulation [RFC3378]",
"ENCAP //Encapsulation Header [RFC1241,RXB3]",
"any private encryption scheme [IANA]",
"GMTP //GMTP [RXB5]",
"IFMP //Ipsilon Flow Management Protocol [Hinden]",
"PNNI //PNNI over IP [Callon]",
"PIM //Protocol Independent Multicast [Farinacci]",
"ARIS //ARIS [Feldman]",
"SCPS //SCPS [Durst]",
"QNX //QNX [Hunter]",
"A/N //Active Networks [Braden]",
"IPComp //IP Payload Compression Protocol [RFC2393]",
"SNP //Sitara Networks Protocol [Sridhar]",
"Compaq-Peer //Compaq Peer Protocol [Volpe]",
"IPX-in-IP //IPX in IP [Lee]",
"VRRP //Virtual Router Redundancy Protocol [RFC3768]",
"PGM //PGM Reliable Transport Protocol [Speakman]",
"any 0-hop protocol [IANA]",
"L2TP //Layer Two Tunneling Protocol [Aboba]",
"DDX // D-II Data Exchange (DDX) [Worley]",
"IATP //Interactive Agent Transfer Protocol [Murphy]",
"STP //Schedule Transfer Protocol [JMP]",
"SRP //SpectraLink Radio Protocol [Hamilton]",
"UTI //UTI [Lothberg]",
"SMP //Simple Message Protocol [Ekblad]",
"SM //SM [Crowcroft]",
"PTP // Performance Transparency Protocol [Welzl]",
"ISIS over IPv4 // [Przygienda]",
"FIRE // [Partridge]",
"CRTP //Combat Radio Transport Protocol [Sautter]",
"CRUDP //Combat Radio User Datagram [Sautter]",
"SSCOPMCE //[Waber]",
"IPLT //[Hollbach]",
"SPS //Secure Packet Shield [McIntosh]",
"PIPE // Private IP Encapsulation within IP [Petri]",
"SCTP //Stream Control Transmission Protocol [Stewart]",
"FC //Fibre Channel [Rajagopal]",
"RSVP-E2E-IGNORE //[RFC3175]",
"Mobility Header // [RFC3775]",
"UDPLite //[RFC3828]",
"MPLS-in-IP //[RFC-ietf-mls-in-ip-or-gre-08.txt]"
/* sorry :-( not in this version implemented
138-252 Unassigned // [IANA]",
"Use for experimentation and testing // [RFC3692]" ,
"Use for experimentation and testing // [RFC3692]" ,
"Reserved
*/
};
typedef struct MAC_protocol{
u16 number;
const char *protocol;
}MAC_PROTOCOL_NUMBER;
/*
Ethernet Exp. Ethernet Description References
------------- ------------- ----------- ----------
decimal Hex decimal octal*/
MAC_PROTOCOL_NUMBER mac_protocol_number [] ={
0x0000,"0000-05DC Bytes IEEE802.3 Length Field [XEROX]",
0x0101,"0101-01FF Bytes Experimental [XEROX]",
0x0200,"XEROX PUP (see 0A00) [8,XEROX]",
0x0201,"PUP Addr Trans (see 0A01)[XEROX]",
0x0400,"Nixdorf [XEROX]",
0x0600,"XEROX NS IDP [133,XEROX]",
0x0660,"DLOG [XEROX]",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -