From: Stephen Hemminger <stephen@networkplumber.org>
To: netdev@vger.kernel.org
Subject: Fw: [Bug 77221] New: Clear tx_flags when transhdrlen == 0 in ip_append_data without checking?
Date: Tue, 3 Jun 2014 08:33:06 -0700 [thread overview]
Message-ID: <20140603083306.40ff45ee@nehalam.linuxnetplumber.net> (raw)
Begin forwarded message:
Date: Tue, 3 Jun 2014 00:46:20 -0700
From: "bugzilla-daemon@bugzilla.kernel.org" <bugzilla-daemon@bugzilla.kernel.org>
To: "stephen@networkplumber.org" <stephen@networkplumber.org>
Subject: [Bug 77221] New: Clear tx_flags when transhdrlen == 0 in ip_append_data without checking?
https://bugzilla.kernel.org/show_bug.cgi?id=77221
Bug ID: 77221
Summary: Clear tx_flags when transhdrlen == 0 in ip_append_data
without checking?
Product: Networking
Version: 2.5
Kernel Version: 3.14
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IPV4
Assignee: shemminger@linux-foundation.org
Reporter: yangzhe1990@gmail.com
Regression: No
Hi,
While I was tracing why TX_TIMESTAMP won't work with RAW socket and
Non-privileged ICMP socket, I found that both raw.c and ping.c call
ip_append_data with transhdrlen set to 0, and in ip_append_data, there are
timestamp specific
924 else
925 /* only the initial fragment is
926 time stamped */
927 cork->tx_flags = 0;
To my understanding in ping.c transhdrlen should be set to sizeof(struct
icmphdr) just like what icmp.c did.
And for RAW socket, since there are no concept of fragmentation, should we
check the protocol and only set cork->tx_flags = 0 when the socket_type !=
SOCK_RAW
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2014-06-03 15:33 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=20140603083306.40ff45ee@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=netdev@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.