LDN services: Difference between revisions

No edit summary
Line 23: Line 23:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetStateForMonitor
| 0 || [[#GetStateForMonitor]]
|-
|-
| 1 || GetNetworkInfoForMonitor
| 1 || [[#GetNetworkInfoForMonitor]]
|-
|-
| 2 || GetIpv4AddressForMonitor
| 2 || [[#GetIpv4AddressForMonitor]]
|-
|-
| 3 || GetDisconnectReasonForMonitor
| 3 || [[#GetDisconnectReasonForMonitor]]
|-
|-
| 4 || GetSecurityParameterForMonitor
| 4 || [[#GetSecurityParameterForMonitor]]
|-
|-
| 5 || GetNetworkConfigForMonitor
| 5 || [[#GetNetworkConfigForMonitor]]
|-
|-
| 100 || [[#InitializeMonitor]]
| 100 || [[#InitializeMonitor]]
Line 39: Line 39:
| 101 || [[#FinalizeMonitor]]
| 101 || [[#FinalizeMonitor]]
|}
|}
=== GetStateForMonitor ===
No input, returns an output u32.
sdknso implements this by <code>return</code>ing the u32, with 0 being returned on error.
=== GetNetworkInfoForMonitor ===
Takes a type-0x1A output buffer containing a [[#NetworkInfo]].
=== GetIpv4AddressForMonitor ===
No input, returns an output [[#Ipv4Address]] and a [[#SubnetMask]].
=== GetDisconnectReasonForMonitor ===
No input, returns an output s16.
This is not exposed by sdknso.
=== GetSecurityParameterForMonitor ===
No input, returns an output 0x20-byte struct with 1-byte alignment.
This is not exposed by sdknso.
=== GetNetworkConfigForMonitor ===
No input, returns an output 0x20-byte struct with 8-byte alignment.
This is not exposed by sdknso.


=== InitializeMonitor ===
=== InitializeMonitor ===
Line 72: Line 98:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetState
| 0 || [[#GetState]]
|-
|-
| 1 || GetNetworkInfo
| 1 || [[#GetNetworkInfo]]
|-
|-
| 2 || GetIpv4Address
| 2 || [[#GetIpv4Address]]
|-
|-
| 3 || GetDisconnectReason
| 3 || [[#GetDisconnectReason]]
|-
|-
| 4 || GetSecurityParameter
| 4 || [[#GetSecurityParameter]]
|-
|-
| 5 || GetNetworkConfig
| 5 || [[#GetNetworkConfig]]
|-
|-
| 100 || AttachStateChangeEvent
| 100 || [[#AttachStateChangeEvent]]
|-
|-
| 101 || GetNetworkInfoLatestUpdate
| 101 || [[#GetNetworkInfoLatestUpdate]]
|-
|-
| 102 || Scan
| 102 || [[#Scan]]
|-
|-
| 103 || ScanPrivate
| 103 || [[#ScanPrivate]]
|-
|-
| 104 || [5.0.0+] SetWirelessControllerRestriction
| 104 || [5.0.0+] [[#SetWirelessControllerRestriction]]
|-
|-
| 200 || OpenAccessPoint
| 200 || [[#OpenAccessPoint]]
|-
|-
| 201 || CloseAccessPoint
| 201 || [[#CloseAccessPoint]]
|-
|-
| 202 || CreateNetwork
| 202 || [[#CreateNetwork]]
|-
|-
| 203 || CreateNetworkPrivate
| 203 || [[#CreateNetworkPrivate]]
|-
|-
| 204 || DestroyNetwork
| 204 || [[#DestroyNetwork]]
|-
|-
| 205 || Reject
| 205 || [[#Reject]]
|-
|-
| 206 || SetAdvertiseData
| 206 || [[#SetAdvertiseData]]
|-
|-
| 207 || SetStationAcceptPolicy
| 207 || [[#SetStationAcceptPolicy]]
|-
|-
| 208 || AddAcceptFilterEntry
| 208 || [[#AddAcceptFilterEntry]]
|-
|-
| 209 || ClearAcceptFilter
| 209 || [[#ClearAcceptFilter]]
|-
|-
| 300 || OpenStation
| 300 || [[#OpenStation]]
|-
|-
| 301 || CloseStation
| 301 || [[#CloseStation]]
|-
|-
| 302 || Connect
| 302 || [[#Connect]]
|-
|-
| 303 || ConnectPrivate
| 303 || [[#ConnectPrivate]]
|-
|-
| 304 || Disconnect
| 304 || [[#Disconnect]]
|-
|-
| 400 || [[#InitializeSystem]]
| 400 || [[#InitializeSystem]]
Line 128: Line 154:
| 401 || [[#FinalizeSystem]]
| 401 || [[#FinalizeSystem]]
|-
|-
| 402 || [4.0.0+] SetOperationMode
| 402 || [4.0.0+] [[#SetOperationMode]]
|-
|-
| 403 || [7.0.0+] [[#InitializeSystem2]]
| 403 || [7.0.0+] [[#InitializeSystem2]]
Line 172: Line 198:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetState
| 0 || [[#GetState]]
|-
|-
| 1 || GetNetworkInfo
| 1 || [[#GetNetworkInfo]]
|-
|-
| 2 || GetIpv4Address
| 2 || [[#GetIpv4Address]]
|-
|-
| 3 || GetDisconnectReason
| 3 || [[#GetDisconnectReason]]
|-
|-
| 4 || GetSecurityParameter
| 4 || [[#GetSecurityParameter]]
|-
|-
| 5 || GetNetworkConfig
| 5 || [[#GetNetworkConfig]]
|-
|-
| 100 || AttachStateChangeEvent
| 100 || [[#AttachStateChangeEvent]]
|-
|-
| 101 || GetNetworkInfoLatestUpdate
| 101 || [[#GetNetworkInfoLatestUpdate]]
|-
|-
| 102 || Scan
| 102 || [[#Scan]]
|-
|-
| 103 || ScanPrivate
| 103 || [[#ScanPrivate]]
|-
|-
| 104 || [5.0.0+] SetWirelessControllerRestriction
| 104 || [5.0.0+] [[#SetWirelessControllerRestriction]]
|-
|-
| 200 || OpenAccessPoint
| 200 || [[#OpenAccessPoint]]
|-
|-
| 201 || CloseAccessPoint
| 201 || [[#CloseAccessPoint]]
|-
|-
| 202 || CreateNetwork
| 202 || [[#CreateNetwork]]
|-
|-
| 203 || CreateNetworkPrivate
| 203 || [[#CreateNetworkPrivate]]
|-
|-
| 204 || DestroyNetwork
| 204 || [[#DestroyNetwork]]
|-
|-
| 205 || Reject
| 205 || [[#Reject]]
|-
|-
| 206 || SetAdvertiseData
| 206 || [[#SetAdvertiseData]]
|-
|-
| 207 || SetStationAcceptPolicy
| 207 || [[#SetStationAcceptPolicy]]
|-
|-
| 208 || AddAcceptFilterEntry
| 208 || [[#AddAcceptFilterEntry]]
|-
|-
| 209 || ClearAcceptFilter
| 209 || [[#ClearAcceptFilter]]
|-
|-
| 300 || OpenStation
| 300 || [[#OpenStation]]
|-
|-
| 301 || CloseStation
| 301 || [[#CloseStation]]
|-
|-
| 302 || Connect
| 302 || [[#Connect]]
|-
|-
| 303 || ConnectPrivate
| 303 || [[#ConnectPrivate]]
|-
|-
| 304 || Disconnect
| 304 || [[#Disconnect]]
|-
|-
| 400 || [[#Initialize]]
| 400 || [[#Initialize]]
Line 439: Line 465:
=== Initialize ===
=== Initialize ===
Returns 0.
Returns 0.
= Ipv4Address =
This is "nn::ldn::Ipv4Address". This is a 0x4-byte struct with 4-byte alignment.
This is essentially the same as <code>struct in_addr</code>.
= SubnetMask =
This is "nn::ldn::SubnetMask". This is a 0x4-byte struct with 4-byte alignment.
This is essentially the same as <code>struct in_addr</code>.


= Ssid =
= Ssid =
Line 455: Line 491:
| 0x1 || 0x21 || SSID string including NUL-terminator, str[{above length}] must be 0.
| 0x1 || 0x21 || SSID string including NUL-terminator, str[{above length}] must be 0.
|}
|}
= NetworkInfo =
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct.


[[Category:Services]]
[[Category:Services]]