ncp: Add support for PROP_STREAM_RAW (#644)

* ncp: Add support for `PROP_STREAM_RAW`

This change allows the NCP to be a packet sniffer when used with host
software that supports this feature.

See the section of the Spinel protocol document titled ["Sniffing Raw
Packets"][1] for an example of how this property is intended to be
used.

[1]: https://cdn.rawgit.com/openthread/openthread/654f953fdaf34e457bee61eb674908141d0a5f8e/doc/draft-spinel-protocol.html#rfc.appendix.F.10

* Allow sniffer to see raw outbound packets on the Pcap interface.

* Remove some of the metadata from the raw frames until the format can be better thought out

* Add optional support for 802.15.4 FCS reporting.
This commit is contained in:
Robert Quattlebaum
2016-09-22 15:32:13 -07:00
committed by Jonathan Hui
parent d848ed12e8
commit 2522d2e2d7
4 changed files with 134 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ typedef struct RadioPacket
int8_t mPower; ///< Transmit/receive power in dBm.
uint8_t mLqi; ///< Link Quality Indicator for received frames.
bool mSecurityValid; ///< Security Enabled flag is set and frame passes security checks.
uint16_t mFcs; ///< Final checksum (optional)
} RadioPacket;
/**