--- embedaddon/mpd/src/proto.c 2013/07/22 08:44:29 1.1.1.1 +++ embedaddon/mpd/src/proto.c 2021/03/17 00:39:23 1.1.1.2 @@ -53,7 +53,7 @@ /* * These are other protocols we recognize but don't use - * Reference: ftp://ftp.isi.edu/in-notes/iana/assignments/ppp-numbers + * Reference: http://www.iana.org/assignments/ppp-numbers/ppp-numbers.xhtml */ static const struct protoname protoNames[] = { @@ -61,6 +61,8 @@ /* Network layer protocols */ { 0x0001, "Padding Protocol" }, + { 0x0002, "ROHC small-CID" }, + { 0x0005, "ROHC large-CID" }, { 0x0021, "Internet Protocol" }, { 0x0023, "OSI Network Layer" }, { 0x0025, "Xerox NS IDP" }, @@ -88,8 +90,8 @@ { 0x0051, "KNX Bridging Data" }, { 0x0053, "Encryption" }, { 0x0055, "Individual Link Encryption" }, - { 0x0057, "IPv6 over PPP" }, - { 0x0059, "PPP Multiplexing (RFC 3153)" }, + { 0x0057, "Internet Protocol version 6" }, + { 0x0059, "PPP Muxing (RFC 3153)" }, { 0x005b, "Vendor-Specific Network Protocol" }, { 0x005d, "TRILL Network Protocol (TNP)" }, { 0x0061, "RTP IPHC Full Header" }, @@ -102,17 +104,21 @@ { 0x0073, "MP+ Protocol" }, { 0x007d, "reserved (Control Escape) (RFC 1661)" }, { 0x007f, "reserved (compression inefficient) (RFC 1662)" }, + { 0x0081, "Unassigned" }, + { 0x0083, "Unassigned" }, { 0x00c1, "NTCITS IPI" }, - { 0x00cf, "reserved (PPP NLPID)" }, - { 0x00fb, "compression on single link in multilink group" }, - { 0x00fd, "1st choice compression (RFC 1962)" }, - { 0x00ff, "reserved" }, + { 0x00cf, "Reserved (PPP NLPID)" }, + { 0x00fb, "Single link compression in multilink" }, + { 0x00fd, "Compressed datagram" }, + { 0x00ff, "Reserved (compression inefficient)" }, { 0x0201, "802.1d Hello Packets (RFC 1220)" }, { 0x0203, "IBM Source Routing BPDU" }, { 0x0205, "DEC LANBridge100 Spanning Tree" }, { 0x0207, "Cisco Discovery Protocol" }, { 0x0209, "Netcs Twin Routing" }, + { 0x020b, "STP - Scheduled Transfer Protocol" }, + { 0x020d, "EDP - Extreme Discovery Protocol" }, { 0x0211, "Optical Supervisory Channel Protocol (OSCP)" }, { 0x0213, "Optical Supervisory Channel Protocol (OSCP)" }, { 0x0231, "Luxcom" }, @@ -131,7 +137,16 @@ { 0x4001, "Cray Communications Control Protocol" }, { 0x4003, "CDPD Mobile Network Registration Protocol" }, + { 0x4005, "Expand accelerator protocol" }, + { 0x4007, "ODSICP NCP" }, + { 0x4009, "DOCSIS DLL" }, + { 0x400b, "Cetacean Network Detection Protocol" }, { 0x4021, "Stacker LZS" }, + { 0x4023, "RefTek Protocol" }, + { 0x4025, "Fibre Channel" }, + { 0x4027, "OpenDOF" }, + { 0x405b, "Vendor-Specific Protocol (VSP)" }, + { 0x405d, "TRILL Link State Protocol (TLSP)" }, /* Network layer control protocols */ @@ -141,14 +156,14 @@ { 0x8027, "DECnet Phase IV Control Protocol" }, { 0x8029, "Appletalk Control Protocol" }, { 0x802b, "Novell IPX Control Protocol" }, - { 0x802d, "reserved" }, - { 0x802f, "reserved" }, + { 0x802d, "Reserved" }, + { 0x802f, "Reserved" }, { 0x8031, "Bridging NCP" }, { 0x8033, "Stream Protocol Control Protocol" }, { 0x8035, "Banyan Vines Control Protocol" }, - { 0x8037, "reserved till 1993" }, - { 0x8039, "reserved" }, - { 0x803b, "reserved" }, + { 0x8037, "Unassigned" }, + { 0x8039, "Reserved" }, + { 0x803b, "Reserved" }, { 0x803d, "Multi-Link Control Protocol" }, { 0x803f, "NETBIOS Framing Control Protocol" }, { 0x8041, "Cisco Systems Control Protocol" }, @@ -163,13 +178,18 @@ { 0x8053, "Encryption Control Protocol" }, { 0x8055, "Individual Link Encryption Control Protocol" }, { 0x8057, "IPv6 PPP Control Protocol" }, + { 0x8059, "PPP Muxing Control Protocol" }, + { 0x805b, "Vendor-Specific Network Control Protocol (VSNCP)" }, + { 0x805d, "TRILL Network Control Protocol (TNCP)" }, { 0x806f, "Stampede Bridging Control Protocol" }, { 0x8071, "BACP Bandwidth Allocation Control Protocol" }, { 0x8073, "MP+ Control Protocol" }, { 0x807d, "Not Used - reserved" }, + { 0x8081, "Unassigned" }, + { 0x8083, "Unassigned" }, { 0x80c1, "NTCITS IPI Control Protocol" }, { 0x80cf, "Not Used - reserved" }, - { 0x80fb, "compression on single link in multilink group control" }, + { 0x80fb, "single link compression in multilink control" }, { 0x80fd, "Compression Control Protocol" }, { 0x80ff, "Not Used - reserved" }, @@ -191,13 +211,14 @@ { 0xc025, "Link Quality Report" }, { 0xc027, "Shiva Password Authentication Protocol" }, { 0xc029, "CallBack Control Protocol (CBCP)" }, - { 0xc02B, "PPP Bandwidth Allocation Control Protocol (RFC 2125)" }, - { 0xc02D, "PPP Bandwidth Allocation Protocol (RFC 2125)" }, - { 0xc05B, "Vendor-Specific Authentication Protocol (RFC 3772)" }, + { 0xc02b, "BACP Bandwidth Allocation Control Protocol (RFC 2125)" }, + { 0xc02d, "BAP (RFC 2125)" }, + { 0xc05b, "Vendor-Specific Authentication Protocol (RFC 3772)" }, { 0xc081, "Container Control Protocol", }, { 0xc223, "Challenge Handshake Authentication Protocol" }, { 0xc225, "RSA Authentication Protocol" }, { 0xc227, "Extensible Authentication Protocol" }, + { 0xc229, "Mitsubishi Security Info Exch Ptcl (SIEP)" }, { 0xc26f, "Stampede Bridging Authorization Protocol" }, { 0xc281, "Proprietary Authentication Protocol", }, { 0xc283, "Proprietary Authentication Protocol", }, @@ -222,7 +243,7 @@ const char * ProtoName(int proto) { - int k; + unsigned k; static char buf[20]; struct protoname key, *pn; @@ -251,8 +272,8 @@ ProtoName(int proto) static int ProtoNameCmp(const void *v1, const void *v2) { - struct protoname *const p1 = (struct protoname *) v1; - struct protoname *const p2 = (struct protoname *) v2; + const struct protoname *const p1 = (const struct protoname *) v1; + const struct protoname *const p2 = (const struct protoname *) v2; return(p1->proto - p2->proto); }