Changes

266 bytes added ,  00:38, 12 May 2020
no edit summary
Line 209: Line 209:     
=== CreateNetwork ===
 
=== CreateNetwork ===
Takes an input [[#SecurityConfig]], a 0x30-byte struct with 1-byte alignment, a 0x20-byte struct with 8-byte alignment, no output.
+
Takes an input [[#SecurityConfig]], an [[#UserConfigSf]], a 0x20-byte struct with 8-byte alignment, no output.
    
=== CreateNetworkPrivate ===
 
=== CreateNetworkPrivate ===
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], a 0x30-byte struct with 1-byte alignment, 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 0x20-byte struct with 8-byte alignment, 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]], a 0x30-byte struct with 1-byte alignment, a s32, a [[#ConnectOption]], no output.
+
Takes a type-0x19 input buffer containing a [[#NetworkInfo]], a [[#SecurityConfig]], an [[#UserConfigSf]], a s32, a [[#ConnectOption]], no output.
    
=== ConnectPrivate ===
 
=== ConnectPrivate ===
Takes a [[#SecurityConfig]], [[#SecurityParameter]], a 0x30-byte struct with 1-byte alignment, 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 0x20-byte struct with 8-byte alignment, no output.
    
=== Disconnect ===
 
=== Disconnect ===
Line 607: Line 607:  
= 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.
 +
 +
= UserConfig =
 +
This is "nn::ldn::UserConfig". This is a 0x20-byte struct.
 +
 +
= UserConfigSf =
 +
This is a 0x30-byte struct with 1-byte alignment. This is converted from [[#UserConfig]] by sdknso.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x20 || [[#UserConfig]]
 +
|-
 +
| 0x20 || 0x10 || Cleared to zero by sdknso.
 +
|}
    
= AddressEntry =
 
= AddressEntry =