Lines Matching defs:fcs
104 static uint16_t Crc16(uint16_t fcs, u_char *cp, int len);
387 uint16_t fcs, lenn;
418 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2);
419 fcs = Crc16(fcs, priv->inbuf + 2, inlen);
420 fcs = ~fcs;
440 (out + outlen)[0] = fcs & 0xFF;
441 (out + outlen)[1] = fcs >> 8;
470 uint16_t fcs;
523 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2);
524 fcs = Crc16(fcs, priv->outbuf, len);
525 fcs = Crc16(fcs, priv->inbuf + inlen - 2, 2);
527 if (fcs != PPP_GOODFCS) {
556 m_adj(m, -2); /* Strip fcs. */