* Relative Checksum
@ 2003-03-26 8:33 Gilad Benjamini
2003-03-26 18:16 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Gilad Benjamini @ 2003-03-26 8:33 UTC (permalink / raw)
To: linux-mips
Hi,
ip_fast_csum provides an asm version for IP checksum.
Any available mips-asm implementation out there for
a relative checksum?
i.e. I get a packet, change
a field or two, and want to compute just the
change in the checksum.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Relative Checksum
2003-03-26 8:33 Relative Checksum Gilad Benjamini
@ 2003-03-26 18:16 ` Ralf Baechle
2003-03-26 19:38 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2003-03-26 18:16 UTC (permalink / raw)
To: Gilad Benjamini; +Cc: linux-mips
On Wed, Mar 26, 2003 at 08:33:21AM +0000, Gilad Benjamini wrote:
> ip_fast_csum provides an asm version for IP checksum.
> Any available mips-asm implementation out there for
> a relative checksum?
>
> i.e. I get a packet, change
> a field or two, and want to compute just the
> change in the checksum.
I suggest to look at the code for IP masquerading which already does things
like this when rewriting packets.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Relative Checksum
2003-03-26 18:16 ` Ralf Baechle
@ 2003-03-26 19:38 ` Alan Cox
0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2003-03-26 19:38 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Gilad Benjamini, linux-mips
On Wed, 2003-03-26 at 18:16, Ralf Baechle wrote:
> On Wed, Mar 26, 2003 at 08:33:21AM +0000, Gilad Benjamini wrote:
>
> > ip_fast_csum provides an asm version for IP checksum.
> > Any available mips-asm implementation out there for
> > a relative checksum?
> >
> > i.e. I get a packet, change
> > a field or two, and want to compute just the
> > change in the checksum.
>
> I suggest to look at the code for IP masquerading which already does things
> like this when rewriting packets.
Also read the RFC material on the danger of relative checksum updates.
There are a couple of interesting gotcha's with some stacks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-26 18:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26 8:33 Relative Checksum Gilad Benjamini
2003-03-26 18:16 ` Ralf Baechle
2003-03-26 19:38 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox