404-remove_obsolete_protocol_names.patch 5.4 KB

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