LDN services: Difference between revisions
Line 1,211: | Line 1,211: | ||
| 0x1E || 0x21 || ServiceName ("GROUP NAME (SSID)"). NUL-terminated string. If the SSID is invalid, a new SSID is generated, however in this case the original SSID must contain a '-' character. | | 0x1E || 0x21 || ServiceName ("GROUP NAME (SSID)"). NUL-terminated string. If the SSID is invalid, a new SSID is generated, however in this case the original SSID must contain a '-' character. | ||
|- | |- | ||
| 0x3F || 0x1 || s8 | | 0x3F || 0x1 || s8 Flags count. Must be <=0x3F. | ||
|- | |- | ||
| 0x40 || 0x40 || Array of s8 with the above count. Each entry is an array index used to load a set of flags from a global array with the specified index | | 0x40 || 0x40 || Array of s8 with the above count. Each entry value must be <=0x3F. Each entry is an array index used to load a set of flags from a global array with the specified index. global_flags are also masked with flags loaded from here. | ||
|- | |- | ||
| 0x80 || 0x1 || SupportedPlatform. Must match value 1. 0 is PlatformIdNX, 1 is PlatformIdFuji. | | 0x80 || 0x1 || SupportedPlatform. Must match value 1. 0 is PlatformIdNX, 1 is PlatformIdFuji. | ||
Line 1,240: | Line 1,240: | ||
|- | |- | ||
| 0x8F || 0x1 || If zero, a default value of 0x20 is used. | | 0x8F || 0x1 || If zero, a default value of 0x20 is used. | ||
|- | |- | ||
| 0x1C0 || 0x1 || PresharedKeyBinarySize. Must be 0x20 during key derivation. | | 0x1C0 || 0x1 || PresharedKeyBinarySize. Must be 0x20 during key derivation. | ||
Line 1,250: | Line 1,246: | ||
|} | |} | ||
loaded_flags are first loaded from elsewhere, then masked with the above flags when available. loaded_flags are used when +0x8A is 0. global_flags are loaded from global data. These flags are only used with [[#CreateGroup]]/[[#Join]]. Flags: | |||
* Bit2 clear: | * Bit2 clear: | ||
** global_flags must be non-zero, and loaded_flags bit1 must be set. | ** global_flags must be non-zero, and loaded_flags bit1 must be set. |