Changes

Jump to navigation Jump to search
489 bytes added ,  01:37, 12 May 2020
no edit summary
Line 209: Line 209:     
=== CreateNetwork ===
 
=== CreateNetwork ===
Takes an input [[#SecurityConfig]], an [[#UserConfigSf]], a 0x20-byte struct with 8-byte alignment, no output.
+
Takes an input [[#SecurityConfig]], an [[#UserConfigSf]], a [[#NetworkConfig]], no output.
    
=== CreateNetworkPrivate ===
 
=== CreateNetworkPrivate ===
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], an [[#UserConfigSf]], a 0x20-byte struct with 8-byte alignment, a type-0x9 input buffer containing an array of [[#AddressEntry]], no output.
+
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], an [[#UserConfigSf]], a [[#NetworkConfig]], a type-0x9 input buffer containing an array of [[#AddressEntry]], no output.
    
=== DestroyNetwork ===
 
=== DestroyNetwork ===
Line 246: Line 246:     
=== ConnectPrivate ===
 
=== ConnectPrivate ===
Takes a [[#SecurityConfig]], [[#SecurityParameter]], an [[#UserConfigSf]], a s32, a [[#ConnectOption]], a 0x20-byte struct with 8-byte alignment, no output.
+
Takes a [[#SecurityConfig]], [[#SecurityParameter]], an [[#UserConfigSf]], a s32, a [[#ConnectOption]], a [[#NetworkConfig]], no output.
    
=== Disconnect ===
 
=== Disconnect ===
Line 617: Line 617:  
= NetworkConfig =
 
= NetworkConfig =
 
This is "nn::ldn::NetworkConfig". This is a 0x20-byte struct with 8-byte alignment.
 
This is "nn::ldn::NetworkConfig". This is a 0x20-byte struct with 8-byte alignment.
 +
 +
sdknso copies the input NetworkConfig to a tmp struct on stack, which is then used with the cmd ([[#CreateNetwork]], [[#CreateNetworkPrivate]], [[#ConnectPrivate]]).
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x8 ||
 +
|-
 +
| 0x8 || 0x2 || Cleared to zero during the copy.
 +
|-
 +
| 0xA || 0x2 ||
 +
|-
 +
| 0xC || 0x4 || Cleared to zero during the copy.
 +
|-
 +
| 0x10 || 0x2 ||
 +
|-
 +
| 0x12 || 0x1 ||
 +
|-
 +
| 0x13 || 0x1 || Cleared to zero during the copy.
 +
|-
 +
| 0x14 || 0x2 ||
 +
|-
 +
| 0x16 || 0xA || Cleared to zero during the copy.
 +
|}
    
= NodeLatestUpdate =
 
= NodeLatestUpdate =

Navigation menu