LDN services: Difference between revisions
No edit summary |
No edit summary |
||
Line 710: | Line 710: | ||
= NetworkInfo = | = NetworkInfo = | ||
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct. The data at +0x50 is another struct. | This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct. The data at +0x50 is another struct. | ||
The fields listed as Reserved are cleared during the memset and are not written to again afterwards, with cmds which return NetworkInfo. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 735: | Line 737: | ||
| 0x4A || 0x1 || s8 LinkLevel | | 0x4A || 0x1 || s8 LinkLevel | ||
|- | |- | ||
| 0x4B || 0x1 || | | 0x4B || 0x1 || Set to hard-coded value 0x2 with output structs, except with [[#Scan]]/[[#ScanPrivate]] which can also set value 0x1 in certain cases. | ||
|- | |- | ||
| 0x4C || 0x4 || | | 0x4C || 0x4 || Padding | ||
|- | |- | ||
| 0x50 || 0x10 || First 0x10-bytes of [[#SecurityParameter]]. | | 0x50 || 0x10 || First 0x10-bytes of [[#SecurityParameter]]. | ||
Line 743: | Line 745: | ||
| 0x60 || 0x2 || Same as [[#SecurityConfig]]+0x0. | | 0x60 || 0x2 || Same as [[#SecurityConfig]]+0x0. | ||
|- | |- | ||
| 0x62 || | | 0x62 || 0x1 || | ||
|- | |||
| 0x63 || 0x3 || Padding | |||
|- | |- | ||
| 0x66 || 0x1 || | | 0x66 || 0x1 || | ||
Line 751: | Line 755: | ||
| 0x68 || 0x200(0x40*8) || Array of [[#NodeInfo]] with 8 entries, starting with the AccessPoint node. | | 0x68 || 0x200(0x40*8) || Array of [[#NodeInfo]] with 8 entries, starting with the AccessPoint node. | ||
|- | |- | ||
| 0x268 || 0x2 || | | 0x268 || 0x2 || Reserved | ||
|- | |- | ||
| 0x26A || 0x2 || AdvertiseData size | | 0x26A || 0x2 || AdvertiseData size | ||
Line 757: | Line 761: | ||
| 0x26C || 0x180 || AdvertiseData | | 0x26C || 0x180 || AdvertiseData | ||
|- | |- | ||
| 0x3EC || 0x8C | | 0x3EC || 0x8C || Reserved | ||
|- | |- | ||
| 0x478 || 0x8 || | | 0x478 || 0x8 || | ||
Line 839: | Line 843: | ||
| 0x13 || 0x1 || Cleared to zero during the copy. | | 0x13 || 0x1 || Cleared to zero during the copy. | ||
|- | |- | ||
| 0x14 || 0x2 || Same as [[#NetworkInfo]]+0x96. Must not be negative. | | 0x14 || 0x2 || Same as [[#NetworkInfo]]+0x96 (LocalCommunicationVersion from the first [[#NodeInfo]]). Must not be negative. | ||
|- | |- | ||
| 0x16 || 0xA || Cleared to zero during the copy. | | 0x16 || 0xA || Cleared to zero during the copy. | ||
Line 944: | Line 948: | ||
= NodeInfo = | = NodeInfo = | ||
This is "nn::ldn::NodeInfo". | This is "nn::ldn::NodeInfo". | ||
The fields listed as Reserved are cleared during the memset and are not written to again afterwards, with cmds which return [[#NetworkInfo]]. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 961: | Line 967: | ||
| 0xC || 0x20 || First 0x20-bytes of [[#UserConfig]]. | | 0xC || 0x20 || First 0x20-bytes of [[#UserConfig]]. | ||
|- | |- | ||
| 0x2C || 0x2 || | | 0x2C || 0x2 || Reserved | ||
|- | |- | ||
| 0x2E || 0x2 || s16 LocalCommunicationVersion | | 0x2E || 0x2 || s16 LocalCommunicationVersion | ||
|- | |- | ||
| 0x30 || 0x10 || | | 0x30 || 0x10 || Reserved | ||
|} | |} | ||