Martin Röhricht wrote:
Hello together,
for the purpose of building or analyzing a frame in Retransmission and
Flow control mode within the L2CAP layer the Bluetooth Specification
demands to make use of a 16 bit Frame Check Sequence with the generator
polynomial of g(D) = D^{16} + D^{15} + D^2 + 1.
Now I'm curious whether there exists an easy to use built-in kernel
function for? Does anybody know how to build a FCS over the data portion
of a socket buffer?
Martin
run
grep -r polynomial $tree
I got a lot of hits - Im sure you could swipe suitable code there somewhere.
fs/udf/crc.c: * Generate a table for fast 16-bit CRC calculations (any
polynomial).
if you look at the bottom of your .config, there are several lib/crypt
things too.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/