packages: sort network related packages into package/network/
[openwrt/svn-archive/archive.git] / package / network / services / ppp / patches / 404-remove_obsolete_protocol_names.patch
1 pppd: Remove historical protocol names
2
3 Remove a number of historical protocol entries from pppd's builtin list, this
4 reduced the binary size without loss of features.
5
6 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
7
8 --- a/pppd/main.c
9 +++ b/pppd/main.c
10 @@ -882,14 +882,17 @@ struct protocol_list {
11 const char *name;
12 } protocol_list[] = {
13 { 0x21, "IP" },
14 +#if 0
15 { 0x23, "OSI Network Layer" },
16 { 0x25, "Xerox NS IDP" },
17 { 0x27, "DECnet Phase IV" },
18 { 0x29, "Appletalk" },
19 { 0x2b, "Novell IPX" },
20 +#endif
21 { 0x2d, "VJ compressed TCP/IP" },
22 { 0x2f, "VJ uncompressed TCP/IP" },
23 { 0x31, "Bridging PDU" },
24 +#if 0
25 { 0x33, "Stream Protocol ST-II" },
26 { 0x35, "Banyan Vines" },
27 { 0x39, "AppleTalk EDDP" },
28 @@ -903,8 +906,11 @@ struct protocol_list {
29 { 0x49, "Serial Data Transport Protocol (PPP-SDTP)" },
30 { 0x4b, "SNA over 802.2" },
31 { 0x4d, "SNA" },
32 +#endif
33 { 0x4f, "IP6 Header Compression" },
34 +#if 0
35 { 0x51, "KNX Bridging Data" },
36 +#endif
37 { 0x53, "Encryption" },
38 { 0x55, "Individual Link Encryption" },
39 { 0x57, "IPv6" },
40 @@ -915,12 +921,15 @@ struct protocol_list {
41 { 0x65, "RTP IPHC Compressed non-TCP" },
42 { 0x67, "RTP IPHC Compressed UDP 8" },
43 { 0x69, "RTP IPHC Compressed RTP 8" },
44 +#if 0
45 { 0x6f, "Stampede Bridging" },
46 { 0x73, "MP+" },
47 { 0xc1, "NTCITS IPI" },
48 +#endif
49 { 0xfb, "single-link compression" },
50 { 0xfd, "Compressed Datagram" },
51 { 0x0201, "802.1d Hello Packets" },
52 +#if 0
53 { 0x0203, "IBM Source Routing BPDU" },
54 { 0x0205, "DEC LANBridge100 Spanning Tree" },
55 { 0x0207, "Cisco Discovery Protocol" },
56 @@ -932,15 +941,19 @@ struct protocol_list {
57 { 0x0231, "Luxcom" },
58 { 0x0233, "Sigma Network Systems" },
59 { 0x0235, "Apple Client Server Protocol" },
60 +#endif
61 { 0x0281, "MPLS Unicast" },
62 { 0x0283, "MPLS Multicast" },
63 +#if 0
64 { 0x0285, "IEEE p1284.4 standard - data packets" },
65 { 0x0287, "ETSI TETRA Network Protocol Type 1" },
66 +#endif
67 { 0x0289, "Multichannel Flow Treatment Protocol" },
68 { 0x2063, "RTP IPHC Compressed TCP No Delta" },
69 { 0x2065, "RTP IPHC Context State" },
70 { 0x2067, "RTP IPHC Compressed UDP 16" },
71 { 0x2069, "RTP IPHC Compressed RTP 16" },
72 +#if 0
73 { 0x4001, "Cray Communications Control Protocol" },
74 { 0x4003, "CDPD Mobile Network Registration Protocol" },
75 { 0x4005, "Expand accelerator protocol" },
76 @@ -951,8 +964,10 @@ struct protocol_list {
77 { 0x4023, "RefTek Protocol" },
78 { 0x4025, "Fibre Channel" },
79 { 0x4027, "EMIT Protocols" },
80 +#endif
81 { 0x405b, "Vendor-Specific Protocol (VSP)" },
82 { 0x8021, "Internet Protocol Control Protocol" },
83 +#if 0
84 { 0x8023, "OSI Network Layer Control Protocol" },
85 { 0x8025, "Xerox NS IDP Control Protocol" },
86 { 0x8027, "DECnet Phase IV Control Protocol" },
87 @@ -961,7 +976,9 @@ struct protocol_list {
88 { 0x8031, "Bridging NCP" },
89 { 0x8033, "Stream Protocol Control Protocol" },
90 { 0x8035, "Banyan Vines Control Protocol" },
91 +#endif
92 { 0x803d, "Multi-Link Control Protocol" },
93 +#if 0
94 { 0x803f, "NETBIOS Framing Control Protocol" },
95 { 0x8041, "Cisco Systems Control Protocol" },
96 { 0x8043, "Ascom Timeplex" },
97 @@ -970,18 +987,24 @@ struct protocol_list {
98 { 0x8049, "Serial Data Control Protocol (PPP-SDCP)" },
99 { 0x804b, "SNA over 802.2 Control Protocol" },
100 { 0x804d, "SNA Control Protocol" },
101 +#endif
102 { 0x804f, "IP6 Header Compression Control Protocol" },
103 +#if 0
104 { 0x8051, "KNX Bridging Control Protocol" },
105 +#endif
106 { 0x8053, "Encryption Control Protocol" },
107 { 0x8055, "Individual Link Encryption Control Protocol" },
108 { 0x8057, "IPv6 Control Protocol" },
109 { 0x8059, "PPP Muxing Control Protocol" },
110 { 0x805b, "Vendor-Specific Network Control Protocol (VSNCP)" },
111 +#if 0
112 { 0x806f, "Stampede Bridging Control Protocol" },
113 { 0x8073, "MP+ Control Protocol" },
114 { 0x80c1, "NTCITS IPI Control Protocol" },
115 +#endif
116 { 0x80fb, "Single Link Compression Control Protocol" },
117 { 0x80fd, "Compression Control Protocol" },
118 +#if 0
119 { 0x8207, "Cisco Discovery Protocol Control" },
120 { 0x8209, "Netcs Twin Routing" },
121 { 0x820b, "STP - Control Protocol" },
122 @@ -990,24 +1013,29 @@ struct protocol_list {
123 { 0x8281, "MPLSCP" },
124 { 0x8285, "IEEE p1284.4 standard - Protocol Control" },
125 { 0x8287, "ETSI TETRA TNP1 Control Protocol" },
126 +#endif
127 { 0x8289, "Multichannel Flow Treatment Protocol" },
128 { 0xc021, "Link Control Protocol" },
129 { 0xc023, "Password Authentication Protocol" },
130 { 0xc025, "Link Quality Report" },
131 +#if 0
132 { 0xc027, "Shiva Password Authentication Protocol" },
133 { 0xc029, "CallBack Control Protocol (CBCP)" },
134 { 0xc02b, "BACP Bandwidth Allocation Control Protocol" },
135 { 0xc02d, "BAP" },
136 +#endif
137 { 0xc05b, "Vendor-Specific Authentication Protocol (VSAP)" },
138 { 0xc081, "Container Control Protocol" },
139 { 0xc223, "Challenge Handshake Authentication Protocol" },
140 { 0xc225, "RSA Authentication Protocol" },
141 { 0xc227, "Extensible Authentication Protocol" },
142 +#if 0
143 { 0xc229, "Mitsubishi Security Info Exch Ptcl (SIEP)" },
144 { 0xc26f, "Stampede Bridging Authorization Protocol" },
145 { 0xc281, "Proprietary Authentication Protocol" },
146 { 0xc283, "Proprietary Authentication Protocol" },
147 { 0xc481, "Proprietary Node ID Authentication Protocol" },
148 +#endif
149 { 0, NULL },
150 };
151