netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Taehee Yoo <ap420073@gmail.com>
To: davem@davemloft.net, Steffen Klassert <steffen.klassert@secunet.com>
Cc: netdev@vger.kernel.org, Taehee Yoo <ap420073@gmail.com>
Subject: Re: [PATCH nf-next] netfilter: nft_reject_bridge: remove unnecessary ttl set
Date: Tue, 12 Jun 2018 01:54:05 +0900	[thread overview]
Message-ID: <CAMArcTXpkK7sPOUSynNMWPN0-d7d7gzFFsZzdOOAeu9_UQDS4w@mail.gmail.com> (raw)
In-Reply-To: <20180611163505.9827-1-ap420073@gmail.com>

2018-06-12 1:35 GMT+09:00 Taehee Yoo <ap420073@gmail.com>:
> In the nft_reject_br_send_v4_tcp_reset(), a ttl is set by
> the nf_reject_ip_tcphdr_put(). so, below code is unnecessary.
>
> Signed-off-by: Taehee Yoo <ap420073@gmail.com>
> ---
>  net/bridge/netfilter/nft_reject_bridge.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/net/bridge/netfilter/nft_reject_bridge.c b/net/bridge/netfilter/nft_reject_bridge.c
> index eaf05de..e0b082c 100644
> --- a/net/bridge/netfilter/nft_reject_bridge.c
> +++ b/net/bridge/netfilter/nft_reject_bridge.c
> @@ -89,8 +89,7 @@ static void nft_reject_br_send_v4_tcp_reset(struct net *net,
>         niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP,
>                                    net->ipv4.sysctl_ip_default_ttl);
>         nf_reject_ip_tcphdr_put(nskb, oldskb, oth);
> -       niph->ttl       = net->ipv4.sysctl_ip_default_ttl;
> -       niph->tot_len   = htons(nskb->len);
> +       niph->tot_len = htons(nskb->len);
>         ip_send_check(niph);
>
>         nft_reject_br_push_etherhdr(oldskb, nskb);
> --
> 2.9.3
>

I'm so sorry, I sent this to you by mistake.
Please ignore this.

Thanks

      reply	other threads:[~2018-06-11 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11 16:35 [PATCH nf-next] netfilter: nft_reject_bridge: remove unnecessary ttl set Taehee Yoo
2018-06-11 16:54 ` Taehee Yoo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMArcTXpkK7sPOUSynNMWPN0-d7d7gzFFsZzdOOAeu9_UQDS4w@mail.gmail.com \
    --to=ap420073@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).