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.
2 parents 1dc6279 + 24ea1d0 commit 078207eCopy full SHA for 078207e
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