All of lore.kernel.org
 help / color / mirror / Atom feed
From: causeless <causeless@gmail.com>
To: netfilter@vger.kernel.org
Subject: length module documentation mismatch
Date: Thu, 04 Jun 2015 23:56:18 +0900	[thread overview]
Message-ID: <55706712.7040705@gmail.com> (raw)

In iptables-extension man page, it says length module matches the payload of L3.
but xt_length.c matches the total length of IPv4/v6 packet.

https://github.com/torvalds/linux/blob/4f671fe2f9523a1ea206f63fe60a7c7b3a56d5c7/net/netfilter/xt_length.c#L27
>	u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len);

http://git.netfilter.org/iptables/tree/extensions/libxt_length.man
> This module matches the length of the layer-3 payload (e.g. layer-4 packet)
should have been, perhaps,
> This module matches the length of the layer-3 packet (e.g. layer-2 payload)

                 reply	other threads:[~2015-06-04 14:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=55706712.7040705@gmail.com \
    --to=causeless@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.