LDN services: Difference between revisions
No edit summary |
No edit summary |
||
Line 209: | Line 209: | ||
=== CreateNetwork === | === CreateNetwork === | ||
Takes an input [[#SecurityConfig]], | Takes an input [[#SecurityConfig]], an [[#UserConfigSf]], a 0x20-byte struct with 8-byte alignment, no output. | ||
=== CreateNetworkPrivate === | === CreateNetworkPrivate === | ||
Takes an input [[#SecurityConfig]], a [[#SecurityParameter]], | 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]], | 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]], | 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 = |