]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: remove unused macros
authorVictor Julien <vjulien@oisf.net>
Wed, 15 Feb 2023 08:51:30 +0000 (09:51 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 15 Feb 2023 11:12:06 +0000 (12:12 +0100)
src/stream-tcp.c

index 65d9df33446da7859bf8af696392841e8fc317de..5aa519ee66dc54c50aa7abc706ed6fc98583e68d 100644 (file)
@@ -6126,35 +6126,6 @@ void StreamTcpSetSessionBypassFlag(TcpSession *ssn)
     ssn->flags |= STREAMTCP_FLAG_BYPASS;
 }
 
-#define PSEUDO_PKT_SET_IPV4HDR(nipv4h,ipv4h) do { \
-        IPV4_SET_RAW_VER(nipv4h, IPV4_GET_RAW_VER(ipv4h)); \
-        IPV4_SET_RAW_HLEN(nipv4h, IPV4_GET_RAW_HLEN(ipv4h)); \
-        IPV4_SET_RAW_IPLEN(nipv4h, IPV4_GET_RAW_IPLEN(ipv4h)); \
-        IPV4_SET_RAW_IPTOS(nipv4h, IPV4_GET_RAW_IPTOS(ipv4h)); \
-        IPV4_SET_RAW_IPPROTO(nipv4h, IPV4_GET_RAW_IPPROTO(ipv4h)); \
-        (nipv4h)->s_ip_src = IPV4_GET_RAW_IPDST(ipv4h); \
-        (nipv4h)->s_ip_dst = IPV4_GET_RAW_IPSRC(ipv4h); \
-    } while (0)
-
-#define PSEUDO_PKT_SET_IPV6HDR(nipv6h,ipv6h) do { \
-        (nipv6h)->s_ip6_src[0] = (ipv6h)->s_ip6_dst[0]; \
-        (nipv6h)->s_ip6_src[1] = (ipv6h)->s_ip6_dst[1]; \
-        (nipv6h)->s_ip6_src[2] = (ipv6h)->s_ip6_dst[2]; \
-        (nipv6h)->s_ip6_src[3] = (ipv6h)->s_ip6_dst[3]; \
-        (nipv6h)->s_ip6_dst[0] = (ipv6h)->s_ip6_src[0]; \
-        (nipv6h)->s_ip6_dst[1] = (ipv6h)->s_ip6_src[1]; \
-        (nipv6h)->s_ip6_dst[2] = (ipv6h)->s_ip6_src[2]; \
-        (nipv6h)->s_ip6_dst[3] = (ipv6h)->s_ip6_src[3]; \
-        IPV6_SET_RAW_NH(nipv6h, IPV6_GET_RAW_NH(ipv6h));    \
-    } while (0)
-
-#define PSEUDO_PKT_SET_TCPHDR(ntcph,tcph) do { \
-        COPY_PORT((tcph)->th_dport, (ntcph)->th_sport); \
-        COPY_PORT((tcph)->th_sport, (ntcph)->th_dport); \
-        (ntcph)->th_seq = (tcph)->th_ack; \
-        (ntcph)->th_ack = (tcph)->th_seq; \
-    } while (0)
-
 /** \brief Create a pseudo packet injected into the engine to signal the
  *         opposing direction of this stream trigger detection/logging.
  *