LDN services: Difference between revisions

Line 759: Line 759:
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.
The fields listed as Reserved (besides the fields before +0x10) 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 769: Line 769:
| 0x0 || 0x8 || LocalCommunicationId
| 0x0 || 0x8 || LocalCommunicationId
|-
|-
| 0x8 || 0x2 ||  
| 0x8 || 0x2 || Reserved
|-
|-
| 0xA || 0x2 ||  
| 0xA || 0x2 || Arbitrary user data which can be used for filtering with [[#ScanFilter]].
|-
|-
| 0xC || 0x4 ||  
| 0xC || 0x4 || Reserved
|-
|-
| 0x10 || 0x10 || Last 0x10-bytes of [[#SecurityParameter]]. NetworkId which is used to generate/overwrite the [[#Ssid]]. With [[#Scan]]/[[#ScanPrivate]], this is only done after filtering when +0x4B is value 0x2. The converted Ssid is a 0x20-byte lowercase hex string version of the input NetworkId.
| 0x10 || 0x10 || Last 0x10-bytes of [[#SecurityParameter]]. NetworkId which is used to generate/overwrite the [[#Ssid]]. With [[#Scan]]/[[#ScanPrivate]], this is only done after filtering when +0x4B is value 0x2. The converted Ssid is a 0x20-byte lowercase hex string version of the input NetworkId.