LDN services: Difference between revisions

Line 724: Line 724:
| 296 ||  
| 296 ||  
|-
|-
| 304 || GetAdvertiseData
| 304 || [[#GetAdvertiseData]]
|-
|-
| 312 || [[#GetIpConfig]]
| 312 || [[#GetIpConfig]]
Line 757: Line 757:


Validates that the [[#GetRole|role]] is non-zero, then copies the struct from state into the output buffer.
Validates that the [[#GetRole|role]] is non-zero, then copies the struct from state into the output buffer.
=== GetAdvertiseData ===
No input, returns 0x80-bytes of output.
Validates that the [[#GetRole|role]] is non-zero, then copies the data from state to output.


=== GetIpConfig ===
=== GetIpConfig ===
Takes a type-0x1A output buffer containing a 0x100-byte struct.
Takes a type-0x1A output buffer containing a 0x100-byte struct.
Validates that the [[#GetRole|role]] is non-zero, then copies the struct from state into the output buffer.


u32 +0x24 is the little-endian IpV4 address, u32 +0x44 is the little-endian IpV4 subnet.
u32 +0x24 is the little-endian IpV4 address, u32 +0x44 is the little-endian IpV4 subnet.
=== Cmd320 ===
No input, returns an output u32.
=== Cmd336 ===
Takes a type-0x22 output buffer containing an array of a 0x80-byte struct, returns an output s32 total_out.
Validates that the [[#GetRole|role]] is value 0x1. Then any entries from state which are available are copied into the output array buffer, if there's space available.


= lp2p:m =
= lp2p:m =