]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packet: remove empty and unused UDPVars struct
authorVictor Julien <victor@inliniac.net>
Tue, 16 Aug 2016 11:54:30 +0000 (13:54 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 16 Aug 2016 11:54:30 +0000 (13:54 +0200)
src/decode-udp.h
src/decode.h

index 5636c32b0f42197db3e0831b3e00f3ca094c1614..7bc0ec08051075b66ad4a00683feedb22ef83d12 100644 (file)
@@ -44,13 +44,9 @@ typedef struct UDPHdr_
        uint16_t uh_sum;    /* checksum */
 } __attribute__((__packed__)) UDPHdr;
 
-typedef struct UDPVars_
-{
-} UDPVars;
-
-#define CLEAR_UDP_PACKET(p) do { \
-    (p)->udph = NULL; \
-    (p)->level4_comp_csum = -1; \
+#define CLEAR_UDP_PACKET(p) do {    \
+    (p)->level4_comp_csum = -1;     \
+    (p)->udph = NULL;               \
 } while (0)
 
 void DecodeUDPV4RegisterTests(void);
index ff221a6876e18c18fdda4fcd438fd0a9da4c0983..2c759c0122eb39faf1bf141e58da9bce5c214f02 100644 (file)
@@ -467,12 +467,10 @@ typedef struct Packet_
     /* Can only be one of TCP, UDP, ICMP at any given time */
     union {
         TCPVars tcpvars;
-        UDPVars udpvars;
         ICMPV4Vars icmpv4vars;
         ICMPV6Vars icmpv6vars;
     } l4vars;
 #define tcpvars     l4vars.tcpvars
-#define udpvars     l4vars.udpvars
 #define icmpv4vars  l4vars.icmpv4vars
 #define icmpv6vars  l4vars.icmpv6vars