mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 08:59:52 +00:00
Do not blindly pass up unsecure frames from the link layer. (#68)
The following checks were added:
1) Any unsecure 6LoWPAN Mesh frames are dropped.
2) Any unsecure 6LoWPAN Fragment frames are only added to unsecure reassembly buffers.
3) Any unsecure MAC Data Poll frames are dropped.
4) Any unsecure IPv6 datagrams must have:
a) Destination with link-local scope,
b) Next Header set to UDP,
c) UDP Destination Port set to MLE,
d) Length long enough to carry IPv6 and UDP headers.
This commit is contained in:
@@ -97,6 +97,7 @@ typedef struct RadioPacket
|
||||
uint8_t mPsdu[kMaxPHYPacketSize]; ///< The PSDU.
|
||||
uint8_t mChannel; ///< Channel used to transmit/receive the frame.
|
||||
int8_t mPower; ///< Transmit/receive power in dBm.
|
||||
bool mSecurityValid; ///< Security Enabled flag is set and frame passes security checks.
|
||||
} RadioPacket;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user