mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to disable TCP's checksum
@ 2002-02-27 14:17 Zhu Ying Jie
  2002-02-27 14:21 ` Roberto Nibali
  2002-02-27 14:28 ` bert hubert
  0 siblings, 2 replies; 4+ messages in thread
From: Zhu Ying Jie @ 2002-02-27 14:17 UTC (permalink / raw)
  To: linux-kernel

Hi,
  I am currently using kernel version 2.4.2 and trying to disable
tcp_input's checksum function. However, even I comment all the csum_error
in the file tcp_input.c, the packet (with wrong checksum) seems still will
be dropped. Can anyone tell me how to do the work? 

Zhu Ying jie
Department of Computer Science,
School of Computing, 
National University of Singapore


SS****************************SS***********************************SS
+           From little town of far land we came,                   + 
+           to save our honor from a world of flame.                +
+           By little town of far land we sleep,                    + 
+           and trust that world will be won for you to keep.       +
SS****************************SS***********************************SS



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable TCP's checksum
  2002-02-27 14:17 How to disable TCP's checksum Zhu Ying Jie
@ 2002-02-27 14:21 ` Roberto Nibali
  2002-02-27 14:28 ` bert hubert
  1 sibling, 0 replies; 4+ messages in thread
From: Roberto Nibali @ 2002-02-27 14:21 UTC (permalink / raw)
  To: Zhu Ying Jie; +Cc: linux-kernel

Hello,

Zhu Ying Jie wrote:
> Hi,
>   I am currently using kernel version 2.4.2 and trying to disable
> tcp_input's checksum function. However, even I comment all the csum_error
> in the file tcp_input.c, the packet (with wrong checksum) seems still will
> be dropped. Can anyone tell me how to do the work? 

You can try to set skb->ip_summed=CHECKSUM_UNNECESSARY. But read the 
comments in ../include/linux/skbuff.h to see if you really want that.

HTH,
Roberto Nibali, ratz


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable TCP's checksum
  2002-02-27 14:17 How to disable TCP's checksum Zhu Ying Jie
  2002-02-27 14:21 ` Roberto Nibali
@ 2002-02-27 14:28 ` bert hubert
  1 sibling, 0 replies; 4+ messages in thread
From: bert hubert @ 2002-02-27 14:28 UTC (permalink / raw)
  To: Zhu Ying Jie; +Cc: linux-kernel

On Wed, Feb 27, 2002 at 02:20:11PM +0000, Zhu Ying Jie wrote:
> Hi,
>   I am currently using kernel version 2.4.2 and trying to disable
> tcp_input's checksum function. However, even I comment all the csum_error
> in the file tcp_input.c, the packet (with wrong checksum) seems still will
> be dropped. Can anyone tell me how to do the work? 

Perhaps the ip checksum is also incorrect?

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable TCP's checksum
@ 2002-02-27 17:17 Nivedita Singhvi
  0 siblings, 0 replies; 4+ messages in thread
From: Nivedita Singhvi @ 2002-02-27 17:17 UTC (permalink / raw)
  To: zhuyingj; +Cc: linux-kernel


> I am currently using kernel version 2.4.2 and trying to
> disable tcp_input's checksum function. However, even
> I comment all the csum_error in the file tcp_input.c, the
> packet (with wrong checksum) seems still will be dropped.

If the checksum field is the only one thats incorrect or messed
up, then disabling the checksum will suffice.  But if any other part
of the packet is also corrupted or altered in some way, it
might fail the many other checks both IP and TCP perform.

(Sorry, I know thats fairly obvious, but its easy to miss a check
or two. :) )

> Zhu Ying jie

thanks,
Nivedita


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-02-27 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-27 14:17 How to disable TCP's checksum Zhu Ying Jie
2002-02-27 14:21 ` Roberto Nibali
2002-02-27 14:28 ` bert hubert
2002-02-27 17:17 Nivedita Singhvi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®