wavelength 1.0.0
Loading...
Searching...
No Matches
EzNetCtl Class Reference

The eznetctl module connects the network for the EE through a SIF RPC server. More...

#include <eznetctl.h>

Public Types

enum  Function {
  kFunctionGetDataAddress = 0 , kFunctionApplyData = 1 , kFunctionLoadEntry = 2 , kFunctionGetStatus = 3 ,
  kFunctionInetCtl7 = 4 , kFunctionInetCtl5 = 5 , kFunctionInetCtl6 = 6 , kFunctionLookUpName = 7 ,
  kFunctionNetCheck = 8
}
 RPC function numbers. More...

Static Public Member Functions

static int ModuleStart ()
 Start the module.
static int ModuleStop (int argc, char **argv)
 Unload the module.

Static Public Attributes

static constexpr unsigned int kRpcServerId = 0x75488909
 SIF RPC server identifier of the module.
static int sEthernetId
 Interface identifier of the started Ethernet interface, or zero.
static int sPppId
 Interface identifier of the started PPP interface, or zero.

Detailed Description

The eznetctl module connects the network for the EE through a SIF RPC server.

It applies a NetcnfifData the EE writes, or a combination loaded from a configuration file, waits for the interface to start, and reports its state.

The module was built without RTTI. The name is inferred from the module's name.

Member Enumeration Documentation

◆ Function

RPC function numbers.

Enumerator
kFunctionGetDataAddress 

Report the address of sData for the EE to write.

kFunctionApplyData 

Apply sData and connect.

kFunctionLoadEntry 

Load a combination and connect.

kFunctionGetStatus 

NetCtlStatus::Update().

kFunctionInetCtl7 

inetctl_7() on NetCtlRequest::mInterfaceId.

kFunctionInetCtl5 

inetctl_5() on NetCtlRequest::mInterfaceId.

kFunctionInetCtl6 

inetctl_6() on NetCtlRequest::mInterfaceId.

kFunctionLookUpName 

LookUpName().

kFunctionNetCheck 

Print a message and report -1.

Member Function Documentation

◆ ModuleStart()

int EzNetCtl::ModuleStart ( )
static

Start the module.

Create and start the RPC server thread.

Returns
A ModuleStartResult.
Ghidra address:
NTSC-U/C: 0x00000034
Ghidra address:
PAL: 0x00000034

◆ ModuleStop()

int EzNetCtl::ModuleStop ( int argc,
char ** argv )
static

Unload the module.

Only an other argument stops the RPC server thread.

Parameters
argcArgument count.
argvArguments.
Returns
A ModuleStartResult.
Ghidra address:
NTSC-U/C: 0x000000d8
Ghidra address:
PAL: 0x000000d8

Member Data Documentation

◆ kRpcServerId

unsigned int EzNetCtl::kRpcServerId = 0x75488909
staticconstexpr

SIF RPC server identifier of the module.

◆ sEthernetId

int EzNetCtl::sEthernetId
static

Interface identifier of the started Ethernet interface, or zero.

◆ sPppId

int EzNetCtl::sPppId
static

Interface identifier of the started PPP interface, or zero.


The documentation for this class was generated from the following file: