Skip to content

Commit

Permalink
Remove participant index limit in documentation
Browse files Browse the repository at this point in the history
There is no simple hard limit (other than 2^32-2).

Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Mar 20, 2024
1 parent 3b66431 commit 7bd1ac4
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions docs/manual/config/config_file_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ Text
This element specifies the DDSI participant index used by this instance of the Cyclone DDS service for discovery purposes. Only one such participant id is used, independent of the number of actual DomainParticipants on the node. It is either:
* auto: which will attempt to automatically determine an available participant index (see also Discovery/MaxAutoParticipantIndex), or

* a non-negative integer less than 120, or
* a non-negative integer, or

* none:, which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.
* none: which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.


The default value is: ``none``
Expand Down Expand Up @@ -2656,8 +2656,8 @@ The default value is: ``none``
..
generated from ddsi_config.h[7a2ea305c6a2eab7fe285734641fe60da41874b6]
generated from ddsi__cfgunits.h[bd22f0c0ed210501d0ecd3b07c992eca549ef5aa]
generated from ddsi__cfgelems.h[0d6b51026a1233c9516629caf2de8748b027bc20]
generated from ddsi_config.c[efeae198a5e12ca8977a655216470564b5c44b64]
generated from ddsi__cfgelems.h[bf5f0d9b9265e4b6f3f61e7624325af68eb276bf]
generated from ddsi_config.c[2d8c4ee6633a21fb69c3f7cb0bf685c1ca9e5132]
generated from _confgen.h[e32eabfc35e9f3a7dcb63b19ed148c0d17c6e5fc]
generated from _confgen.c[237308acd53897a34e8c643e16e05a61d73ffd65]
generated from generate_rnc.c[b50e4b7ab1d04b2bc1d361a0811247c337b74934]
Expand Down
8 changes: 4 additions & 4 deletions docs/manual/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ Text
This element specifies the DDSI participant index used by this instance of the Cyclone DDS service for discovery purposes. Only one such participant id is used, independent of the number of actual DomainParticipants on the node. It is either:
* auto: which will attempt to automatically determine an available participant index (see also Discovery/MaxAutoParticipantIndex), or

* a non-negative integer less than 120, or
* a non-negative integer, or

* none:, which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.
* none: which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.

The default value is: `none`

