*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 24 Dec 2007 03:35:16 +0000 (03:35 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 24 Dec 2007 03:35:16 +0000 (03:35 +0000)
mmsoftware/tap-bridge/modules/tap-logger.c

index 0c7e4ee..3406f6a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tap-logger.c,v 1.5 2007/12/24 03:16:21 mmondor Exp $ */
+/* $Id: tap-logger.c,v 1.6 2007/12/24 03:35:16 mmondor Exp $ */
 
 /*
  * Copyright (C) 2007, Matthew Mondor
@@ -163,7 +163,7 @@ frame_log(frame_t *f, int d)
 
        if (f->type == HDR_TAP_ETYPE_IP) {
                struct hdr_ip   *hdrip;
-               uint16_t        t;
+               uint16_t        t16;
                int             ver, hlen, flags, off;
                void            *ahdrip;
 
@@ -173,18 +173,17 @@ frame_log(frame_t *f, int d)
                }
                hdrip = ahdrtap;
 
-               t = BYTEORDER_HOST16(hdrip->ver_hlen);
-               ver = HDR_IP_VER_GET(t);
-               hlen = HDR_IP_HLEN_GET(t);
+               ver = HDR_IP_VER_GET(hdrip->ver_hlen);
+               hlen = HDR_IP_HLEN_GET(hdrip->ver_hlen);
                if (hlen < 4) {
                        logprintf("  Short IP header length (%d)\n", hlen);
                        return;
                }
                ahdrip = &((uint32_t *)hdrip)[hlen];
 
-               t = BYTEORDER_HOST16(hdrip->flags_off);
-               flags = HDR_IP_FLAGS_GET(t);
-               off = HDR_IP_OFF_GET(t);
+               t16 = BYTEORDER_HOST16(hdrip->flags_off);
+               flags = HDR_IP_FLAGS_GET(t16);
+               off = HDR_IP_OFF_GET(t16);
 
                /* XXX */