LDN services: Difference between revisions

No edit summary
No edit summary
(4 intermediate revisions by the same user not shown)
Line 234: Line 234:


sdknso uses EventClearMode=1 with this. sdknso will Abort if this cmd fails.
sdknso uses EventClearMode=1 with this. sdknso will Abort if this cmd fails.
This is signaled when the data returned by [[#GetNetworkInfo]]/[[#GetNetworkInfoLatestUpdate]] is updated.


=== GetNetworkInfoLatestUpdate ===
=== GetNetworkInfoLatestUpdate ===
Line 745: Line 747:
| 0x60 || 0x2 || Same as [[#SecurityConfig]]+0x0.
| 0x60 || 0x2 || Same as [[#SecurityConfig]]+0x0.
|-
|-
| 0x62 || 0x1 ||  
| 0x62 || 0x1 || [[#AcceptPolicy]]
|-
|-
| 0x63 || 0x3 || Padding
| 0x63 || 0x3 || Padding
|-
|-
| 0x66 || 0x1 ||  
| 0x66 || 0x1 || Maximum participants, for the [[#NodeInfo]] array.
|-
|-
| 0x67 || 0x1 || ParticipantNum, number of set entries in the [[#NodeInfo]] array. If +0x4B is not 0x2, ParticipantNum should be handled as if it's 0.
| 0x67 || 0x1 || ParticipantNum, number of set entries in the [[#NodeInfo]] array. If +0x4B is not 0x2, ParticipantNum should be handled as if it's 0.
Line 843: Line 845:
| 0x13 || 0x1 || Cleared to zero during the copy.
| 0x13 || 0x1 || Cleared to zero during the copy.
|-
|-
| 0x14 || 0x2 || Same as [[#NetworkInfo]]+0x96 (LocalCommunicationVersion from the first [[#NodeInfo]]). Must not be negative.
| 0x14 || 0x2 || Same as [[#NetworkInfo]]+0x96 (LocalCommunicationVersion from the first [[#NodeInfo]]). Must not be negative. [[#Connect]]/[[#ConnectPrivate]]: This must match the value for the AccessPoint LocalCommunicationVersion.
|-
|-
| 0x16 || 0xA || Cleared to zero during the copy.
| 0x16 || 0xA || Cleared to zero during the copy.
Line 857: Line 859:
! Description
! Description
|-
|-
| 0x0 || 0x1 || Flag, the field in state is reset to zero by [[#GetNetworkInfoLatestUpdate]] after loading it.
| 0x0 || 0x1 || The field in state is reset to zero by [[#GetNetworkInfoLatestUpdate]] after loading it. Official apps checks whether this is non-zero.
|-
|-
| 0x1 || 0x7 || Not initialized with [[#GetNetworkInfoLatestUpdate]].
| 0x1 || 0x7 || Not initialized with [[#GetNetworkInfoLatestUpdate]].
Line 893: Line 895:
= SecurityParameter =
= SecurityParameter =
This is "nn::ldn::SecurityParameter". This is a 0x20-byte struct with 1-byte alignment.
This is "nn::ldn::SecurityParameter". This is a 0x20-byte struct with 1-byte alignment.
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
| 0x0 || 0x10 || Data, used with the same key derivation as [[#SecurityConfig]].
|-
| 0x10 || 0x10 || NetworkId, see [[#NetworkInfo]].
|}


= UserConfig =
= UserConfig =
Line 934: Line 947:
!  Description
!  Description
|-
|-
| 0 ||  
| 0 || Allow all.
|-
|-
| 1 ||  
| 1 || Deny all.
|-
|-
| 2 ||  
| 2 || Blacklist, addresses in the [[#AddAcceptFilterEntry|list]] are not allowed.
|-
|-
| 3 ||  
| 3 || Whitelist, only addresses in the [[#AddAcceptFilterEntry|list]] are allowed.
|}
|}