LDN services: Difference between revisions
No edit summary |
|||
(One intermediate revision 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 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 || | | 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 = |