Changes

41 bytes removed ,  01:41, 12 May 2020
no edit summary
Line 209: Line 209:     
=== CreateNetwork ===
 
=== CreateNetwork ===
Takes an input [[#SecurityConfig]], an [[#UserConfigSf]], a [[#NetworkConfig]], no output.
+
Takes an input [[#SecurityConfig]], an [[#UserConfig]], a [[#NetworkConfig]], no output.
    
=== CreateNetworkPrivate ===
 
=== CreateNetworkPrivate ===
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], an [[#UserConfigSf]], a [[#NetworkConfig]], a type-0x9 input buffer containing an array of [[#AddressEntry]], no output.
+
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], an [[#UserConfig]], a [[#NetworkConfig]], a type-0x9 input buffer containing an array of [[#AddressEntry]], no output.
    
=== DestroyNetwork ===
 
=== DestroyNetwork ===
Line 243: Line 243:     
=== Connect ===
 
=== Connect ===
Takes a type-0x19 input buffer containing a [[#NetworkInfo]], a [[#SecurityConfig]], an [[#UserConfigSf]], a s32, a [[#ConnectOption]], no output.
+
Takes a type-0x19 input buffer containing a [[#NetworkInfo]], a [[#SecurityConfig]], an [[#UserConfig]], a s32, a [[#ConnectOption]], no output.
    
=== ConnectPrivate ===
 
=== ConnectPrivate ===
Takes a [[#SecurityConfig]], [[#SecurityParameter]], an [[#UserConfigSf]], a s32, a [[#ConnectOption]], a [[#NetworkConfig]], no output.
+
Takes a [[#SecurityConfig]], [[#SecurityParameter]], an [[#UserConfig]], a s32, a [[#ConnectOption]], a [[#NetworkConfig]], no output.
    
=== Disconnect ===
 
=== Disconnect ===
Line 658: Line 658:     
= UserConfig =
 
= UserConfig =
This is "nn::ldn::UserConfig". This is a 0x20-byte struct. See [[#UserConfigSf]].
+
This is "nn::ldn::UserConfig". This is a 0x30-byte struct with 1-byte alignment.
   −
= UserConfigSf =
+
sdknso copies the input UserConfig to a tmp struct on stack, which is then used with the cmd.
This is a 0x30-byte struct with 1-byte alignment. This is converted from [[#UserConfig]] by sdknso.
      
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 669: Line 668:  
! Description
 
! Description
 
|-
 
|-
| 0x0 || 0x20 || [[#UserConfig]]
+
| 0x0 || 0x20 ||  
 
|-
 
|-
| 0x20 || 0x10 || Cleared to zero by sdknso.
+
| 0x20 || 0x10 || Cleared to zero during the copy.
 
|}
 
|}