]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
merge ulogd-1 fix for TOS byte (Rich Bartell)
authorlaforge <laforge>
Fri, 23 Jul 2004 12:50:08 +0000 (12:50 +0000)
committerlaforge <laforge>
Fri, 23 Jul 2004 12:50:08 +0000 (12:50 +0000)
filter/raw2packet/ulogd_raw2packet_BASE.c

index 7a383d55e822ebb6ac804521e500077e8733eb2f..2cc733a33834513c4e078ed6615b9d787c445a0f 100644 (file)
@@ -243,7 +243,7 @@ static ulog_iret_t *_interp_iphdr(struct ulog_interpreter *ip,
        ret[1].flags |= ULOGD_RETF_VALID;
        ret[2].value.ui8 = iph->protocol;
        ret[2].flags |= ULOGD_RETF_VALID;
-       ret[3].value.ui8 = ntohs(iph->tos);
+       ret[3].value.ui8 = iph->tos;
        ret[3].flags |= ULOGD_RETF_VALID;
        ret[4].value.ui8 = iph->ttl;
        ret[4].flags |= ULOGD_RETF_VALID;