rhodes 7.5.1 → 7.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +319 -0
  3. data/README.md +3 -15
  4. data/Rakefile +3 -0
  5. data/appveyor.yml +37 -32
  6. data/azure-pipelines.yml +1 -1
  7. data/bin/rhodes-setup +22 -8
  8. data/extensions/emdk3-manager/ext/platform/android/src/com/rho/emdk3/EMDK3Extension.java +14 -5
  9. data/extensions/instrumentation/ext/platform/android/src/com/rho/instrumentation/Instrumentation.java +29 -15
  10. data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/src/com/rhomobile/rhoelements/ans/ANSManager.java +1 -1
  11. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/ElementsCore.java +12 -9
  12. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/graphics/BatteryIndicator.java +2 -2
  13. data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +1 -1
  14. data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro.erb +2 -2
  15. data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +9 -21
  16. data/lib/commonAPI/barcode/ext.yml +1 -0
  17. data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro +1 -1
  18. data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro.erb +1 -1
  19. data/lib/commonAPI/bluetooth/ext/platform/qt/src/bluetooth/bluetoothhelper.h +1 -1
  20. data/lib/commonAPI/coreapi/RhoSystemApi.rb +6 -0
  21. data/lib/commonAPI/coreapi/ext/Intent.xml +4 -0
  22. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/intent/IntentSingleton.java +6 -0
  23. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +2 -1
  24. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +1 -1
  25. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/webview/WebViewSingleton.java +40 -27
  26. data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +5 -6
  27. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.h +1 -1
  28. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.m +3 -1
  29. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +2 -1
  30. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +10 -0
  31. data/lib/commonAPI/coreapi/ext/platform/wm/src/IntentImpl.cpp +3 -0
  32. data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +13 -0
  33. data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
  34. data/lib/commonAPI/coreapi/ext/system.xml +3 -0
  35. data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationCameraActivity.erb +2 -2
  36. data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationFileProvider.erb +1 -1
  37. data/lib/commonAPI/mediacapture/ext/platform/android/ext_java.files +1 -0
  38. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +8 -4
  39. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +8 -0
  40. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/mediacapture/RhoCameraFileProvider.java +6 -0
  41. data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro.erb +1 -1
  42. data/lib/commonAPI/mediacapture/ext/platform/qt/Mediacapture.pro +1 -1
  43. data/lib/commonAPI/signature/ext/platform/iphone/impl/readme.txt +7 -0
  44. data/lib/commonAPI/signature/ext/platform/qt/Signature.pro +3 -10
  45. data/lib/commonAPI/signature/ext/platform/qt/Signature.pro.erb +2 -2
  46. data/lib/extensions/fcm-push/ext/iphone/Podfile +15 -2
  47. data/lib/extensions/fcm-push/ext/iphone/fcm-push.xcodeproj/project.pbxproj +6 -7
  48. data/lib/extensions/nfc/ext/platform/android/src/com/rhomobile/nfc/Nfc.java +2 -1
  49. data/lib/extensions/serialport/ext/serialport.pro +1 -1
  50. data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +1 -0
  51. data/platform/android/Rhodes/jni/src/fileapi.cpp +4 -0
  52. data/platform/android/Rhodes/res/drawable/baseline_check_24.xml +5 -0
  53. data/platform/android/Rhodes/res/drawable/baseline_check_240.xml +5 -0
  54. data/platform/android/Rhodes/res/drawable/baseline_close_24.xml +5 -0
  55. data/platform/android/Rhodes/res/drawable/baseline_close_240.xml +5 -0
  56. data/platform/android/Rhodes/res/layout/overlay_layout.xml +39 -0
  57. data/platform/android/Rhodes/res/layout/perrmission_alert_dialog.xml +267 -0
  58. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +183 -66
  59. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +38 -6
  60. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoFileProvider.java +32 -0
  61. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +529 -89
  62. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +26 -4
  63. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +256 -160
  64. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +14 -3
  65. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +4 -0
  66. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +5 -4
  67. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +79 -38
  68. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +6 -1
  69. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/CallReceiver.java +22 -0
  70. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/IKioskMode.java +11 -0
  71. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/KioskManager.java +18 -0
  72. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyAccessibilityService.java +230 -0
  73. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyNotificationListenerService.java +16 -0
  74. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyOverlayService.java +197 -0
  75. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/PermissionManager.java +232 -0
  76. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +34 -8
  77. data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/CheckDrawable.java +53 -0
  78. data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/PermissionListGenerate.java +366 -0
  79. data/platform/android/Rhodes/src/com/rhomobile/rhodes/rhodes.iml +11 -0
  80. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +1 -0
  81. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +782 -41
  82. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputConnectionWrapper.java +146 -0
  83. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputListener.java +21 -0
  84. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +92 -32
  85. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/TauWebViewOptions.java +118 -0
  86. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderBase.java +18 -17
  87. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderEclairMR1.java +4 -4
  88. data/platform/android/build/RhodesSRC_build.files +13 -0
  89. data/platform/android/build/android-repack.rake +8 -1
  90. data/platform/android/build/android.rake +118 -51
  91. data/platform/android/build/android_tools.rb +1 -1
  92. data/platform/android/build/androidcommon.rb +13 -7
  93. data/platform/android/build/config.yml +4 -1
  94. data/platform/android/build/manifest_generator.rb +14 -10
  95. data/platform/android/build/maven_deps_extractor.rb +7 -1
  96. data/platform/android/build/ndkwrapper.rb +12 -0
  97. data/platform/android/proguard/proguard-base-rules.pro +5 -0
  98. data/platform/android/proguard/proguard.jar +0 -0
  99. data/platform/iphone/Classes/RhoAppBaseLib-Bridging-Header.h +4 -0
  100. data/platform/iphone/Classes/RhoAppBaseStandaloneLib-Bridging-Header.h +4 -0
  101. data/platform/iphone/Classes/RhoCryptAESGCM.swift +105 -0
  102. data/platform/iphone/Classes/RhoUIWebView.h +1 -1
  103. data/platform/iphone/Classes/RhoUIWebView.m +1 -1
  104. data/platform/iphone/Classes/RhoWKWebView.h +1 -1
  105. data/platform/iphone/Classes/RhoWKWebView.mm +32 -4
  106. data/platform/iphone/Classes/RhoWebView.h +1 -1
  107. data/platform/iphone/Classes/RhoWebViewFabrique.m +7 -1
  108. data/platform/iphone/Classes/SimpleMainView.m +5 -5
  109. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +21 -10
  110. data/platform/iphone/Classes/rho/net/IPhoneNetRequest.mm +4 -0
  111. data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +1 -1
  112. data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1 -1
  113. data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +46 -1
  114. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +1 -1
  115. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +4 -1
  116. data/platform/iphone/rbuild/iphone.rake +9 -8
  117. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -1
  118. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +1 -1
  119. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +1 -1
  120. data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
  121. data/platform/sailfish/build/{harbour-SailfishRhodes.pro.erb → SailfishRhodes.pro.erb} +10 -17
  122. data/platform/sailfish/build/rhodes.pro.erb +7 -17
  123. data/platform/sailfish/build/rpm/SailfishRhodes.desktop.erb +12 -0
  124. data/platform/sailfish/build/rpm/SailfishRhodes.erb +2 -0
  125. data/platform/sailfish/build/rpm/SailfishRhodes.spec.erb +43 -0
  126. data/platform/sailfish/build/rubylib.pro.erb +29 -29
  127. data/platform/sailfish/build/sailfish.rake +188 -180
  128. data/platform/sailfish/keys/regular_cert.pem +14 -0
  129. data/platform/sailfish/keys/regular_key.pem +4 -0
  130. data/platform/shared/common/RhodesApp.cpp +33 -9
  131. data/platform/shared/common/iphone/RhoCryptImpl.mm +130 -54
  132. data/platform/shared/qt/RhoSimulator.pro +1 -1
  133. data/platform/shared/qt/rhodes/rhodes.pro +4 -11
  134. data/platform/shared/qt/sailfish/SailfishRhodes.desktop +3 -4
  135. data/platform/shared/qt/sailfish/SailfishRhodes.pro +9 -10
  136. data/platform/shared/qt/sailfish/icons/108x108/108x108.png +0 -0
  137. data/platform/shared/qt/sailfish/privileges/sailfishrhodes +2 -0
  138. data/platform/shared/qt/sailfish/qml/pages/FirstPageWK.qml +7 -11
  139. data/platform/shared/qt/sailfish/qml/{harbour-sailfishrhodes.qml → sailfishrhodes.qml} +1 -1
  140. data/platform/shared/qt/sailfish/rpm/sailfishrhodes.spec +80 -0
  141. data/platform/shared/qt/sailfish/rpm/{harbour-sailfishrhodes.yaml → sailfishrhodes.yaml} +2 -2
  142. data/platform/shared/qt/sailfish/src/QtMainWindow.cpp +1 -1
  143. data/platform/shared/qt/sailfish/src/QtMainWindow.h +1 -1
  144. data/platform/shared/qt/sailfish/src/main.cpp +6 -38
  145. data/platform/shared/qt/sailfish/src/rootdelegate.h +2 -14
  146. data/platform/shared/ruby/aurora/ruby/config.h +386 -0
  147. data/platform/shared/ruby/aurora/ruby/constdefs.c +5866 -0
  148. data/platform/shared/ruby/aurora/ruby/constdefs.h +1788 -0
  149. data/platform/shared/sqlite/crypto.c +14 -0
  150. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  151. data/platform/win32/build/rhodes.nsi +3 -3
  152. data/platform/win32/build/win32.rake +1 -1
  153. data/rakefile.rb +3 -0
  154. data/res/build-tools/iphonesim/build/Release/iphonesim_8 +4 -4
  155. data/res/generators/templates/application/AndroidManifest.erb +26 -5
  156. data/res/generators/templates/application/build.yml +14 -10
  157. data/res/generators/templates/application/resources/android/res/xml/provider_paths.xml +4 -0
  158. data/res/generators/templates/application/rhoconfig.txt +10 -1
  159. data/res/generators/templates/iphone_project/Bremen8.xcodeproj/project.pbxproj +24 -1
  160. data/res/generators/templates/iphone_project/Classes/SimpleSwiftClass.swift +20 -0
  161. data/res/generators/templates/iphone_project/Classes/rhorunner-Bridging-Header.h +4 -0
  162. data/rhobuild.yml.example +3 -3
  163. data/rhodes.gemspec +4 -2
  164. data/version +1 -1
  165. metadata +81 -26
  166. data/platform/sailfish/build/rho_build.cmd.erb +0 -14
  167. data/platform/sailfish/build/rho_clean.cmd.erb +0 -14
  168. data/platform/sailfish/build/rho_deploy.cmd.erb +0 -15
  169. data/platform/sailfish/build/rho_rpm.cmd.erb +0 -14
  170. data/platform/sailfish/build/rho_rpmvalidation.cmd.erb +0 -14
  171. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.desktop.erb +0 -7
  172. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.erb +0 -2
  173. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.yaml.erb +0 -37
  174. data/platform/shared/qt/sailfish/harbour-sailfishrhodes.desktop +0 -6
  175. data/platform/shared/qt/sailfish/icons/108x108/harbour-sailfishrhodes.png +0 -0
  176. data/platform/shared/qt/sailfish/privileges/harbour-sailfishrhodes +0 -2
  177. data/platform/shared/qt/sailfish/qml/pages/FirstPageWE.qml +0 -236
  178. /data/platform/shared/qt/sailfish/icons/128x128/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
  179. /data/platform/shared/qt/sailfish/icons/172x172/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
  180. /data/platform/shared/qt/sailfish/icons/86x86/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
