diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-12 14:47:47 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-12 14:47:47 +0000 |
commit | f1e9ef46b34d27557da82e17aeed0b4aa8e4e5c8 (patch) | |
tree | f5bce0d1a844992ae5e30ef22c01c927d883acd6 /input/packet | |
parent | a9f85a39c52807920061d526082d9681e1c2cb45 (diff) |
[PATCH 2/5] Dont ntohs() mac_len of ULOG, since it is not in network byte order
Stores mac_len correctly, since within ULOG structire it is not stored
in network byte order.
Signed-off-by: Peter Warasin <peter@endian.com>
Diffstat (limited to 'input/packet')
-rw-r--r-- | input/packet/ulogd_inppkt_ULOG.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c index 6298e41..853bf2c 100644 --- a/input/packet/ulogd_inppkt_ULOG.c +++ b/input/packet/ulogd_inppkt_ULOG.c @@ -167,7 +167,7 @@ static int interp_packet(struct ulogd_pluginstance *ip, ulog_packet_msg_t *pkt) if (pkt->mac_len) { ret[ULOG_KEY_RAW_MAC].u.value.ptr = pkt->mac; ret[ULOG_KEY_RAW_MAC].flags |= ULOGD_RETF_VALID; - ret[ULOG_KEY_RAW_MAC_LEN].u.value.ui16 = ntohs(pkt->mac_len); + ret[ULOG_KEY_RAW_MAC_LEN].u.value.ui16 = pkt->mac_len; ret[ULOG_KEY_RAW_MAC_LEN].flags |= ULOGD_RETF_VALID; } |