LDN services: Difference between revisions
(One intermediate revision by the same user not shown) | |||
Line 1,891: | Line 1,891: | ||
=== ActionFrame2 === | === ActionFrame2 === | ||
The Action frames used by [[#RecvActionFrame|RecvActionFrame]] have the following structure: | The Action frames used by [[#SendActionFrame|SendActionFrame]]/[[#RecvActionFrame|RecvActionFrame]] have the following structure: | ||
* "Fixed parameters": | * "Fixed parameters": | ||
** "Category code: Vendor Specific (127)" | ** "Category code: Vendor Specific (127)" | ||
Line 1,907: | Line 1,907: | ||
| 0x2 || 0x2 || Protocol ID, must match big-endian 0x0102. | | 0x2 || 0x2 || Protocol ID, must match big-endian 0x0102. | ||
|- | |- | ||
| 0x4 || 0x2 || | | 0x4 || 0x2 || 00 00 | ||
|- | |- | ||
| 0x6 || 0x2 || | | 0x6 || 0x2 || 00 00 | ||
|} | |} | ||
Line 1,940: | Line 1,940: | ||
The key is derived similar to the regular action-frame key (same KeySource), except: the Generation is always [[17.0.0|0x11]], with the following data for hashing: {big-endian LocalCommunicationId} {+0x10 size 0x10-bytes} {[[#ActionFrameSettings]] Passphrase with the specified PassphraseSize}. | The key is derived similar to the regular action-frame key (same KeySource), except: the Generation is always [[17.0.0|0x11]], with the following data for hashing: {big-endian LocalCommunicationId} {+0x10 size 0x10-bytes} {[[#ActionFrameSettings]] Passphrase with the specified PassphraseSize}. | ||
The data payload is the data buffer for [[#SendActionFrame|SendActionFrame]]/[[#RecvActionFrame|RecvActionFrame]]. | |||
== lp2p == | == lp2p == |