@@ -0,0 +1,1788 @@
1
+ /* autogenerated file */
2
+ #if !defined(SOCK_STREAM)
3
+ # if defined(HAVE_CONST_SOCK_STREAM)
4
+ # define SOCK_STREAM SOCK_STREAM
5
+ # endif
6
+ #endif
7
+ #if !defined(SOCK_DGRAM)
8
+ # if defined(HAVE_CONST_SOCK_DGRAM)
9
+ # define SOCK_DGRAM SOCK_DGRAM
10
+ # endif
11
+ #endif
12
+ #if !defined(SOCK_RAW)
13
+ # if defined(HAVE_CONST_SOCK_RAW)
14
+ # define SOCK_RAW SOCK_RAW
15
+ # endif
16
+ #endif
17
+ #if !defined(SOCK_RDM)
18
+ # if defined(HAVE_CONST_SOCK_RDM)
19
+ # define SOCK_RDM SOCK_RDM
20
+ # endif
21
+ #endif
22
+ #if !defined(SOCK_SEQPACKET)
23
+ # if defined(HAVE_CONST_SOCK_SEQPACKET)
24
+ # define SOCK_SEQPACKET SOCK_SEQPACKET
25
+ # endif
26
+ #endif
27
+ #if !defined(SOCK_PACKET)
28
+ # if defined(HAVE_CONST_SOCK_PACKET)
29
+ # define SOCK_PACKET SOCK_PACKET
30
+ # endif
31
+ #endif
32
+ #if !defined(AF_UNSPEC)
33
+ # if defined(HAVE_CONST_AF_UNSPEC)
34
+ # define AF_UNSPEC AF_UNSPEC
35
+ # endif
36
+ #endif
37
+ #if !defined(PF_UNSPEC)
38
+ # if defined(HAVE_CONST_PF_UNSPEC)
39
+ # define PF_UNSPEC PF_UNSPEC
40
+ # endif
41
+ #endif
42
+ #if !defined(AF_INET)
43
+ # if defined(HAVE_CONST_AF_INET)
44
+ # define AF_INET AF_INET
45
+ # endif
46
+ #endif
47
+ #if !defined(PF_INET)
48
+ # if defined(HAVE_CONST_PF_INET)
49
+ # define PF_INET PF_INET
50
+ # endif
51
+ #endif
52
+ #if !defined(AF_INET6)
53
+ # if defined(HAVE_CONST_AF_INET6)
54
+ # define AF_INET6 AF_INET6
55
+ # endif
56
+ #endif
57
+ #if !defined(PF_INET6)
58
+ # if defined(HAVE_CONST_PF_INET6)
59
+ # define PF_INET6 PF_INET6
60
+ # endif
61
+ #endif
62
+ #if !defined(AF_UNIX)
63
+ # if defined(HAVE_CONST_AF_UNIX)
64
+ # define AF_UNIX AF_UNIX
65
+ # endif
66
+ #endif
67
+ #if !defined(PF_UNIX)
68
+ # if defined(HAVE_CONST_PF_UNIX)
69
+ # define PF_UNIX PF_UNIX
70
+ # endif
71
+ #endif
72
+ #if !defined(AF_AX25)
73
+ # if defined(HAVE_CONST_AF_AX25)
74
+ # define AF_AX25 AF_AX25
75
+ # endif
76
+ #endif
77
+ #if !defined(PF_AX25)
78
+ # if defined(HAVE_CONST_PF_AX25)
79
+ # define PF_AX25 PF_AX25
80
+ # endif
81
+ #endif
82
+ #if !defined(AF_IPX)
83
+ # if defined(HAVE_CONST_AF_IPX)
84
+ # define AF_IPX AF_IPX
85
+ # endif
86
+ #endif
87
+ #if !defined(PF_IPX)
88
+ # if defined(HAVE_CONST_PF_IPX)
89
+ # define PF_IPX PF_IPX
90
+ # endif
91
+ #endif
92
+ #if !defined(AF_APPLETALK)
93
+ # if defined(HAVE_CONST_AF_APPLETALK)
94
+ # define AF_APPLETALK AF_APPLETALK
95
+ # endif
96
+ #endif
97
+ #if !defined(PF_APPLETALK)
98
+ # if defined(HAVE_CONST_PF_APPLETALK)
99
+ # define PF_APPLETALK PF_APPLETALK
100
+ # endif
101
+ #endif
102
+ #if !defined(AF_LOCAL)
103
+ # if defined(HAVE_CONST_AF_LOCAL)
104
+ # define AF_LOCAL AF_LOCAL
105
+ # endif
106
+ #endif
107
+ #if !defined(PF_LOCAL)
108
+ # if defined(HAVE_CONST_PF_LOCAL)
109
+ # define PF_LOCAL PF_LOCAL
110
+ # endif
111
+ #endif
112
+ #if !defined(AF_IMPLINK)
113
+ # if defined(HAVE_CONST_AF_IMPLINK)
114
+ # define AF_IMPLINK AF_IMPLINK
115
+ # endif
116
+ #endif
117
+ #if !defined(PF_IMPLINK)
118
+ # if defined(HAVE_CONST_PF_IMPLINK)
119
+ # define PF_IMPLINK PF_IMPLINK
120
+ # endif
121
+ #endif
122
+ #if !defined(AF_PUP)
123
+ # if defined(HAVE_CONST_AF_PUP)
124
+ # define AF_PUP AF_PUP
125
+ # endif
126
+ #endif
127
+ #if !defined(PF_PUP)
128
+ # if defined(HAVE_CONST_PF_PUP)
129
+ # define PF_PUP PF_PUP
130
+ # endif
131
+ #endif
132
+ #if !defined(AF_CHAOS)
133
+ # if defined(HAVE_CONST_AF_CHAOS)
134
+ # define AF_CHAOS AF_CHAOS
135
+ # endif
136
+ #endif
137
+ #if !defined(PF_CHAOS)
138
+ # if defined(HAVE_CONST_PF_CHAOS)
139
+ # define PF_CHAOS PF_CHAOS
140
+ # endif
141
+ #endif
142
+ #if !defined(AF_NS)
143
+ # if defined(HAVE_CONST_AF_NS)
144
+ # define AF_NS AF_NS
145
+ # endif
146
+ #endif
147
+ #if !defined(PF_NS)
148
+ # if defined(HAVE_CONST_PF_NS)
149
+ # define PF_NS PF_NS
150
+ # endif
151
+ #endif
152
+ #if !defined(AF_ISO)
153
+ # if defined(HAVE_CONST_AF_ISO)
154
+ # define AF_ISO AF_ISO
155
+ # endif
156
+ #endif
157
+ #if !defined(PF_ISO)
158
+ # if defined(HAVE_CONST_PF_ISO)
159
+ # define PF_ISO PF_ISO
160
+ # endif
161
+ #endif
162
+ #if !defined(AF_OSI)
163
+ # if defined(HAVE_CONST_AF_OSI)
164
+ # define AF_OSI AF_OSI
165
+ # endif
166
+ #endif
167
+ #if !defined(PF_OSI)
168
+ # if defined(HAVE_CONST_PF_OSI)
169
+ # define PF_OSI PF_OSI
170
+ # endif
171
+ #endif
172
+ #if !defined(AF_ECMA)
173
+ # if defined(HAVE_CONST_AF_ECMA)
174
+ # define AF_ECMA AF_ECMA
175
+ # endif
176
+ #endif
177
+ #if !defined(PF_ECMA)
178
+ # if defined(HAVE_CONST_PF_ECMA)
179
+ # define PF_ECMA PF_ECMA
180
+ # endif
181
+ #endif
182
+ #if !defined(AF_DATAKIT)
183
+ # if defined(HAVE_CONST_AF_DATAKIT)
184
+ # define AF_DATAKIT AF_DATAKIT
185
+ # endif
186
+ #endif
187
+ #if !defined(PF_DATAKIT)
188
+ # if defined(HAVE_CONST_PF_DATAKIT)
189
+ # define PF_DATAKIT PF_DATAKIT
190
+ # endif
191
+ #endif
192
+ #if !defined(AF_CCITT)
193
+ # if defined(HAVE_CONST_AF_CCITT)
194
+ # define AF_CCITT AF_CCITT
195
+ # endif
196
+ #endif
197
+ #if !defined(PF_CCITT)
198
+ # if defined(HAVE_CONST_PF_CCITT)
199
+ # define PF_CCITT PF_CCITT
200
+ # endif
201
+ #endif
202
+ #if !defined(AF_SNA)
203
+ # if defined(HAVE_CONST_AF_SNA)
204
+ # define AF_SNA AF_SNA
205
+ # endif
206
+ #endif
207
+ #if !defined(PF_SNA)
208
+ # if defined(HAVE_CONST_PF_SNA)
209
+ # define PF_SNA PF_SNA
210
+ # endif
211
+ #endif
212
+ #if !defined(AF_DEC)
213
+ # if defined(HAVE_CONST_AF_DEC)
214
+ # define AF_DEC AF_DEC
215
+ # endif
216
+ #endif
217
+ #if !defined(PF_DEC)
218
+ # if defined(HAVE_CONST_PF_DEC)
219
+ # define PF_DEC PF_DEC
220
+ # endif
221
+ #endif
222
+ #if !defined(AF_DLI)
223
+ # if defined(HAVE_CONST_AF_DLI)
224
+ # define AF_DLI AF_DLI
225
+ # endif
226
+ #endif
227
+ #if !defined(PF_DLI)
228
+ # if defined(HAVE_CONST_PF_DLI)
229
+ # define PF_DLI PF_DLI
230
+ # endif
231
+ #endif
232
+ #if !defined(AF_LAT)
233
+ # if defined(HAVE_CONST_AF_LAT)
234
+ # define AF_LAT AF_LAT
235
+ # endif
236
+ #endif
237
+ #if !defined(PF_LAT)
238
+ # if defined(HAVE_CONST_PF_LAT)
239
+ # define PF_LAT PF_LAT
240
+ # endif
241
+ #endif
242
+ #if !defined(AF_HYLINK)
243
+ # if defined(HAVE_CONST_AF_HYLINK)
244
+ # define AF_HYLINK AF_HYLINK
245
+ # endif
246
+ #endif
247
+ #if !defined(PF_HYLINK)
248
+ # if defined(HAVE_CONST_PF_HYLINK)
249
+ # define PF_HYLINK PF_HYLINK
250
+ # endif
251
+ #endif
252
+ #if !defined(AF_ROUTE)
253
+ # if defined(HAVE_CONST_AF_ROUTE)
254
+ # define AF_ROUTE AF_ROUTE
255
+ # endif
256
+ #endif
257
+ #if !defined(PF_ROUTE)
258
+ # if defined(HAVE_CONST_PF_ROUTE)
259
+ # define PF_ROUTE PF_ROUTE
260
+ # endif
261
+ #endif
262
+ #if !defined(AF_LINK)
263
+ # if defined(HAVE_CONST_AF_LINK)
264
+ # define AF_LINK AF_LINK
265
+ # endif
266
+ #endif
267
+ #if !defined(PF_LINK)
268
+ # if defined(HAVE_CONST_PF_LINK)
269
+ # define PF_LINK PF_LINK
270
+ # endif
271
+ #endif
272
+ #if !defined(AF_COIP)
273
+ # if defined(HAVE_CONST_AF_COIP)
274
+ # define AF_COIP AF_COIP
275
+ # endif
276
+ #endif
277
+ #if !defined(PF_COIP)
278
+ # if defined(HAVE_CONST_PF_COIP)
279
+ # define PF_COIP PF_COIP
280
+ # endif
281
+ #endif
282
+ #if !defined(AF_CNT)
283
+ # if defined(HAVE_CONST_AF_CNT)
284
+ # define AF_CNT AF_CNT
285
+ # endif
286
+ #endif
287
+ #if !defined(PF_CNT)
288
+ # if defined(HAVE_CONST_PF_CNT)
289
+ # define PF_CNT PF_CNT
290
+ # endif
291
+ #endif
292
+ #if !defined(AF_SIP)
293
+ # if defined(HAVE_CONST_AF_SIP)
294
+ # define AF_SIP AF_SIP
295
+ # endif
296
+ #endif
297
+ #if !defined(PF_SIP)
298
+ # if defined(HAVE_CONST_PF_SIP)
299
+ # define PF_SIP PF_SIP
300
+ # endif
301
+ #endif
302
+ #if !defined(AF_NDRV)
303
+ # if defined(HAVE_CONST_AF_NDRV)
304
+ # define AF_NDRV AF_NDRV
305
+ # endif
306
+ #endif
307
+ #if !defined(PF_NDRV)
308
+ # if defined(HAVE_CONST_PF_NDRV)
309
+ # define PF_NDRV PF_NDRV
310
+ # endif
311
+ #endif
312
+ #if !defined(AF_ISDN)
313
+ # if defined(HAVE_CONST_AF_ISDN)
314
+ # define AF_ISDN AF_ISDN
315
+ # endif
316
+ #endif
317
+ #if !defined(PF_ISDN)
318
+ # if defined(HAVE_CONST_PF_ISDN)
319
+ # define PF_ISDN PF_ISDN
320
+ # endif
321
+ #endif
322
+ #if !defined(AF_NATM)
323
+ # if defined(HAVE_CONST_AF_NATM)
324
+ # define AF_NATM AF_NATM
325
+ # endif
326
+ #endif
327
+ #if !defined(PF_NATM)
328
+ # if defined(HAVE_CONST_PF_NATM)
329
+ # define PF_NATM PF_NATM
330
+ # endif
331
+ #endif
332
+ #if !defined(AF_SYSTEM)
333
+ # if defined(HAVE_CONST_AF_SYSTEM)
334
+ # define AF_SYSTEM AF_SYSTEM
335
+ # endif
336
+ #endif
337
+ #if !defined(PF_SYSTEM)
338
+ # if defined(HAVE_CONST_PF_SYSTEM)
339
+ # define PF_SYSTEM PF_SYSTEM
340
+ # endif
341
+ #endif
342
+ #if !defined(AF_NETBIOS)
343
+ # if defined(HAVE_CONST_AF_NETBIOS)
344
+ # define AF_NETBIOS AF_NETBIOS
345
+ # endif
346
+ #endif
347
+ #if !defined(PF_NETBIOS)
348
+ # if defined(HAVE_CONST_PF_NETBIOS)
349
+ # define PF_NETBIOS PF_NETBIOS
350
+ # endif
351
+ #endif
352
+ #if !defined(AF_PPP)
353
+ # if defined(HAVE_CONST_AF_PPP)
354
+ # define AF_PPP AF_PPP
355
+ # endif
356
+ #endif
357
+ #if !defined(PF_PPP)
358
+ # if defined(HAVE_CONST_PF_PPP)
359
+ # define PF_PPP PF_PPP
360
+ # endif
361
+ #endif
362
+ #if !defined(AF_ATM)
363
+ # if defined(HAVE_CONST_AF_ATM)
364
+ # define AF_ATM AF_ATM
365
+ # endif
366
+ #endif
367
+ #if !defined(PF_ATM)
368
+ # if defined(HAVE_CONST_PF_ATM)
369
+ # define PF_ATM PF_ATM
370
+ # endif
371
+ #endif
372
+ #if !defined(AF_NETGRAPH)
373
+ # if defined(HAVE_CONST_AF_NETGRAPH)
374
+ # define AF_NETGRAPH AF_NETGRAPH
375
+ # endif
376
+ #endif
377
+ #if !defined(PF_NETGRAPH)
378
+ # if defined(HAVE_CONST_PF_NETGRAPH)
379
+ # define PF_NETGRAPH PF_NETGRAPH
380
+ # endif
381
+ #endif
382
+ #if !defined(AF_MAX)
383
+ # if defined(HAVE_CONST_AF_MAX)
384
+ # define AF_MAX AF_MAX
385
+ # endif
386
+ #endif
387
+ #if !defined(PF_MAX)
388
+ # if defined(HAVE_CONST_PF_MAX)
389
+ # define PF_MAX PF_MAX
390
+ # endif
391
+ #endif
392
+ #if !defined(AF_PACKET)
393
+ # if defined(HAVE_CONST_AF_PACKET)
394
+ # define AF_PACKET AF_PACKET
395
+ # endif
396
+ #endif
397
+ #if !defined(PF_PACKET)
398
+ # if defined(HAVE_CONST_PF_PACKET)
399
+ # define PF_PACKET PF_PACKET
400
+ # endif
401
+ #endif
402
+ #if !defined(AF_E164)
403
+ # if defined(HAVE_CONST_AF_E164)
404
+ # define AF_E164 AF_E164
405
+ # endif
406
+ #endif
407
+ #if !defined(PF_XTP)
408
+ # if defined(HAVE_CONST_PF_XTP)
409
+ # define PF_XTP PF_XTP
410
+ # endif
411
+ #endif
412
+ #if !defined(PF_RTIP)
413
+ # if defined(HAVE_CONST_PF_RTIP)
414
+ # define PF_RTIP PF_RTIP
415
+ # endif
416
+ #endif
417
+ #if !defined(PF_PIP)
418
+ # if defined(HAVE_CONST_PF_PIP)
419
+ # define PF_PIP PF_PIP
420
+ # endif
421
+ #endif
422
+ #if !defined(PF_KEY)
423
+ # if defined(HAVE_CONST_PF_KEY)
424
+ # define PF_KEY PF_KEY
425
+ # endif
426
+ #endif
427
+ #if !defined(MSG_OOB)
428
+ # if defined(HAVE_CONST_MSG_OOB)
429
+ # define MSG_OOB MSG_OOB
430
+ # endif
431
+ #endif
432
+ #if !defined(MSG_PEEK)
433
+ # if defined(HAVE_CONST_MSG_PEEK)
434
+ # define MSG_PEEK MSG_PEEK
435
+ # endif
436
+ #endif
437
+ #if !defined(MSG_DONTROUTE)
438
+ # if defined(HAVE_CONST_MSG_DONTROUTE)
439
+ # define MSG_DONTROUTE MSG_DONTROUTE
440
+ # endif
441
+ #endif
442
+ #if !defined(MSG_EOR)
443
+ # if defined(HAVE_CONST_MSG_EOR)
444
+ # define MSG_EOR MSG_EOR
445
+ # endif
446
+ #endif
447
+ #if !defined(MSG_TRUNC)
448
+ # if defined(HAVE_CONST_MSG_TRUNC)
449
+ # define MSG_TRUNC MSG_TRUNC
450
+ # endif
451
+ #endif
452
+ #if !defined(MSG_CTRUNC)
453
+ # if defined(HAVE_CONST_MSG_CTRUNC)
454
+ # define MSG_CTRUNC MSG_CTRUNC
455
+ # endif
456
+ #endif
457
+ #if !defined(MSG_WAITALL)
458
+ # if defined(HAVE_CONST_MSG_WAITALL)
459
+ # define MSG_WAITALL MSG_WAITALL
460
+ # endif
461
+ #endif
462
+ #if !defined(MSG_DONTWAIT)
463
+ # if defined(HAVE_CONST_MSG_DONTWAIT)
464
+ # define MSG_DONTWAIT MSG_DONTWAIT
465
+ # endif
466
+ #endif
467
+ #if !defined(MSG_EOF)
468
+ # if defined(HAVE_CONST_MSG_EOF)
469
+ # define MSG_EOF MSG_EOF
470
+ # endif
471
+ #endif
472
+ #if !defined(MSG_FLUSH)
473
+ # if defined(HAVE_CONST_MSG_FLUSH)
474
+ # define MSG_FLUSH MSG_FLUSH
475
+ # endif
476
+ #endif
477
+ #if !defined(MSG_HOLD)
478
+ # if defined(HAVE_CONST_MSG_HOLD)
479
+ # define MSG_HOLD MSG_HOLD
480
+ # endif
481
+ #endif
482
+ #if !defined(MSG_SEND)
483
+ # if defined(HAVE_CONST_MSG_SEND)
484
+ # define MSG_SEND MSG_SEND
485
+ # endif
486
+ #endif
487
+ #if !defined(MSG_HAVEMORE)
488
+ # if defined(HAVE_CONST_MSG_HAVEMORE)
489
+ # define MSG_HAVEMORE MSG_HAVEMORE
490
+ # endif
491
+ #endif
492
+ #if !defined(MSG_RCVMORE)
493
+ # if defined(HAVE_CONST_MSG_RCVMORE)
494
+ # define MSG_RCVMORE MSG_RCVMORE
495
+ # endif
496
+ #endif
497
+ #if !defined(MSG_COMPAT)
498
+ # if defined(HAVE_CONST_MSG_COMPAT)
499
+ # define MSG_COMPAT MSG_COMPAT
500
+ # endif
501
+ #endif
502
+ #if !defined(MSG_PROXY)
503
+ # if defined(HAVE_CONST_MSG_PROXY)
504
+ # define MSG_PROXY MSG_PROXY
505
+ # endif
506
+ #endif
507
+ #if !defined(MSG_FIN)
508
+ # if defined(HAVE_CONST_MSG_FIN)
509
+ # define MSG_FIN MSG_FIN
510
+ # endif
511
+ #endif
512
+ #if !defined(MSG_SYN)
513
+ # if defined(HAVE_CONST_MSG_SYN)
514
+ # define MSG_SYN MSG_SYN
515
+ # endif
516
+ #endif
517
+ #if !defined(MSG_CONFIRM)
518
+ # if defined(HAVE_CONST_MSG_CONFIRM)
519
+ # define MSG_CONFIRM MSG_CONFIRM
520
+ # endif
521
+ #endif
522
+ #if !defined(MSG_RST)
523
+ # if defined(HAVE_CONST_MSG_RST)
524
+ # define MSG_RST MSG_RST
525
+ # endif
526
+ #endif
527
+ #if !defined(MSG_ERRQUEUE)
528
+ # if defined(HAVE_CONST_MSG_ERRQUEUE)
529
+ # define MSG_ERRQUEUE MSG_ERRQUEUE
530
+ # endif
531
+ #endif
532
+ #if !defined(MSG_NOSIGNAL)
533
+ # if defined(HAVE_CONST_MSG_NOSIGNAL)
534
+ # define MSG_NOSIGNAL MSG_NOSIGNAL
535
+ # endif
536
+ #endif
537
+ #if !defined(MSG_MORE)
538
+ # if defined(HAVE_CONST_MSG_MORE)
539
+ # define MSG_MORE MSG_MORE
540
+ # endif
541
+ #endif
542
+ #if !defined(SOL_SOCKET)
543
+ # if defined(HAVE_CONST_SOL_SOCKET)
544
+ # define SOL_SOCKET SOL_SOCKET
545
+ # endif
546
+ #endif
547
+ #if !defined(SOL_IP)
548
+ # if defined(HAVE_CONST_SOL_IP)
549
+ # define SOL_IP SOL_IP
550
+ # endif
551
+ #endif
552
+ #if !defined(SOL_IPX)
553
+ # if defined(HAVE_CONST_SOL_IPX)
554
+ # define SOL_IPX SOL_IPX
555
+ # endif
556
+ #endif
557
+ #if !defined(SOL_AX25)
558
+ # if defined(HAVE_CONST_SOL_AX25)
559
+ # define SOL_AX25 SOL_AX25
560
+ # endif
561
+ #endif
562
+ #if !defined(SOL_ATALK)
563
+ # if defined(HAVE_CONST_SOL_ATALK)
564
+ # define SOL_ATALK SOL_ATALK
565
+ # endif
566
+ #endif
567
+ #if !defined(SOL_TCP)
568
+ # if defined(HAVE_CONST_SOL_TCP)
569
+ # define SOL_TCP SOL_TCP
570
+ # endif
571
+ #endif
572
+ #if !defined(SOL_UDP)
573
+ # if defined(HAVE_CONST_SOL_UDP)
574
+ # define SOL_UDP SOL_UDP
575
+ # endif
576
+ #endif
577
+ #if !defined(IPPROTO_IP)
578
+ # if defined(HAVE_CONST_IPPROTO_IP)
579
+ # define IPPROTO_IP IPPROTO_IP
580
+ # else
581
+ # define IPPROTO_IP 0
582
+ # endif
583
+ #endif
584
+ #if !defined(IPPROTO_ICMP)
585
+ # if defined(HAVE_CONST_IPPROTO_ICMP)
586
+ # define IPPROTO_ICMP IPPROTO_ICMP
587
+ # else
588
+ # define IPPROTO_ICMP 1
589
+ # endif
590
+ #endif
591
+ #if !defined(IPPROTO_IGMP)
592
+ # if defined(HAVE_CONST_IPPROTO_IGMP)
593
+ # define IPPROTO_IGMP IPPROTO_IGMP
594
+ # endif
595
+ #endif
596
+ #if !defined(IPPROTO_GGP)
597
+ # if defined(HAVE_CONST_IPPROTO_GGP)
598
+ # define IPPROTO_GGP IPPROTO_GGP
599
+ # endif
600
+ #endif
601
+ #if !defined(IPPROTO_TCP)
602
+ # if defined(HAVE_CONST_IPPROTO_TCP)
603
+ # define IPPROTO_TCP IPPROTO_TCP
604
+ # else
605
+ # define IPPROTO_TCP 6
606
+ # endif
607
+ #endif
608
+ #if !defined(IPPROTO_EGP)
609
+ # if defined(HAVE_CONST_IPPROTO_EGP)
610
+ # define IPPROTO_EGP IPPROTO_EGP
611
+ # endif
612
+ #endif
613
+ #if !defined(IPPROTO_PUP)
614
+ # if defined(HAVE_CONST_IPPROTO_PUP)
615
+ # define IPPROTO_PUP IPPROTO_PUP
616
+ # endif
617
+ #endif
618
+ #if !defined(IPPROTO_UDP)
619
+ # if defined(HAVE_CONST_IPPROTO_UDP)
620
+ # define IPPROTO_UDP IPPROTO_UDP
621
+ # else
622
+ # define IPPROTO_UDP 17
623
+ # endif
624
+ #endif
625
+ #if !defined(IPPROTO_IDP)
626
+ # if defined(HAVE_CONST_IPPROTO_IDP)
627
+ # define IPPROTO_IDP IPPROTO_IDP
628
+ # endif
629
+ #endif
630
+ #if !defined(IPPROTO_HELLO)
631
+ # if defined(HAVE_CONST_IPPROTO_HELLO)
632
+ # define IPPROTO_HELLO IPPROTO_HELLO
633
+ # endif
634
+ #endif
635
+ #if !defined(IPPROTO_ND)
636
+ # if defined(HAVE_CONST_IPPROTO_ND)
637
+ # define IPPROTO_ND IPPROTO_ND
638
+ # endif
639
+ #endif
640
+ #if !defined(IPPROTO_TP)
641
+ # if defined(HAVE_CONST_IPPROTO_TP)
642
+ # define IPPROTO_TP IPPROTO_TP
643
+ # endif
644
+ #endif
645
+ #if !defined(IPPROTO_XTP)
646
+ # if defined(HAVE_CONST_IPPROTO_XTP)
647
+ # define IPPROTO_XTP IPPROTO_XTP
648
+ # endif
649
+ #endif
650
+ #if !defined(IPPROTO_EON)
651
+ # if defined(HAVE_CONST_IPPROTO_EON)
652
+ # define IPPROTO_EON IPPROTO_EON
653
+ # endif
654
+ #endif
655
+ #if !defined(IPPROTO_BIP)
656
+ # if defined(HAVE_CONST_IPPROTO_BIP)
657
+ # define IPPROTO_BIP IPPROTO_BIP
658
+ # endif
659
+ #endif
660
+ #if !defined(IPPROTO_AH)
661
+ # if defined(HAVE_CONST_IPPROTO_AH)
662
+ # define IPPROTO_AH IPPROTO_AH
663
+ # endif
664
+ #endif
665
+ #if !defined(IPPROTO_DSTOPTS)
666
+ # if defined(HAVE_CONST_IPPROTO_DSTOPTS)
667
+ # define IPPROTO_DSTOPTS IPPROTO_DSTOPTS
668
+ # endif
669
+ #endif
670
+ #if !defined(IPPROTO_ESP)
671
+ # if defined(HAVE_CONST_IPPROTO_ESP)
672
+ # define IPPROTO_ESP IPPROTO_ESP
673
+ # endif
674
+ #endif
675
+ #if !defined(IPPROTO_FRAGMENT)
676
+ # if defined(HAVE_CONST_IPPROTO_FRAGMENT)
677
+ # define IPPROTO_FRAGMENT IPPROTO_FRAGMENT
678
+ # endif
679
+ #endif
680
+ #if !defined(IPPROTO_HOPOPTS)
681
+ # if defined(HAVE_CONST_IPPROTO_HOPOPTS)
682
+ # define IPPROTO_HOPOPTS IPPROTO_HOPOPTS
683
+ # endif
684
+ #endif
685
+ #if !defined(IPPROTO_ICMPV6)
686
+ # if defined(HAVE_CONST_IPPROTO_ICMPV6)
687
+ # define IPPROTO_ICMPV6 IPPROTO_ICMPV6
688
+ # endif
689
+ #endif
690
+ #if !defined(IPPROTO_IPV6)
691
+ # if defined(HAVE_CONST_IPPROTO_IPV6)
692
+ # define IPPROTO_IPV6 IPPROTO_IPV6
693
+ # endif
694
+ #endif
695
+ #if !defined(IPPROTO_NONE)
696
+ # if defined(HAVE_CONST_IPPROTO_NONE)
697
+ # define IPPROTO_NONE IPPROTO_NONE
698
+ # endif
699
+ #endif
700
+ #if !defined(IPPROTO_ROUTING)
701
+ # if defined(HAVE_CONST_IPPROTO_ROUTING)
702
+ # define IPPROTO_ROUTING IPPROTO_ROUTING
703
+ # endif
704
+ #endif
705
+ #if !defined(IPPROTO_RAW)
706
+ # if defined(HAVE_CONST_IPPROTO_RAW)
707
+ # define IPPROTO_RAW IPPROTO_RAW
708
+ # else
709
+ # define IPPROTO_RAW 255
710
+ # endif
711
+ #endif
712
+ #if !defined(IPPROTO_MAX)
713
+ # if defined(HAVE_CONST_IPPROTO_MAX)
714
+ # define IPPROTO_MAX IPPROTO_MAX
715
+ # endif
716
+ #endif
717
+ #if !defined(IPPORT_RESERVED)
718
+ # if defined(HAVE_CONST_IPPORT_RESERVED)
719
+ # define IPPORT_RESERVED IPPORT_RESERVED
720
+ # else
721
+ # define IPPORT_RESERVED 1024
722
+ # endif
723
+ #endif
724
+ #if !defined(IPPORT_USERRESERVED)
725
+ # if defined(HAVE_CONST_IPPORT_USERRESERVED)
726
+ # define IPPORT_USERRESERVED IPPORT_USERRESERVED
727
+ # else
728
+ # define IPPORT_USERRESERVED 5000
729
+ # endif
730
+ #endif
731
+ #if !defined(INADDR_ANY)
732
+ # if defined(HAVE_CONST_INADDR_ANY)
733
+ # define INADDR_ANY INADDR_ANY
734
+ # else
735
+ # define INADDR_ANY 0x00000000
736
+ # endif
737
+ #endif
738
+ #if !defined(INADDR_BROADCAST)
739
+ # if defined(HAVE_CONST_INADDR_BROADCAST)
740
+ # define INADDR_BROADCAST INADDR_BROADCAST
741
+ # else
742
+ # define INADDR_BROADCAST 0xffffffff
743
+ # endif
744
+ #endif
745
+ #if !defined(INADDR_LOOPBACK)
746
+ # if defined(HAVE_CONST_INADDR_LOOPBACK)
747
+ # define INADDR_LOOPBACK INADDR_LOOPBACK
748
+ # else
749
+ # define INADDR_LOOPBACK 0x7F000001
750
+ # endif
751
+ #endif
752
+ #if !defined(INADDR_UNSPEC_GROUP)
753
+ # if defined(HAVE_CONST_INADDR_UNSPEC_GROUP)
754
+ # define INADDR_UNSPEC_GROUP INADDR_UNSPEC_GROUP
755
+ # else
756
+ # define INADDR_UNSPEC_GROUP 0xe0000000
757
+ # endif
758
+ #endif
759
+ #if !defined(INADDR_ALLHOSTS_GROUP)
760
+ # if defined(HAVE_CONST_INADDR_ALLHOSTS_GROUP)
761
+ # define INADDR_ALLHOSTS_GROUP INADDR_ALLHOSTS_GROUP
762
+ # else
763
+ # define INADDR_ALLHOSTS_GROUP 0xe0000001
764
+ # endif
765
+ #endif
766
+ #if !defined(INADDR_MAX_LOCAL_GROUP)
767
+ # if defined(HAVE_CONST_INADDR_MAX_LOCAL_GROUP)
768
+ # define INADDR_MAX_LOCAL_GROUP INADDR_MAX_LOCAL_GROUP
769
+ # else
770
+ # define INADDR_MAX_LOCAL_GROUP 0xe00000ff
771
+ # endif
772
+ #endif
773
+ #if !defined(INADDR_NONE)
774
+ # if defined(HAVE_CONST_INADDR_NONE)
775
+ # define INADDR_NONE INADDR_NONE
776
+ # else
777
+ # define INADDR_NONE 0xffffffff
778
+ # endif
779
+ #endif
780
+ #if !defined(IP_OPTIONS)
781
+ # if defined(HAVE_CONST_IP_OPTIONS)
782
+ # define IP_OPTIONS IP_OPTIONS
783
+ # endif
784
+ #endif
785
+ #if !defined(IP_HDRINCL)
786
+ # if defined(HAVE_CONST_IP_HDRINCL)
787
+ # define IP_HDRINCL IP_HDRINCL
788
+ # endif
789
+ #endif
790
+ #if !defined(IP_TOS)
791
+ # if defined(HAVE_CONST_IP_TOS)
792
+ # define IP_TOS IP_TOS
793
+ # endif
794
+ #endif
795
+ #if !defined(IP_TTL)
796
+ # if defined(HAVE_CONST_IP_TTL)
797
+ # define IP_TTL IP_TTL
798
+ # endif
799
+ #endif
800
+ #if !defined(IP_RECVOPTS)
801
+ # if defined(HAVE_CONST_IP_RECVOPTS)
802
+ # define IP_RECVOPTS IP_RECVOPTS
803
+ # endif
804
+ #endif
805
+ #if !defined(IP_RECVRETOPTS)
806
+ # if defined(HAVE_CONST_IP_RECVRETOPTS)
807
+ # define IP_RECVRETOPTS IP_RECVRETOPTS
808
+ # endif
809
+ #endif
810
+ #if !defined(IP_RECVDSTADDR)
811
+ # if defined(HAVE_CONST_IP_RECVDSTADDR)
812
+ # define IP_RECVDSTADDR IP_RECVDSTADDR
813
+ # endif
814
+ #endif
815
+ #if !defined(IP_RETOPTS)
816
+ # if defined(HAVE_CONST_IP_RETOPTS)
817
+ # define IP_RETOPTS IP_RETOPTS
818
+ # endif
819
+ #endif
820
+ #if !defined(IP_MINTTL)
821
+ # if defined(HAVE_CONST_IP_MINTTL)
822
+ # define IP_MINTTL IP_MINTTL
823
+ # endif
824
+ #endif
825
+ #if !defined(IP_DONTFRAG)
826
+ # if defined(HAVE_CONST_IP_DONTFRAG)
827
+ # define IP_DONTFRAG IP_DONTFRAG
828
+ # endif
829
+ #endif
830
+ #if !defined(IP_SENDSRCADDR)
831
+ # if defined(HAVE_CONST_IP_SENDSRCADDR)
832
+ # define IP_SENDSRCADDR IP_SENDSRCADDR
833
+ # endif
834
+ #endif
835
+ #if !defined(IP_ONESBCAST)
836
+ # if defined(HAVE_CONST_IP_ONESBCAST)
837
+ # define IP_ONESBCAST IP_ONESBCAST
838
+ # endif
839
+ #endif
840
+ #if !defined(IP_RECVTTL)
841
+ # if defined(HAVE_CONST_IP_RECVTTL)
842
+ # define IP_RECVTTL IP_RECVTTL
843
+ # endif
844
+ #endif
845
+ #if !defined(IP_RECVIF)
846
+ # if defined(HAVE_CONST_IP_RECVIF)
847
+ # define IP_RECVIF IP_RECVIF
848
+ # endif
849
+ #endif
850
+ #if !defined(IP_RECVSLLA)
851
+ # if defined(HAVE_CONST_IP_RECVSLLA)
852
+ # define IP_RECVSLLA IP_RECVSLLA
853
+ # endif
854
+ #endif
855
+ #if !defined(IP_PORTRANGE)
856
+ # if defined(HAVE_CONST_IP_PORTRANGE)
857
+ # define IP_PORTRANGE IP_PORTRANGE
858
+ # endif
859
+ #endif
860
+ #if !defined(IP_MULTICAST_IF)
861
+ # if defined(HAVE_CONST_IP_MULTICAST_IF)
862
+ # define IP_MULTICAST_IF IP_MULTICAST_IF
863
+ # endif
864
+ #endif
865
+ #if !defined(IP_MULTICAST_TTL)
866
+ # if defined(HAVE_CONST_IP_MULTICAST_TTL)
867
+ # define IP_MULTICAST_TTL IP_MULTICAST_TTL
868
+ # endif
869
+ #endif
870
+ #if !defined(IP_MULTICAST_LOOP)
871
+ # if defined(HAVE_CONST_IP_MULTICAST_LOOP)
872
+ # define IP_MULTICAST_LOOP IP_MULTICAST_LOOP
873
+ # endif
874
+ #endif
875
+ #if !defined(IP_ADD_MEMBERSHIP)
876
+ # if defined(HAVE_CONST_IP_ADD_MEMBERSHIP)
877
+ # define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP
878
+ # endif
879
+ #endif
880
+ #if !defined(IP_DROP_MEMBERSHIP)
881
+ # if defined(HAVE_CONST_IP_DROP_MEMBERSHIP)
882
+ # define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP
883
+ # endif
884
+ #endif
885
+ #if !defined(IP_DEFAULT_MULTICAST_TTL)
886
+ # if defined(HAVE_CONST_IP_DEFAULT_MULTICAST_TTL)
887
+ # define IP_DEFAULT_MULTICAST_TTL IP_DEFAULT_MULTICAST_TTL
888
+ # endif
889
+ #endif
890
+ #if !defined(IP_DEFAULT_MULTICAST_LOOP)
891
+ # if defined(HAVE_CONST_IP_DEFAULT_MULTICAST_LOOP)
892
+ # define IP_DEFAULT_MULTICAST_LOOP IP_DEFAULT_MULTICAST_LOOP
893
+ # endif
894
+ #endif
895
+ #if !defined(IP_MAX_MEMBERSHIPS)
896
+ # if defined(HAVE_CONST_IP_MAX_MEMBERSHIPS)
897
+ # define IP_MAX_MEMBERSHIPS IP_MAX_MEMBERSHIPS
898
+ # endif
899
+ #endif
900
+ #if !defined(IP_ROUTER_ALERT)
901
+ # if defined(HAVE_CONST_IP_ROUTER_ALERT)
902
+ # define IP_ROUTER_ALERT IP_ROUTER_ALERT
903
+ # endif
904
+ #endif
905
+ #if !defined(IP_PKTINFO)
906
+ # if defined(HAVE_CONST_IP_PKTINFO)
907
+ # define IP_PKTINFO IP_PKTINFO
908
+ # endif
909
+ #endif
910
+ #if !defined(IP_PKTOPTIONS)
911
+ # if defined(HAVE_CONST_IP_PKTOPTIONS)
912
+ # define IP_PKTOPTIONS IP_PKTOPTIONS
913
+ # endif
914
+ #endif
915
+ #if !defined(IP_MTU_DISCOVER)
916
+ # if defined(HAVE_CONST_IP_MTU_DISCOVER)
917
+ # define IP_MTU_DISCOVER IP_MTU_DISCOVER
918
+ # endif
919
+ #endif
920
+ #if !defined(IP_RECVERR)
921
+ # if defined(HAVE_CONST_IP_RECVERR)
922
+ # define IP_RECVERR IP_RECVERR
923
+ # endif
924
+ #endif
925
+ #if !defined(IP_RECVTOS)
926
+ # if defined(HAVE_CONST_IP_RECVTOS)
927
+ # define IP_RECVTOS IP_RECVTOS
928
+ # endif
929
+ #endif
930
+ #if !defined(IP_MTU)
931
+ # if defined(HAVE_CONST_IP_MTU)
932
+ # define IP_MTU IP_MTU
933
+ # endif
934
+ #endif
935
+ #if !defined(IP_FREEBIND)
936
+ # if defined(HAVE_CONST_IP_FREEBIND)
937
+ # define IP_FREEBIND IP_FREEBIND
938
+ # endif
939
+ #endif
940
+ #if !defined(IP_IPSEC_POLICY)
941
+ # if defined(HAVE_CONST_IP_IPSEC_POLICY)
942
+ # define IP_IPSEC_POLICY IP_IPSEC_POLICY
943
+ # endif
944
+ #endif
945
+ #if !defined(IP_XFRM_POLICY)
946
+ # if defined(HAVE_CONST_IP_XFRM_POLICY)
947
+ # define IP_XFRM_POLICY IP_XFRM_POLICY
948
+ # endif
949
+ #endif
950
+ #if !defined(IP_PASSSEC)
951
+ # if defined(HAVE_CONST_IP_PASSSEC)
952
+ # define IP_PASSSEC IP_PASSSEC
953
+ # endif
954
+ #endif
955
+ #if !defined(IP_PMTUDISC_DONT)
956
+ # if defined(HAVE_CONST_IP_PMTUDISC_DONT)
957
+ # define IP_PMTUDISC_DONT IP_PMTUDISC_DONT
958
+ # endif
959
+ #endif
960
+ #if !defined(IP_PMTUDISC_WANT)
961
+ # if defined(HAVE_CONST_IP_PMTUDISC_WANT)
962
+ # define IP_PMTUDISC_WANT IP_PMTUDISC_WANT
963
+ # endif
964
+ #endif
965
+ #if !defined(IP_PMTUDISC_DO)
966
+ # if defined(HAVE_CONST_IP_PMTUDISC_DO)
967
+ # define IP_PMTUDISC_DO IP_PMTUDISC_DO
968
+ # endif
969
+ #endif
970
+ #if !defined(IP_UNBLOCK_SOURCE)
971
+ # if defined(HAVE_CONST_IP_UNBLOCK_SOURCE)
972
+ # define IP_UNBLOCK_SOURCE IP_UNBLOCK_SOURCE
973
+ # endif
974
+ #endif
975
+ #if !defined(IP_BLOCK_SOURCE)
976
+ # if defined(HAVE_CONST_IP_BLOCK_SOURCE)
977
+ # define IP_BLOCK_SOURCE IP_BLOCK_SOURCE
978
+ # endif
979
+ #endif
980
+ #if !defined(IP_ADD_SOURCE_MEMBERSHIP)
981
+ # if defined(HAVE_CONST_IP_ADD_SOURCE_MEMBERSHIP)
982
+ # define IP_ADD_SOURCE_MEMBERSHIP IP_ADD_SOURCE_MEMBERSHIP
983
+ # endif
984
+ #endif
985
+ #if !defined(IP_DROP_SOURCE_MEMBERSHIP)
986
+ # if defined(HAVE_CONST_IP_DROP_SOURCE_MEMBERSHIP)
987
+ # define IP_DROP_SOURCE_MEMBERSHIP IP_DROP_SOURCE_MEMBERSHIP
988
+ # endif
989
+ #endif
990
+ #if !defined(IP_MSFILTER)
991
+ # if defined(HAVE_CONST_IP_MSFILTER)
992
+ # define IP_MSFILTER IP_MSFILTER
993
+ # endif
994
+ #endif
995
+ #if !defined(MCAST_JOIN_GROUP)
996
+ # if defined(HAVE_CONST_MCAST_JOIN_GROUP)
997
+ # define MCAST_JOIN_GROUP MCAST_JOIN_GROUP
998
+ # endif
999
+ #endif
1000
+ #if !defined(MCAST_BLOCK_SOURCE)
1001
+ # if defined(HAVE_CONST_MCAST_BLOCK_SOURCE)
1002
+ # define MCAST_BLOCK_SOURCE MCAST_BLOCK_SOURCE
1003
+ # endif
1004
+ #endif
1005
+ #if !defined(MCAST_UNBLOCK_SOURCE)
1006
+ # if defined(HAVE_CONST_MCAST_UNBLOCK_SOURCE)
1007
+ # define MCAST_UNBLOCK_SOURCE MCAST_UNBLOCK_SOURCE
1008
+ # endif
1009
+ #endif
1010
+ #if !defined(MCAST_LEAVE_GROUP)
1011
+ # if defined(HAVE_CONST_MCAST_LEAVE_GROUP)
1012
+ # define MCAST_LEAVE_GROUP MCAST_LEAVE_GROUP
1013
+ # endif
1014
+ #endif
1015
+ #if !defined(MCAST_JOIN_SOURCE_GROUP)
1016
+ # if defined(HAVE_CONST_MCAST_JOIN_SOURCE_GROUP)
1017
+ # define MCAST_JOIN_SOURCE_GROUP MCAST_JOIN_SOURCE_GROUP
1018
+ # endif
1019
+ #endif
1020
+ #if !defined(MCAST_LEAVE_SOURCE_GROUP)
1021
+ # if defined(HAVE_CONST_MCAST_LEAVE_SOURCE_GROUP)
1022
+ # define MCAST_LEAVE_SOURCE_GROUP MCAST_LEAVE_SOURCE_GROUP
1023
+ # endif
1024
+ #endif
1025
+ #if !defined(MCAST_MSFILTER)
1026
+ # if defined(HAVE_CONST_MCAST_MSFILTER)
1027
+ # define MCAST_MSFILTER MCAST_MSFILTER
1028
+ # endif
1029
+ #endif
1030
+ #if !defined(MCAST_EXCLUDE)
1031
+ # if defined(HAVE_CONST_MCAST_EXCLUDE)
1032
+ # define MCAST_EXCLUDE MCAST_EXCLUDE
1033
+ # endif
1034
+ #endif
1035
+ #if !defined(MCAST_INCLUDE)
1036
+ # if defined(HAVE_CONST_MCAST_INCLUDE)
1037
+ # define MCAST_INCLUDE MCAST_INCLUDE
1038
+ # endif
1039
+ #endif
1040
+ #if !defined(SO_DEBUG)
1041
+ # if defined(HAVE_CONST_SO_DEBUG)
1042
+ # define SO_DEBUG SO_DEBUG
1043
+ # endif
1044
+ #endif
1045
+ #if !defined(SO_REUSEADDR)
1046
+ # if defined(HAVE_CONST_SO_REUSEADDR)
1047
+ # define SO_REUSEADDR SO_REUSEADDR
1048
+ # endif
1049
+ #endif
1050
+ #if !defined(SO_REUSEPORT)
1051
+ # if defined(HAVE_CONST_SO_REUSEPORT)
1052
+ # define SO_REUSEPORT SO_REUSEPORT
1053
+ # endif
1054
+ #endif
1055
+ #if !defined(SO_TYPE)
1056
+ # if defined(HAVE_CONST_SO_TYPE)
1057
+ # define SO_TYPE SO_TYPE
1058
+ # endif
1059
+ #endif
1060
+ #if !defined(SO_ERROR)
1061
+ # if defined(HAVE_CONST_SO_ERROR)
1062
+ # define SO_ERROR SO_ERROR
1063
+ # endif
1064
+ #endif
1065
+ #if !defined(SO_DONTROUTE)
1066
+ # if defined(HAVE_CONST_SO_DONTROUTE)
1067
+ # define SO_DONTROUTE SO_DONTROUTE
1068
+ # endif
1069
+ #endif
1070
+ #if !defined(SO_BROADCAST)
1071
+ # if defined(HAVE_CONST_SO_BROADCAST)
1072
+ # define SO_BROADCAST SO_BROADCAST
1073
+ # endif
1074
+ #endif
1075
+ #if !defined(SO_SNDBUF)
1076
+ # if defined(HAVE_CONST_SO_SNDBUF)
1077
+ # define SO_SNDBUF SO_SNDBUF
1078
+ # endif
1079
+ #endif
1080
+ #if !defined(SO_RCVBUF)
1081
+ # if defined(HAVE_CONST_SO_RCVBUF)
1082
+ # define SO_RCVBUF SO_RCVBUF
1083
+ # endif
1084
+ #endif
1085
+ #if !defined(SO_KEEPALIVE)
1086
+ # if defined(HAVE_CONST_SO_KEEPALIVE)
1087
+ # define SO_KEEPALIVE SO_KEEPALIVE
1088
+ # endif
1089
+ #endif
1090
+ #if !defined(SO_OOBINLINE)
1091
+ # if defined(HAVE_CONST_SO_OOBINLINE)
1092
+ # define SO_OOBINLINE SO_OOBINLINE
1093
+ # endif
1094
+ #endif
1095
+ #if !defined(SO_NO_CHECK)
1096
+ # if defined(HAVE_CONST_SO_NO_CHECK)
1097
+ # define SO_NO_CHECK SO_NO_CHECK
1098
+ # endif
1099
+ #endif
1100
+ #if !defined(SO_PRIORITY)
1101
+ # if defined(HAVE_CONST_SO_PRIORITY)
1102
+ # define SO_PRIORITY SO_PRIORITY
1103
+ # endif
1104
+ #endif
1105
+ #if !defined(SO_LINGER)
1106
+ # if defined(HAVE_CONST_SO_LINGER)
1107
+ # define SO_LINGER SO_LINGER
1108
+ # endif
1109
+ #endif
1110
+ #if !defined(SO_PASSCRED)
1111
+ # if defined(HAVE_CONST_SO_PASSCRED)
1112
+ # define SO_PASSCRED SO_PASSCRED
1113
+ # endif
1114
+ #endif
1115
+ #if !defined(SO_PEERCRED)
1116
+ # if defined(HAVE_CONST_SO_PEERCRED)
1117
+ # define SO_PEERCRED SO_PEERCRED
1118
+ # endif
1119
+ #endif
1120
+ #if !defined(SO_RCVLOWAT)
1121
+ # if defined(HAVE_CONST_SO_RCVLOWAT)
1122
+ # define SO_RCVLOWAT SO_RCVLOWAT
1123
+ # endif
1124
+ #endif
1125
+ #if !defined(SO_SNDLOWAT)
1126
+ # if defined(HAVE_CONST_SO_SNDLOWAT)
1127
+ # define SO_SNDLOWAT SO_SNDLOWAT
1128
+ # endif
1129
+ #endif
1130
+ #if !defined(SO_RCVTIMEO)
1131
+ # if defined(HAVE_CONST_SO_RCVTIMEO)
1132
+ # define SO_RCVTIMEO SO_RCVTIMEO
1133
+ # endif
1134
+ #endif
1135
+ #if !defined(SO_SNDTIMEO)
1136
+ # if defined(HAVE_CONST_SO_SNDTIMEO)
1137
+ # define SO_SNDTIMEO SO_SNDTIMEO
1138
+ # endif
1139
+ #endif
1140
+ #if !defined(SO_ACCEPTCONN)
1141
+ # if defined(HAVE_CONST_SO_ACCEPTCONN)
1142
+ # define SO_ACCEPTCONN SO_ACCEPTCONN
1143
+ # endif
1144
+ #endif
1145
+ #if !defined(SO_USELOOPBACK)
1146
+ # if defined(HAVE_CONST_SO_USELOOPBACK)
1147
+ # define SO_USELOOPBACK SO_USELOOPBACK
1148
+ # endif
1149
+ #endif
1150
+ #if !defined(SO_ACCEPTFILTER)
1151
+ # if defined(HAVE_CONST_SO_ACCEPTFILTER)
1152
+ # define SO_ACCEPTFILTER SO_ACCEPTFILTER
1153
+ # endif
1154
+ #endif
1155
+ #if !defined(SO_DONTTRUNC)
1156
+ # if defined(HAVE_CONST_SO_DONTTRUNC)
1157
+ # define SO_DONTTRUNC SO_DONTTRUNC
1158
+ # endif
1159
+ #endif
1160
+ #if !defined(SO_WANTMORE)
1161
+ # if defined(HAVE_CONST_SO_WANTMORE)
1162
+ # define SO_WANTMORE SO_WANTMORE
1163
+ # endif
1164
+ #endif
1165
+ #if !defined(SO_WANTOOBFLAG)
1166
+ # if defined(HAVE_CONST_SO_WANTOOBFLAG)
1167
+ # define SO_WANTOOBFLAG SO_WANTOOBFLAG
1168
+ # endif
1169
+ #endif
1170
+ #if !defined(SO_NREAD)
1171
+ # if defined(HAVE_CONST_SO_NREAD)
1172
+ # define SO_NREAD SO_NREAD
1173
+ # endif
1174
+ #endif
1175
+ #if !defined(SO_NKE)
1176
+ # if defined(HAVE_CONST_SO_NKE)
1177
+ # define SO_NKE SO_NKE
1178
+ # endif
1179
+ #endif
1180
+ #if !defined(SO_NOSIGPIPE)
1181
+ # if defined(HAVE_CONST_SO_NOSIGPIPE)
1182
+ # define SO_NOSIGPIPE SO_NOSIGPIPE
1183
+ # endif
1184
+ #endif
1185
+ #if !defined(SO_SECURITY_AUTHENTICATION)
1186
+ # if defined(HAVE_CONST_SO_SECURITY_AUTHENTICATION)
1187
+ # define SO_SECURITY_AUTHENTICATION SO_SECURITY_AUTHENTICATION
1188
+ # endif
1189
+ #endif
1190
+ #if !defined(SO_SECURITY_ENCRYPTION_TRANSPORT)
1191
+ # if defined(HAVE_CONST_SO_SECURITY_ENCRYPTION_TRANSPORT)
1192
+ # define SO_SECURITY_ENCRYPTION_TRANSPORT SO_SECURITY_ENCRYPTION_TRANSPORT
1193
+ # endif
1194
+ #endif
1195
+ #if !defined(SO_SECURITY_ENCRYPTION_NETWORK)
1196
+ # if defined(HAVE_CONST_SO_SECURITY_ENCRYPTION_NETWORK)
1197
+ # define SO_SECURITY_ENCRYPTION_NETWORK SO_SECURITY_ENCRYPTION_NETWORK
1198
+ # endif
1199
+ #endif
1200
+ #if !defined(SO_BINDTODEVICE)
1201
+ # if defined(HAVE_CONST_SO_BINDTODEVICE)
1202
+ # define SO_BINDTODEVICE SO_BINDTODEVICE
1203
+ # endif
1204
+ #endif
1205
+ #if !defined(SO_ATTACH_FILTER)
1206
+ # if defined(HAVE_CONST_SO_ATTACH_FILTER)
1207
+ # define SO_ATTACH_FILTER SO_ATTACH_FILTER
1208
+ # endif
1209
+ #endif
1210
+ #if !defined(SO_DETACH_FILTER)
1211
+ # if defined(HAVE_CONST_SO_DETACH_FILTER)
1212
+ # define SO_DETACH_FILTER SO_DETACH_FILTER
1213
+ # endif
1214
+ #endif
1215
+ #if !defined(SO_PEERNAME)
1216
+ # if defined(HAVE_CONST_SO_PEERNAME)
1217
+ # define SO_PEERNAME SO_PEERNAME
1218
+ # endif
1219
+ #endif
1220
+ #if !defined(SO_TIMESTAMP)
1221
+ # if defined(HAVE_CONST_SO_TIMESTAMP)
1222
+ # define SO_TIMESTAMP SO_TIMESTAMP
1223
+ # endif
1224
+ #endif
1225
+ #if !defined(SO_TIMESTAMPNS)
1226
+ # if defined(HAVE_CONST_SO_TIMESTAMPNS)
1227
+ # define SO_TIMESTAMPNS SO_TIMESTAMPNS
1228
+ # endif
1229
+ #endif
1230
+ #if !defined(SO_BINTIME)
1231
+ # if defined(HAVE_CONST_SO_BINTIME)
1232
+ # define SO_BINTIME SO_BINTIME
1233
+ # endif
1234
+ #endif
1235
+ #if !defined(SO_RECVUCRED)
1236
+ # if defined(HAVE_CONST_SO_RECVUCRED)
1237
+ # define SO_RECVUCRED SO_RECVUCRED
1238
+ # endif
1239
+ #endif
1240
+ #if !defined(SO_MAC_EXEMPT)
1241
+ # if defined(HAVE_CONST_SO_MAC_EXEMPT)
1242
+ # define SO_MAC_EXEMPT SO_MAC_EXEMPT
1243
+ # endif
1244
+ #endif
1245
+ #if !defined(SO_ALLZONES)
1246
+ # if defined(HAVE_CONST_SO_ALLZONES)
1247
+ # define SO_ALLZONES SO_ALLZONES
1248
+ # endif
1249
+ #endif
1250
+ #if !defined(SOPRI_INTERACTIVE)
1251
+ # if defined(HAVE_CONST_SOPRI_INTERACTIVE)
1252
+ # define SOPRI_INTERACTIVE SOPRI_INTERACTIVE
1253
+ # endif
1254
+ #endif
1255
+ #if !defined(SOPRI_NORMAL)
1256
+ # if defined(HAVE_CONST_SOPRI_NORMAL)
1257
+ # define SOPRI_NORMAL SOPRI_NORMAL
1258
+ # endif
1259
+ #endif
1260
+ #if !defined(SOPRI_BACKGROUND)
1261
+ # if defined(HAVE_CONST_SOPRI_BACKGROUND)
1262
+ # define SOPRI_BACKGROUND SOPRI_BACKGROUND
1263
+ # endif
1264
+ #endif
1265
+ #if !defined(IPX_TYPE)
1266
+ # if defined(HAVE_CONST_IPX_TYPE)
1267
+ # define IPX_TYPE IPX_TYPE
1268
+ # endif
1269
+ #endif
1270
+ #if !defined(TCP_NODELAY)
1271
+ # if defined(HAVE_CONST_TCP_NODELAY)
1272
+ # define TCP_NODELAY TCP_NODELAY
1273
+ # endif
1274
+ #endif
1275
+ #if !defined(TCP_MAXSEG)
1276
+ # if defined(HAVE_CONST_TCP_MAXSEG)
1277
+ # define TCP_MAXSEG TCP_MAXSEG
1278
+ # endif
1279
+ #endif
1280
+ #if !defined(TCP_CORK)
1281
+ # if defined(HAVE_CONST_TCP_CORK)
1282
+ # define TCP_CORK TCP_CORK
1283
+ # endif
1284
+ #endif
1285
+ #if !defined(TCP_DEFER_ACCEPT)
1286
+ # if defined(HAVE_CONST_TCP_DEFER_ACCEPT)
1287
+ # define TCP_DEFER_ACCEPT TCP_DEFER_ACCEPT
1288
+ # endif
1289
+ #endif
1290
+ #if !defined(TCP_INFO)
1291
+ # if defined(HAVE_CONST_TCP_INFO)
1292
+ # define TCP_INFO TCP_INFO
1293
+ # endif
1294
+ #endif
1295
+ #if !defined(TCP_KEEPCNT)
1296
+ # if defined(HAVE_CONST_TCP_KEEPCNT)
1297
+ # define TCP_KEEPCNT TCP_KEEPCNT
1298
+ # endif
1299
+ #endif
1300
+ #if !defined(TCP_KEEPIDLE)
1301
+ # if defined(HAVE_CONST_TCP_KEEPIDLE)
1302
+ # define TCP_KEEPIDLE TCP_KEEPIDLE
1303
+ # endif
1304
+ #endif
1305
+ #if !defined(TCP_KEEPINTVL)
1306
+ # if defined(HAVE_CONST_TCP_KEEPINTVL)
1307
+ # define TCP_KEEPINTVL TCP_KEEPINTVL
1308
+ # endif
1309
+ #endif
1310
+ #if !defined(TCP_LINGER2)
1311
+ # if defined(HAVE_CONST_TCP_LINGER2)
1312
+ # define TCP_LINGER2 TCP_LINGER2
1313
+ # endif
1314
+ #endif
1315
+ #if !defined(TCP_MD5SIG)
1316
+ # if defined(HAVE_CONST_TCP_MD5SIG)
1317
+ # define TCP_MD5SIG TCP_MD5SIG
1318
+ # endif
1319
+ #endif
1320
+ #if !defined(TCP_NOOPT)
1321
+ # if defined(HAVE_CONST_TCP_NOOPT)
1322
+ # define TCP_NOOPT TCP_NOOPT
1323
+ # endif
1324
+ #endif
1325
+ #if !defined(TCP_NOPUSH)
1326
+ # if defined(HAVE_CONST_TCP_NOPUSH)
1327
+ # define TCP_NOPUSH TCP_NOPUSH
1328
+ # endif
1329
+ #endif
1330
+ #if !defined(TCP_QUICKACK)
1331
+ # if defined(HAVE_CONST_TCP_QUICKACK)
1332
+ # define TCP_QUICKACK TCP_QUICKACK
1333
+ # endif
1334
+ #endif
1335
+ #if !defined(TCP_SYNCNT)
1336
+ # if defined(HAVE_CONST_TCP_SYNCNT)
1337
+ # define TCP_SYNCNT TCP_SYNCNT
1338
+ # endif
1339
+ #endif
1340
+ #if !defined(TCP_WINDOW_CLAMP)
1341
+ # if defined(HAVE_CONST_TCP_WINDOW_CLAMP)
1342
+ # define TCP_WINDOW_CLAMP TCP_WINDOW_CLAMP
1343
+ # endif
1344
+ #endif
1345
+ #if !defined(UDP_CORK)
1346
+ # if defined(HAVE_CONST_UDP_CORK)
1347
+ # define UDP_CORK UDP_CORK
1348
+ # endif
1349
+ #endif
1350
+ #if !defined(EAI_ADDRFAMILY)
1351
+ # if defined(HAVE_CONST_EAI_ADDRFAMILY)
1352
+ # define EAI_ADDRFAMILY EAI_ADDRFAMILY
1353
+ # endif
1354
+ #endif
1355
+ #if !defined(EAI_AGAIN)
1356
+ # if defined(HAVE_CONST_EAI_AGAIN)
1357
+ # define EAI_AGAIN EAI_AGAIN
1358
+ # endif
1359
+ #endif
1360
+ #if !defined(EAI_BADFLAGS)
1361
+ # if defined(HAVE_CONST_EAI_BADFLAGS)
1362
+ # define EAI_BADFLAGS EAI_BADFLAGS
1363
+ # endif
1364
+ #endif
1365
+ #if !defined(EAI_FAIL)
1366
+ # if defined(HAVE_CONST_EAI_FAIL)
1367
+ # define EAI_FAIL EAI_FAIL
1368
+ # endif
1369
+ #endif
1370
+ #if !defined(EAI_FAMILY)
1371
+ # if defined(HAVE_CONST_EAI_FAMILY)
1372
+ # define EAI_FAMILY EAI_FAMILY
1373
+ # endif
1374
+ #endif
1375
+ #if !defined(EAI_MEMORY)
1376
+ # if defined(HAVE_CONST_EAI_MEMORY)
1377
+ # define EAI_MEMORY EAI_MEMORY
1378
+ # endif
1379
+ #endif
1380
+ #if !defined(EAI_NODATA)
1381
+ # if defined(HAVE_CONST_EAI_NODATA)
1382
+ # define EAI_NODATA EAI_NODATA
1383
+ # endif
1384
+ #endif
1385
+ #if !defined(EAI_NONAME)
1386
+ # if defined(HAVE_CONST_EAI_NONAME)
1387
+ # define EAI_NONAME EAI_NONAME
1388
+ # endif
1389
+ #endif
1390
+ #if !defined(EAI_OVERFLOW)
1391
+ # if defined(HAVE_CONST_EAI_OVERFLOW)
1392
+ # define EAI_OVERFLOW EAI_OVERFLOW
1393
+ # endif
1394
+ #endif
1395
+ #if !defined(EAI_SERVICE)
1396
+ # if defined(HAVE_CONST_EAI_SERVICE)
1397
+ # define EAI_SERVICE EAI_SERVICE
1398
+ # endif
1399
+ #endif
1400
+ #if !defined(EAI_SOCKTYPE)
1401
+ # if defined(HAVE_CONST_EAI_SOCKTYPE)
1402
+ # define EAI_SOCKTYPE EAI_SOCKTYPE
1403
+ # endif
1404
+ #endif
1405
+ #if !defined(EAI_SYSTEM)
1406
+ # if defined(HAVE_CONST_EAI_SYSTEM)
1407
+ # define EAI_SYSTEM EAI_SYSTEM
1408
+ # endif
1409
+ #endif
1410
+ #if !defined(EAI_BADHINTS)
1411
+ # if defined(HAVE_CONST_EAI_BADHINTS)
1412
+ # define EAI_BADHINTS EAI_BADHINTS
1413
+ # endif
1414
+ #endif
1415
+ #if !defined(EAI_PROTOCOL)
1416
+ # if defined(HAVE_CONST_EAI_PROTOCOL)
1417
+ # define EAI_PROTOCOL EAI_PROTOCOL
1418
+ # endif
1419
+ #endif
1420
+ #if !defined(EAI_MAX)
1421
+ # if defined(HAVE_CONST_EAI_MAX)
1422
+ # define EAI_MAX EAI_MAX
1423
+ # endif
1424
+ #endif
1425
+ #if !defined(AI_PASSIVE)
1426
+ # if defined(HAVE_CONST_AI_PASSIVE)
1427
+ # define AI_PASSIVE AI_PASSIVE
1428
+ # endif
1429
+ #endif
1430
+ #if !defined(AI_CANONNAME)
1431
+ # if defined(HAVE_CONST_AI_CANONNAME)
1432
+ # define AI_CANONNAME AI_CANONNAME
1433
+ # endif
1434
+ #endif
1435
+ #if !defined(AI_NUMERICHOST)
1436
+ # if defined(HAVE_CONST_AI_NUMERICHOST)
1437
+ # define AI_NUMERICHOST AI_NUMERICHOST
1438
+ # endif
1439
+ #endif
1440
+ #if !defined(AI_NUMERICSERV)
1441
+ # if defined(HAVE_CONST_AI_NUMERICSERV)
1442
+ # define AI_NUMERICSERV AI_NUMERICSERV
1443
+ # endif
1444
+ #endif
1445
+ #if !defined(AI_MASK)
1446
+ # if defined(HAVE_CONST_AI_MASK)
1447
+ # define AI_MASK AI_MASK
1448
+ # endif
1449
+ #endif
1450
+ #if !defined(AI_ALL)
1451
+ # if defined(HAVE_CONST_AI_ALL)
1452
+ # define AI_ALL AI_ALL
1453
+ # endif
1454
+ #endif
1455
+ #if !defined(AI_V4MAPPED_CFG)
1456
+ # if defined(HAVE_CONST_AI_V4MAPPED_CFG)
1457
+ # define AI_V4MAPPED_CFG AI_V4MAPPED_CFG
1458
+ # endif
1459
+ #endif
1460
+ #if !defined(AI_ADDRCONFIG)
1461
+ # if defined(HAVE_CONST_AI_ADDRCONFIG)
1462
+ # define AI_ADDRCONFIG AI_ADDRCONFIG
1463
+ # endif
1464
+ #endif
1465
+ #if !defined(AI_V4MAPPED)
1466
+ # if defined(HAVE_CONST_AI_V4MAPPED)
1467
+ # define AI_V4MAPPED AI_V4MAPPED
1468
+ # endif
1469
+ #endif
1470
+ #if !defined(AI_DEFAULT)
1471
+ # if defined(HAVE_CONST_AI_DEFAULT)
1472
+ # define AI_DEFAULT AI_DEFAULT
1473
+ # endif
1474
+ #endif
1475
+ #if !defined(NI_MAXHOST)
1476
+ # if defined(HAVE_CONST_NI_MAXHOST)
1477
+ # define NI_MAXHOST NI_MAXHOST
1478
+ # endif
1479
+ #endif
1480
+ #if !defined(NI_MAXSERV)
1481
+ # if defined(HAVE_CONST_NI_MAXSERV)
1482
+ # define NI_MAXSERV NI_MAXSERV
1483
+ # endif
1484
+ #endif
1485
+ #if !defined(NI_NOFQDN)
1486
+ # if defined(HAVE_CONST_NI_NOFQDN)
1487
+ # define NI_NOFQDN NI_NOFQDN
1488
+ # endif
1489
+ #endif
1490
+ #if !defined(NI_NUMERICHOST)
1491
+ # if defined(HAVE_CONST_NI_NUMERICHOST)
1492
+ # define NI_NUMERICHOST NI_NUMERICHOST
1493
+ # endif
1494
+ #endif
1495
+ #if !defined(NI_NAMEREQD)
1496
+ # if defined(HAVE_CONST_NI_NAMEREQD)
1497
+ # define NI_NAMEREQD NI_NAMEREQD
1498
+ # endif
1499
+ #endif
1500
+ #if !defined(NI_NUMERICSERV)
1501
+ # if defined(HAVE_CONST_NI_NUMERICSERV)
1502
+ # define NI_NUMERICSERV NI_NUMERICSERV
1503
+ # endif
1504
+ #endif
1505
+ #if !defined(NI_DGRAM)
1506
+ # if defined(HAVE_CONST_NI_DGRAM)
1507
+ # define NI_DGRAM NI_DGRAM
1508
+ # endif
1509
+ #endif
1510
+ #if !defined(SHUT_RD)
1511
+ # if defined(HAVE_CONST_SHUT_RD)
1512
+ # define SHUT_RD SHUT_RD
1513
+ # else
1514
+ # define SHUT_RD 0
1515
+ # endif
1516
+ #endif
1517
+ #if !defined(SHUT_WR)
1518
+ # if defined(HAVE_CONST_SHUT_WR)
1519
+ # define SHUT_WR SHUT_WR
1520
+ # else
1521
+ # define SHUT_WR 1
1522
+ # endif
1523
+ #endif
1524
+ #if !defined(SHUT_RDWR)
1525
+ # if defined(HAVE_CONST_SHUT_RDWR)
1526
+ # define SHUT_RDWR SHUT_RDWR
1527
+ # else
1528
+ # define SHUT_RDWR 2
1529
+ # endif
1530
+ #endif
1531
+ #if !defined(IPV6_JOIN_GROUP)
1532
+ # if defined(HAVE_CONST_IPV6_JOIN_GROUP)
1533
+ # define IPV6_JOIN_GROUP IPV6_JOIN_GROUP
1534
+ # endif
1535
+ #endif
1536
+ #if !defined(IPV6_LEAVE_GROUP)
1537
+ # if defined(HAVE_CONST_IPV6_LEAVE_GROUP)
1538
+ # define IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP
1539
+ # endif
1540
+ #endif
1541
+ #if !defined(IPV6_MULTICAST_HOPS)
1542
+ # if defined(HAVE_CONST_IPV6_MULTICAST_HOPS)
1543
+ # define IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS
1544
+ # endif
1545
+ #endif
1546
+ #if !defined(IPV6_MULTICAST_IF)
1547
+ # if defined(HAVE_CONST_IPV6_MULTICAST_IF)
1548
+ # define IPV6_MULTICAST_IF IPV6_MULTICAST_IF
1549
+ # endif
1550
+ #endif
1551
+ #if !defined(IPV6_MULTICAST_LOOP)
1552
+ # if defined(HAVE_CONST_IPV6_MULTICAST_LOOP)
1553
+ # define IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP
1554
+ # endif
1555
+ #endif
1556
+ #if !defined(IPV6_UNICAST_HOPS)
1557
+ # if defined(HAVE_CONST_IPV6_UNICAST_HOPS)
1558
+ # define IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS
1559
+ # endif
1560
+ #endif
1561
+ #if !defined(IPV6_V6ONLY)
1562
+ # if defined(HAVE_CONST_IPV6_V6ONLY)
1563
+ # define IPV6_V6ONLY IPV6_V6ONLY
1564
+ # endif
1565
+ #endif
1566
+ #if !defined(IPV6_CHECKSUM)
1567
+ # if defined(HAVE_CONST_IPV6_CHECKSUM)
1568
+ # define IPV6_CHECKSUM IPV6_CHECKSUM
1569
+ # endif
1570
+ #endif
1571
+ #if !defined(IPV6_DONTFRAG)
1572
+ # if defined(HAVE_CONST_IPV6_DONTFRAG)
1573
+ # define IPV6_DONTFRAG IPV6_DONTFRAG
1574
+ # endif
1575
+ #endif
1576
+ #if !defined(IPV6_DSTOPTS)
1577
+ # if defined(HAVE_CONST_IPV6_DSTOPTS)
1578
+ # define IPV6_DSTOPTS IPV6_DSTOPTS
1579
+ # endif
1580
+ #endif
1581
+ #if !defined(IPV6_HOPLIMIT)
1582
+ # if defined(HAVE_CONST_IPV6_HOPLIMIT)
1583
+ # define IPV6_HOPLIMIT IPV6_HOPLIMIT
1584
+ # endif
1585
+ #endif
1586
+ #if !defined(IPV6_HOPOPTS)
1587
+ # if defined(HAVE_CONST_IPV6_HOPOPTS)
1588
+ # define IPV6_HOPOPTS IPV6_HOPOPTS
1589
+ # endif
1590
+ #endif
1591
+ #if !defined(IPV6_NEXTHOP)
1592
+ # if defined(HAVE_CONST_IPV6_NEXTHOP)
1593
+ # define IPV6_NEXTHOP IPV6_NEXTHOP
1594
+ # endif
1595
+ #endif
1596
+ #if !defined(IPV6_PATHMTU)
1597
+ # if defined(HAVE_CONST_IPV6_PATHMTU)
1598
+ # define IPV6_PATHMTU IPV6_PATHMTU
1599
+ # endif
1600
+ #endif
1601
+ #if !defined(IPV6_PKTINFO)
1602
+ # if defined(HAVE_CONST_IPV6_PKTINFO)
1603
+ # define IPV6_PKTINFO IPV6_PKTINFO
1604
+ # endif
1605
+ #endif
1606
+ #if !defined(IPV6_RECVDSTOPTS)
1607
+ # if defined(HAVE_CONST_IPV6_RECVDSTOPTS)
1608
+ # define IPV6_RECVDSTOPTS IPV6_RECVDSTOPTS
1609
+ # endif
1610
+ #endif
1611
+ #if !defined(IPV6_RECVHOPLIMIT)
1612
+ # if defined(HAVE_CONST_IPV6_RECVHOPLIMIT)
1613
+ # define IPV6_RECVHOPLIMIT IPV6_RECVHOPLIMIT
1614
+ # endif
1615
+ #endif
1616
+ #if !defined(IPV6_RECVHOPOPTS)
1617
+ # if defined(HAVE_CONST_IPV6_RECVHOPOPTS)
1618
+ # define IPV6_RECVHOPOPTS IPV6_RECVHOPOPTS
1619
+ # endif
1620
+ #endif
1621
+ #if !defined(IPV6_RECVPKTINFO)
1622
+ # if defined(HAVE_CONST_IPV6_RECVPKTINFO)
1623
+ # define IPV6_RECVPKTINFO IPV6_RECVPKTINFO
1624
+ # endif
1625
+ #endif
1626
+ #if !defined(IPV6_RECVRTHDR)
1627
+ # if defined(HAVE_CONST_IPV6_RECVRTHDR)
1628
+ # define IPV6_RECVRTHDR IPV6_RECVRTHDR
1629
+ # endif
1630
+ #endif
1631
+ #if !defined(IPV6_RECVTCLASS)
1632
+ # if defined(HAVE_CONST_IPV6_RECVTCLASS)
1633
+ # define IPV6_RECVTCLASS IPV6_RECVTCLASS
1634
+ # endif
1635
+ #endif
1636
+ #if !defined(IPV6_RTHDR)
1637
+ # if defined(HAVE_CONST_IPV6_RTHDR)
1638
+ # define IPV6_RTHDR IPV6_RTHDR
1639
+ # endif
1640
+ #endif
1641
+ #if !defined(IPV6_RTHDRDSTOPTS)
1642
+ # if defined(HAVE_CONST_IPV6_RTHDRDSTOPTS)
1643
+ # define IPV6_RTHDRDSTOPTS IPV6_RTHDRDSTOPTS
1644
+ # endif
1645
+ #endif
1646
+ #if !defined(IPV6_RTHDR_TYPE_0)
1647
+ # if defined(HAVE_CONST_IPV6_RTHDR_TYPE_0)
1648
+ # define IPV6_RTHDR_TYPE_0 IPV6_RTHDR_TYPE_0
1649
+ # endif
1650
+ #endif
1651
+ #if !defined(IPV6_RECVPATHMTU)
1652
+ # if defined(HAVE_CONST_IPV6_RECVPATHMTU)
1653
+ # define IPV6_RECVPATHMTU IPV6_RECVPATHMTU
1654
+ # endif
1655
+ #endif
1656
+ #if !defined(IPV6_TCLASS)
1657
+ # if defined(HAVE_CONST_IPV6_TCLASS)
1658
+ # define IPV6_TCLASS IPV6_TCLASS
1659
+ # endif
1660
+ #endif
1661
+ #if !defined(IPV6_USE_MIN_MTU)
1662
+ # if defined(HAVE_CONST_IPV6_USE_MIN_MTU)
1663
+ # define IPV6_USE_MIN_MTU IPV6_USE_MIN_MTU
1664
+ # endif
1665
+ #endif
1666
+ #if !defined(INET_ADDRSTRLEN)
1667
+ # if defined(HAVE_CONST_INET_ADDRSTRLEN)
1668
+ # define INET_ADDRSTRLEN INET_ADDRSTRLEN
1669
+ # endif
1670
+ #endif
1671
+ #if !defined(INET6_ADDRSTRLEN)
1672
+ # if defined(HAVE_CONST_INET6_ADDRSTRLEN)
1673
+ # define INET6_ADDRSTRLEN INET6_ADDRSTRLEN
1674
+ # endif
1675
+ #endif
1676
+ #if !defined(IFNAMSIZ)
1677
+ # if defined(HAVE_CONST_IFNAMSIZ)
1678
+ # define IFNAMSIZ IFNAMSIZ
1679
+ # endif
1680
+ #endif
1681
+ #if !defined(SOMAXCONN)
1682
+ # if defined(HAVE_CONST_SOMAXCONN)
1683
+ # define SOMAXCONN SOMAXCONN
1684
+ # endif
1685
+ #endif
1686
+ #if !defined(SCM_RIGHTS)
1687
+ # if defined(HAVE_CONST_SCM_RIGHTS)
1688
+ # define SCM_RIGHTS SCM_RIGHTS
1689
+ # endif
1690
+ #endif
1691
+ #if !defined(SCM_TIMESTAMP)
1692
+ # if defined(HAVE_CONST_SCM_TIMESTAMP)
1693
+ # define SCM_TIMESTAMP SCM_TIMESTAMP
1694
+ # endif
1695
+ #endif
1696
+ #if !defined(SCM_TIMESTAMPNS)
1697
+ # if defined(HAVE_CONST_SCM_TIMESTAMPNS)
1698
+ # define SCM_TIMESTAMPNS SCM_TIMESTAMPNS
1699
+ # endif
1700
+ #endif
1701
+ #if !defined(SCM_BINTIME)
1702
+ # if defined(HAVE_CONST_SCM_BINTIME)
1703
+ # define SCM_BINTIME SCM_BINTIME
1704
+ # endif
1705
+ #endif
1706
+ #if !defined(SCM_CREDENTIALS)
1707
+ # if defined(HAVE_CONST_SCM_CREDENTIALS)
1708
+ # define SCM_CREDENTIALS SCM_CREDENTIALS
1709
+ # endif
1710
+ #endif
1711
+ #if !defined(SCM_CREDS)
1712
+ # if defined(HAVE_CONST_SCM_CREDS)
1713
+ # define SCM_CREDS SCM_CREDS
1714
+ # endif
1715
+ #endif
1716
+ #if !defined(SCM_UCRED)
1717
+ # if defined(HAVE_CONST_SCM_UCRED)
1718
+ # define SCM_UCRED SCM_UCRED
1719
+ # endif
1720
+ #endif
1721
+ #if !defined(LOCAL_PEERCRED)
1722
+ # if defined(HAVE_CONST_LOCAL_PEERCRED)
1723
+ # define LOCAL_PEERCRED LOCAL_PEERCRED
1724
+ # endif
1725
+ #endif
1726
+ #if !defined(LOCAL_CREDS)
1727
+ # if defined(HAVE_CONST_LOCAL_CREDS)
1728
+ # define LOCAL_CREDS LOCAL_CREDS
1729
+ # endif
1730
+ #endif
1731
+ #if !defined(LOCAL_CONNWAIT)
1732
+ # if defined(HAVE_CONST_LOCAL_CONNWAIT)
1733
+ # define LOCAL_CONNWAIT LOCAL_CONNWAIT
1734
+ # endif
1735
+ #endif
1736
+
1737
+ int rsock_family_to_int(const char *str, long len, int *valp);
1738
+
1739
+ int rsock_socktype_to_int(const char *str, long len, int *valp);
1740
+
1741
+ int rsock_ipproto_to_int(const char *str, long len, int *valp);
1742
+
1743
+ int rsock_unknown_level_to_int(const char *str, long len, int *valp);
1744
+
1745
+ int rsock_ip_level_to_int(const char *str, long len, int *valp);
1746
+
1747
+ int rsock_so_optname_to_int(const char *str, long len, int *valp);
1748
+
1749
+ int rsock_ip_optname_to_int(const char *str, long len, int *valp);
1750
+
1751
+ #ifdef IPPROTO_IPV6
1752
+ int rsock_ipv6_optname_to_int(const char *str, long len, int *valp);
1753
+ #endif
1754
+
1755
+ int rsock_tcp_optname_to_int(const char *str, long len, int *valp);
1756
+
1757
+ int rsock_udp_optname_to_int(const char *str, long len, int *valp);
1758
+
1759
+ int rsock_shutdown_how_to_int(const char *str, long len, int *valp);
1760
+
1761
+ int rsock_scm_optname_to_int(const char *str, long len, int *valp);
1762
+
1763
+ ID rsock_intern_family(int val);
1764
+
1765
+ ID rsock_intern_family_noprefix(int val);
1766
+
1767
+ ID rsock_intern_protocol_family(int val);
1768
+
1769
+ ID rsock_intern_socktype(int val);
1770
+
1771
+ ID rsock_intern_ipproto(int val);
1772
+
1773
+ ID rsock_intern_iplevel(int val);
1774
+
1775
+ ID rsock_intern_so_optname(int val);
1776
+
1777
+ ID rsock_intern_ip_optname(int val);
1778
+
1779
+ ID rsock_intern_ipv6_optname(int val);
1780
+
1781
+ ID rsock_intern_tcp_optname(int val);
1782
+
1783
+ ID rsock_intern_udp_optname(int val);
1784
+
1785
+ ID rsock_intern_scm_optname(int val);
1786
+
1787
+ ID rsock_intern_local_optname(int val);
1788
+