‘struct icmp_hdr’ is defined in both IP.h and rte_icmp.h. DPDK.cc include
rte_ethdev.h that references rte_icmp.h, and include IP.h. It cause
redefinition of ‘struct icmp_hdr’ error. So move the definition of
‘struct icmp_hdr’ from IP.h to IP.cc.
Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
l_dpdk_qp_last
};
+struct icmp_hdr {
+ enum class msg_type : uint8_t {
+ echo_reply = 0,
+ echo_request = 8,
+ };
+ msg_type type;
+ uint8_t code;
+ uint16_t csum;
+ uint32_t rest;
+} __attribute__((packed));
+
ipv4::ipv4(CephContext *c, EventCenter *cen, interface* netif)
: cct(c), center(cen), _netif(netif), _global_arp(netif),
_arp(c, _global_arp, cen),
friend class ipv4;
};
-struct icmp_hdr {
- enum class msg_type : uint8_t {
- echo_reply = 0,
- echo_request = 8,
- };
- msg_type type;
- uint8_t code;
- uint16_t csum;
- uint32_t rest;
-} __attribute__((packed));
-
class icmp {
public: