Searched refs:fcs (Results 1 - 2 of 2) sorted by relevance

/haiku/src/add-ons/kernel/network/ppp/modem/
H A DModemDevice.cpp10 #include "fcs.h"
443 uint16 fcs = 0xffff; local
444 fcs = pppfcs16(fcs, data, length);
445 fcs ^= 0xffff;
446 data[length++] = fcs & 0x00ff;
447 data[length++] = (fcs & 0xff00) >> 8;
484 uint16 fcs = 0xffff;
485 fcs = pppfcs16(fcs, buffe
[all...]
H A Dfcs.h54 * Calculate a new fcs given the current fcs and the new data.
56 u16 pppfcs16(u16 fcs, const unsigned char *cp, int len) argument
59 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *cp++) & 0xff];
61 return (fcs);

Completed in 93 milliseconds