Expand Down Expand Up @@ -1856,8 +1856,8 @@ The categorisation of tracing output is incomplete and hence most of the verbosi
The default value is: `none`
<!--- generated from ddsi_config.h[7a2ea305c6a2eab7fe285734641fe60da41874b6] -->
<!--- generated from ddsi__cfgunits.h[bd22f0c0ed210501d0ecd3b07c992eca549ef5aa] -->
<!--- generated from ddsi__cfgelems.h[0d6b51026a1233c9516629caf2de8748b027bc20] -->
<!--- generated from ddsi_config.c[efeae198a5e12ca8977a655216470564b5c44b64] -->
<!--- generated from ddsi__cfgelems.h[bf5f0d9b9265e4b6f3f61e7624325af68eb276bf] -->
<!--- generated from ddsi_config.c[2d8c4ee6633a21fb69c3f7cb0bf685c1ca9e5132] -->
<!--- generated from _confgen.h[e32eabfc35e9f3a7dcb63b19ed148c0d17c6e5fc] -->
<!--- generated from _confgen.c[237308acd53897a34e8c643e16e05a61d73ffd65] -->
<!--- generated from generate_rnc.c[b50e4b7ab1d04b2bc1d361a0811247c337b74934] -->
Expand Down
8 changes: 4 additions & 4 deletions etc/cyclonedds.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ CycloneDDS configuration""" ] ]
& [ a:documentation [ xml:lang="en" """
<p>This element specifies the DDSI participant index used by this instance of the Cyclone DDS service for discovery purposes. Only one such participant id is used, independent of the number of actual DomainParticipants on the node. It is either:</p>
<ul><li><i>auto</i>: which will attempt to automatically determine an available participant index (see also Discovery/MaxAutoParticipantIndex), or</li>
<li>a non-negative integer less than 120, or</li>
<li><i>none</i>:, which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.</li></ul>
<li>a non-negative integer, or</li>
<li><i>none</i>: which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.</li></ul>
<p>The default value is: <code>none</code></p>""" ] ]
element ParticipantIndex {
text
Expand Down Expand Up @@ -1291,8 +1291,8 @@ MIIEpAIBAAKCAQEA3HIh...AOBaaqSV37XBUJg==<br>
}
# generated from ddsi_config.h[7a2ea305c6a2eab7fe285734641fe60da41874b6]
# generated from ddsi__cfgunits.h[bd22f0c0ed210501d0ecd3b07c992eca549ef5aa]
# generated from ddsi__cfgelems.h[0d6b51026a1233c9516629caf2de8748b027bc20]
# generated from ddsi_config.c[efeae198a5e12ca8977a655216470564b5c44b64]
# generated from ddsi__cfgelems.h[bf5f0d9b9265e4b6f3f61e7624325af68eb276bf]
# generated from ddsi_config.c[2d8c4ee6633a21fb69c3f7cb0bf685c1ca9e5132]
# generated from _confgen.h[e32eabfc35e9f3a7dcb63b19ed148c0d17c6e5fc]
# generated from _confgen.c[237308acd53897a34e8c643e16e05a61d73ffd65]
# generated from generate_rnc.c[b50e4b7ab1d04b2bc1d361a0811247c337b74934]
Expand Down
8 changes: 4 additions & 4 deletions etc/cyclonedds.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ CycloneDDS configuration</xs:documentation>
<xs:documentation>
&lt;p&gt;This element specifies the DDSI participant index used by this instance of the Cyclone DDS service for discovery purposes. Only one such participant id is used, independent of the number of actual DomainParticipants on the node. It is either:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;i&gt;auto&lt;/i&gt;: which will attempt to automatically determine an available participant index (see also Discovery/MaxAutoParticipantIndex), or&lt;/li&gt;
&lt;li&gt;a non-negative integer less than 120, or&lt;/li&gt;
&lt;li&gt;&lt;i&gt;none&lt;/i&gt;:, which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;a non-negative integer, or&lt;/li&gt;
&lt;li&gt;&lt;i&gt;none&lt;/i&gt;: which causes it to use arbitrary port numbers for unicast sockets which entirely removes the constraints on the participant index but makes unicast discovery impossible.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The default value is: &lt;code&gt;none&lt;/code&gt;&lt;/p&gt;</xs:documentation>
</xs:annotation>
</xs:element>
Expand Down Expand Up @@ -1949,8 +1949,8 @@ MIIEpAIBAAKCAQEA3HIh...AOBaaqSV37XBUJg==&lt;br&gt;
</xs:schema>
<!--- generated from ddsi_config.h[7a2ea305c6a2eab7fe285734641fe60da41874b6] -->
<!--- generated from ddsi__cfgunits.h[bd22f0c0ed210501d0ecd3b07c992eca549ef5aa] -->
<!--- generated from ddsi__cfgelems.h[0d6b51026a1233c9516629caf2de8748b027bc20] -->
<!--- generated from ddsi_config.c[efeae198a5e12ca8977a655216470564b5c44b64] -->
<!--- generated from ddsi__cfgelems.h[bf5f0d9b9265e4b6f3f61e7624325af68eb276bf] -->
<!--- generated from ddsi_config.c[2d8c4ee6633a21fb69c3f7cb0bf685c1ca9e5132] -->
<!--- generated from _confgen.h[e32eabfc35e9f3a7dcb63b19ed148c0d17c6e5fc] -->
<!--- generated from _confgen.c[237308acd53897a34e8c643e16e05a61d73ffd65] -->
<!--- generated from generate_rnc.c[b50e4b7ab1d04b2bc1d361a0811247c337b74934] -->
Expand Down
4 changes: 2 additions & 2 deletions src/core/ddsi/defconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ void ddsi_config_init_default (struct ddsi_config *cfg)
}
/* generated from ddsi_config.h[7a2ea305c6a2eab7fe285734641fe60da41874b6] */
/* generated from ddsi__cfgunits.h[bd22f0c0ed210501d0ecd3b07c992eca549ef5aa] */
/* generated from ddsi__cfgelems.h[0d6b51026a1233c9516629caf2de8748b027bc20] */
/* generated from ddsi_config.c[efeae198a5e12ca8977a655216470564b5c44b64] */
/* generated from ddsi__cfgelems.h[bf5f0d9b9265e4b6f3f61e7624325af68eb276bf] */
/* generated from ddsi_config.c[2d8c4ee6633a21fb69c3f7cb0bf685c1ca9e5132] */
/* generated from _confgen.h[e32eabfc35e9f3a7dcb63b19ed148c0d17c6e5fc] */
/* generated from _confgen.c[237308acd53897a34e8c643e16e05a61d73ffd65] */
/* generated from generate_rnc.c[b50e4b7ab1d04b2bc1d361a0811247c337b74934] */
Expand Down
4 changes: 2 additions & 2 deletions src/core/ddsi/src/ddsi__cfgelems.h
Original file line number Diff line number Diff line change
Expand Up @@ -1878,8 +1878,8 @@ static struct cfgelem discovery_cfgelems[] = {
"<ul><li><i>auto</i>: which will attempt to automatically determine an "
"available participant index "
"(see also Discovery/MaxAutoParticipantIndex), or</li>\n"
"<li>a non-negative integer less than 120, or</li>\n"
"<li><i>none</i>:, which causes it to use arbitrary port numbers for "
"<li>a non-negative integer, or</li>\n"
"<li><i>none</i>: which causes it to use arbitrary port numbers for "
"unicast sockets which entirely removes the constraints on the "
"participant index but makes unicast discovery impossible.</li></ul>"
)),
Expand Down
2 changes: 1 addition & 1 deletion src/core/ddsi/src/ddsi_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ static enum update_result uf_participantIndex (struct ddsi_cfgst *cfgst, void *p
*elem = DDSI_PARTICIPANT_INDEX_NONE;
return URES_SUCCESS;
} else {
return uf_int_min_max (cfgst, parent, cfgelem, first, value, 0, 120);
return uf_natint (cfgst, parent, cfgelem, first, value);
}
}

Expand Down

0 comments on commit 7bd1ac4

Please sign in to comment.