File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,22 @@ limitations under the License.
16
16
17
17
package config
18
18
19
+ // DynamicPortRange specifies the starting and ending port of a
20
+ // range
19
21
type DynamicPortRange struct {
20
22
Start int
21
23
End int
22
24
}
23
25
26
+ // ListenerConfig allow conformance test runners to configure
24
27
type ListenerConfig struct {
25
28
DynamicPortRange DynamicPortRange
26
29
}
27
30
31
+ // DefaultListenerConfig returns a [ListenerConfig] where the [DynamicPortRange]
32
+ // defaults to the suggested IANA [dynamic port range] (49152-65535)
33
+ //
34
+ // [dynamic port range]: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
28
35
func DefaultListenerConfig () ListenerConfig {
29
36
return ListenerConfig {
30
37
DynamicPortRange : DynamicPortRange {
@@ -33,6 +40,8 @@ func DefaultListenerConfig() ListenerConfig {
33
40
},
34
41
}
35
42
}
43
+
44
+ // SetupListenerConfig will apply defaults to the passed [ListenerConfig]
36
45
func SetupListenerConfig (c * ListenerConfig ) {
37
46
defaultConfig := DefaultListenerConfig ()
38
47
You can’t perform that action at this time.
0 commit comments