We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bcec9 commit 24ea1d0Copy full SHA for 24ea1d0
process/icmp.hpp
@@ -83,7 +83,7 @@ struct RecordExtICMP : public RecordExt {
83
#ifdef WITH_NEMEA
84
virtual void fill_unirec(ur_template_t *tmplt, void *record)
85
{
86
- ur_set(tmplt, record, F_L4_ICMP_TYPE_CODE, type_code);
+ ur_set(tmplt, record, F_L4_ICMP_TYPE_CODE, ntohs(type_code));
87
}
88
89
const char *get_unirec_tmplt() const
@@ -100,7 +100,7 @@ struct RecordExtICMP : public RecordExt {
100
return -1;
101
102
103
- *reinterpret_cast<uint16_t *>(buffer) = ntohs(type_code);
+ *reinterpret_cast<uint16_t *>(buffer) = type_code;
104
105
return LEN;
106
0 commit comments