netdev
[Top] [All Lists]

Re: SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c?

To: Adrian Bunk <bunk@xxxxxxxxx>
Subject: Re: SCTP: use lib/libcrc32c.c instead of net/sctp/crc32c.c?
From: Sridhar Samudrala <sri@xxxxxxxxxx>
Date: Fri, 13 May 2005 18:01:27 -0700
Cc: Clay Haapala <chaapala@xxxxxxxxx>, lksctp-developers@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <20050513135004.GG3603@xxxxxxxxx>
References: <20050513135004.GG3603@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
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







<Prev in Thread] Current Thread [Next in Thread>