lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPaK2r921GtJVhwGKnZyCcQ1qkcWA=8TBWwNkW03R_=7TKzo6g@mail.gmail.com>
Date:   Wed, 23 Sep 2020 14:06:25 +0800
From:   yue longguang <yuelongguang@...il.com>
To:     wensong@...ux-vs.org, horms@...ge.net.au, ja@....bg,
        pablo@...filter.org, kadlec@...filter.org, fw@...len.de,
        David Miller <davem@...emloft.net>, kuba@...nel.org,
        netdev@...r.kernel.org, lvs-devel@...r.kernel.org,
        netfilter-devel@...r.kernel.org, coreteam@...filter.org,
        LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] ipvs: adjust the debug order of src and dst

From: ylg <bigclouds@....com>

adjust the debug order of src and dst when tcp state changes

Signed-off-by: ylg <bigclouds@....com>
---
 net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_proto_tcp.c
b/net/netfilter/ipvs/ip_vs_proto_tcp.c
index dc2e7da2742a..6567eb45a234 100644
--- a/net/netfilter/ipvs/ip_vs_proto_tcp.c
+++ b/net/netfilter/ipvs/ip_vs_proto_tcp.c
@@ -548,10 +548,10 @@ set_tcp_state(struct ip_vs_proto_data *pd,
struct ip_vs_conn *cp,
       th->fin ? 'F' : '.',
       th->ack ? 'A' : '.',
       th->rst ? 'R' : '.',
-      IP_VS_DBG_ADDR(cp->daf, &cp->daddr),
-      ntohs(cp->dport),
       IP_VS_DBG_ADDR(cp->af, &cp->caddr),
       ntohs(cp->cport),
+      IP_VS_DBG_ADDR(cp->daf, &cp->daddr),
+      ntohs(cp->dport),
       tcp_state_name(cp->state),
       tcp_state_name(new_state),
       refcount_read(&cp->refcnt));
-- 
2.20.1 (Apple Git-117)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