Allow up to 12 bits for the node ID.
git-svn-id: http://voip.null.ro/svn/yate@6501 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
71014c9de7
commit
18220252b4
|
@ -97,10 +97,11 @@
|
|||
;abortinfo=enable
|
||||
|
||||
; nodeid: int: ID assigned to this node
|
||||
; Range 0 - 2^nodebits-1
|
||||
;nodeid=
|
||||
|
||||
; nodebits: int: Length in bits of the node ID
|
||||
; Range 0 - 10. 0 means that node ID will be ignored
|
||||
; Range 0 - 12. 0 means that node ID will be ignored
|
||||
;nodebits=0
|
||||
|
||||
; msgsniff: bool: Activate message sniffer module (if loaded) at engine init time
|
||||
|
|
|
@ -1592,7 +1592,7 @@ int Engine::engineInit()
|
|||
if (s_affinity)
|
||||
s_params.addParam("affinity",s_affinity);
|
||||
|
||||
int nodeBits = s_cfg.getIntValue("general","nodebits",0,0,10);
|
||||
int nodeBits = s_cfg.getIntValue("general","nodebits",0,0,12);
|
||||
if (nodeBits) {
|
||||
int nodeId = s_cfg.getIntValue("general","nodeid",0);
|
||||
if (0 <= nodeId && nodeId < (1 << nodeBits)) {
|
||||
|
|
Loading…
Reference in New Issue