2023-05-03 14:01:32 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* eth_icmp.hpp
|
|
|
|
|
|
*
|
2023-06-08 12:27:49 +03:00
|
|
|
|
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
2023-05-03 14:01:32 +03:00
|
|
|
|
* Author: sychev
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
|
|
|
|
|
|
#define FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
|
|
|
|
|
|
|
2023-06-26 18:22:30 +03:00
|
|
|
|
#include "free_rtos/handler_store/handler.hpp"
|
2023-05-03 14:01:32 +03:00
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
2023-06-08 12:27:49 +03:00
|
|
|
|
#include <cstddef>
|
2023-05-03 14:01:32 +03:00
|
|
|
|
|
|
|
|
|
|
namespace free_rtos {
|
|
|
|
|
|
|
|
|
|
|
|
class EthIcmp : public Handler {
|
|
|
|
|
|
public:
|
|
|
|
|
|
virtual int32_t Process(uint8_t * p_data, uint32_t len) override;
|
2023-06-08 12:27:49 +03:00
|
|
|
|
virtual uint32_t Sender(uint8_t * p_data, size_t scatter_segment) override;
|
2023-05-03 14:01:32 +03:00
|
|
|
|
|
|
|
|
|
|
uint32_t getStat() {return rx_cnt_;};
|
|
|
|
|
|
private:
|
|
|
|
|
|
uint32_t rx_cnt_ = 0;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_ */
|