netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c?
@ 2005-05-13 13:50 Adrian Bunk
  2005-05-14  1:01 ` Sridhar Samudrala
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-05-13 13:50 UTC (permalink / raw)
  To: Clay Haapala; +Cc: sri, lksctp-developers, netdev, linux-kernel

As far as I understand it, lib/libcrc32c.c could be used instead of the 
similar code in net/sctp/crc32c.c .

Is there any reason why this isn't done?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

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

* Re: SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c?
  2005-05-13 13:50 SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c? Adrian Bunk
@ 2005-05-14  1:01 ` Sridhar Samudrala
  0 siblings, 0 replies; 2+ messages in thread
From: Sridhar Samudrala @ 2005-05-14  1:01 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Clay Haapala, lksctp-developers, netdev, linux-kernel

Adrian Bunk wrote:

>As far as I understand it, lib/libcrc32c.c could be used instead of the 
>similar code in net/sctp/crc32c.c .
>
>Is there any reason why this isn't done?
>  
>
The SCTP RFC3309 says that SCTP uses a tranport-level CRC where the bit
ordering is mirrored and different from link-level CRC.

The CRC is computed using a procedure similar to ETHERNET CRC [ITU32],
modified to reflect transport level usage.

So I am not sure if we can use the libcrc32c routines for calculating SCTP
crc32 checksum. But if it is possible, we should definitely use the crc32
library.

Thanks
Sridhar

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

end of thread, other threads:[~2005-05-14  1:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 13:50 SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c? Adrian Bunk
2005-05-14  1:01 ` Sridhar Samudrala

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).