pub unsafe extern "C" fn ieee802154_dst_filter(
    mhr: *const u8,
    pan: u16,
    short_addr: network_uint16_t,
    ext_addr: *const eui64_t
) -> c_int
Expand description

@brief Check whether a frame pass the IEEE 802.15.4 frame filter.

A frame passes the frame filter only if:

  • The PAN ID matches the PAN ID of the frame filter or the broadcast PAN ID
  • Either the Short or Extended Address matches the frame filter OR the Short Address is the broadcast address.

@param[in] mhr MAC header (PSDU) @param[in] pan PAN ID of the frame filter. @param[in] short_addr Short Address of the frame filter. @param[in] ext_addr Extended Address of the frame filter.

@return 0 if frame passes the frame filter. @return 1 if frame doesn’t pass the frame filter.