LDN services: Difference between revisions
No edit summary |
No edit summary |
||
Line 209: | Line 209: | ||
=== CreateNetwork === | === CreateNetwork === | ||
Takes an input [[#SecurityConfig]], an [[# | Takes an input [[#SecurityConfig]], an [[#UserConfig]], a [[#NetworkConfig]], no output. | ||
=== CreateNetworkPrivate === | === CreateNetworkPrivate === | ||
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], an [[# | 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 [[# | 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 [[# | 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 | This is "nn::ldn::UserConfig". This is a 0x30-byte struct with 1-byte alignment. | ||
sdknso copies the input UserConfig to a tmp struct on stack, which is then used with the cmd. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 669: | Line 668: | ||
! Description | ! Description | ||
|- | |- | ||
| 0x0 || 0x20 || | | 0x0 || 0x20 || | ||
|- | |- | ||
| 0x20 || 0x10 || Cleared to zero | | 0x20 || 0x10 || Cleared to zero during the copy. | ||
|} | |} | ||