From e416b2cdfbd28cb6ea6946f1040ac49838f5a34c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 5 Nov 2013 16:55:57 +0100 Subject: [PATCH] stream: fix IPv6 pseudo packet setup Bug #1022: IPv6 pseudo packet setup using reverse logic of IPv4. --- src/stream-tcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index c1414d9573..a709daba96 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -5283,10 +5283,10 @@ static void StreamTcpPseudoPacketSetupHeader(Packet *np, Packet *p) PSEUDO_PKT_SET_TCPHDR(np->tcph, p->tcph); /* Setup the adress and port details */ - SET_IPV6_SRC_ADDR(p, &np->src); - SET_IPV6_DST_ADDR(p, &np->dst); - SET_TCP_SRC_PORT(p, &np->sp); - SET_TCP_DST_PORT(p, &np->dp); + SET_IPV6_SRC_ADDR(p, &np->dst); + SET_IPV6_DST_ADDR(p, &np->src); + SET_TCP_SRC_PORT(p, &np->dp); + SET_TCP_DST_PORT(p, &np->sp); } /* we don't need a payload (if any) */