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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPaK2r-jJf4z28S+h=pbaP4MN5QhG_HMDFA3RZbyhRQeALmhRQ@mail.gmail.com>
Date:   Wed, 30 Sep 2020 10:27:55 +0800
From:   yue longguang <yuelongguang@...il.com>
To:     Julian Anastasov <ja@....bg>, "longguang.yue" <bigclouds@....com>,
        Pablo Neira Ayuso <pablo@...filter.org>,
        Simon Horman <horms@...ge.net.au>
Cc:     Wensong Zhang <wensong@...ux-vs.org>,
        Jozsef Kadlecsik <kadlec@...filter.org>,
        Florian Westphal <fw@...len.de>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        "open list:IPVS" <netdev@...r.kernel.org>,
        "open list:IPVS" <lvs-devel@...r.kernel.org>,
        "open list:NETFILTER" <coreteam@...filter.org>
Subject: Re: [PATCH v5] ipvs: adjust the debug info in function set_tcp_state

Julian, Pablo, Simon,  Hi,  ping

On Tue, Sep 29, 2020 at 10:15 AM yue longguang <yuelongguang@...il.com> wrote:
>
> I sincerely apologize for the trouble which takes up much of your
> time. If the last patch does not work , would you please fix it?
> thanks
>
> On Mon, Sep 28, 2020 at 10:51 AM longguang.yue <bigclouds@....com> wrote:
> >
> > Outputting client,virtual,dst addresses info when tcp state changes,
> > which makes the connection debug more clear
> >
> > Signed-off-by: longguang.yue <bigclouds@....com>
> > ---
> >  net/netfilter/ipvs/ip_vs_proto_tcp.c | 10 ++++++----
> >  1 file changed, 6 insertions(+), 4 deletions(-)
> >
> > diff --git a/net/netfilter/ipvs/ip_vs_proto_tcp.c b/net/netfilter/ipvs/ip_vs_proto_tcp.c
> > index dc2e7da2742a..7da51390cea6 100644
> > --- a/net/netfilter/ipvs/ip_vs_proto_tcp.c
> > +++ b/net/netfilter/ipvs/ip_vs_proto_tcp.c
> > @@ -539,8 +539,8 @@ set_tcp_state(struct ip_vs_proto_data *pd, struct ip_vs_conn *cp,
> >         if (new_state != cp->state) {
> >                 struct ip_vs_dest *dest = cp->dest;
> >
> > -               IP_VS_DBG_BUF(8, "%s %s [%c%c%c%c] %s:%d->"
> > -                             "%s:%d state: %s->%s conn->refcnt:%d\n",
> > +               IP_VS_DBG_BUF(8, "%s %s [%c%c%c%c] c:%s:%d v:%s:%d "
> > +                             "d:%s:%d state: %s->%s conn->refcnt:%d\n",
> >                               pd->pp->name,
> >                               ((state_off == TCP_DIR_OUTPUT) ?
> >                                "output " : "input "),
> > @@ -548,10 +548,12 @@ 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->af, &cp->vaddr),
> > +                             ntohs(cp->vport),
> > +                             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