Changes

992 bytes added ,  23:28, 24 May 2020
Line 1,077: Line 1,077:     
At this point standard sockets can be used over Data frames.
 
At this point standard sockets can be used over Data frames.
 +
 +
The custom Ethernet frames have the following structure:
 +
* "Type: IEEE 802a OUI Extended Ethertype (0x88b7)"
 +
* "IEEE802a OUI Extended Ethertype":
 +
** "Organization Code: 00:22:aa (Nintendo Co., Ltd.)"
 +
** "Protocol ID: 0x0102" (Depends on the frame, this ID is used for the Authentication frames)
 +
* The first byte of Data is value 0, then the [[#EthHeader]] follows this.
 +
 +
The Action frames have the following structure:
 +
* "Fixed parameters":
 +
** "Category code: Vendor Specific (127)"
 +
* The Data starts with the [[#ActionHeader]].
    
<fill this in>
 
<fill this in>
 +
 +
=== EthHeader ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x1 || Type? Must be 0x1-0xF.
 +
|-
 +
| 0x1 || 0x1 || Low u8 for the size.
 +
|-
 +
| 0x2 || 0x1 || Status. 0 = success, non-zero = error.
 +
|-
 +
| 0x3 || 0x1 || bool flag
 +
|-
 +
| 0x4 || 0x1 || High u8 for the size.
 +
|-
 +
| 0x5 || 0x3 ||
 +
|-
 +
| 0x8 || 0x10 ||
 +
|-
 +
| 0x18 || 0x10 ||
 +
|-
 +
| 0x28 || 0x20 ||
 +
|-
 +
| 0x48 || || Frame-specific data, with the above size.
 +
|}
 +
 +
=== ActionHeader ===
    
== lp2p ==
 
== lp2p ==