Changes

587 bytes added ,  04:18, 20 October 2020
Line 714: Line 714:  
| 264 || GetNetworkInterfaceLastError
 
| 264 || GetNetworkInterfaceLastError
 
|-
 
|-
| 272 || GetRole
+
| 272 || [[#GetRole]]
 
|-
 
|-
 
| 280 ||  
 
| 280 ||  
Line 739: Line 739:     
Unused by official sw.
 
Unused by official sw.
 +
 +
=== GetRole ===
 +
No input, returns an output u8.
 +
 +
=== Cmd280 ===
 +
Takes a type-0x22 output buffer, returns 2 output u16s.
 +
 +
Validates that the [[#GetRole|role]] is value 0x2, then copies data from state into the output buffer. The first output u16 is the size used for the memcpy, the second u16 is the original size from state.
 +
 +
=== Cmd281 ===
 +
Takes a type-0x22 output buffer, returns 2 output u16s.
 +
 +
This is identical to Cmd280 except this doesn't run the role validation.
    
=== GetGroupInfo ===
 
=== GetGroupInfo ===
 
Takes a type-0x32 output buffer containing a [[#GroupInfo]].
 
Takes a type-0x32 output buffer containing a [[#GroupInfo]].
 +
 +
Validates that the [[#GetRole|role]] is non-zero, then copies the struct from state into the output buffer.
    
=== GetIpConfig ===
 
=== GetIpConfig ===