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:
Jonathan Hui
2016-05-26 11:45:44 -07:00
parent e68e38b8e8
commit 3bc2809ea9
8 changed files with 121 additions and 25 deletions
+1
View File
@@ -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;
/**