Lines Matching refs:fcs
102 static uint16_t Crc16(uint16_t fcs, u_char *cp, int len);
385 uint16_t fcs, lenn;
416 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2);
417 fcs = Crc16(fcs, priv->inbuf + 2, inlen);
418 fcs = ~fcs;
438 (out + outlen)[0] = fcs & 0xFF;
439 (out + outlen)[1] = fcs >> 8;
468 uint16_t fcs;
521 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2);
522 fcs = Crc16(fcs, priv->outbuf, len);
523 fcs = Crc16(fcs, priv->inbuf + inlen - 2, 2);
525 if (fcs != PPP_GOODFCS) {
554 m_adj(m, -2); /* Strip fcs. */