Home | History | Annotate | Download | only in netbt

Lines Matching defs:fcs

152 #define FCS(f, d)	crctable[(f) ^ (d)]
613 uint8_t fcs, b;
619 * UIH frames: FCS is only calculated on address and control fields
620 * For other frames: FCS is calculated on address, control and length
623 fcs = 0xff;
633 fcs = FCS(fcs, b);
639 fcs = FCS(fcs, b);
647 fcs = FCS(fcs, b);
660 fcs = FCS(fcs, b);
665 /* FCS byte is last octet in frame */
668 fcs = FCS(fcs, b);
670 if (fcs != 0xcf) {
671 DPRINTF("Bad FCS value (%#2.2x), frame discarded\n", fcs);
1469 uint8_t fcs, cr;
1498 fcs = 0xff;
1499 fcs = FCS(fcs, hdr->address);
1500 fcs = FCS(fcs, hdr->control);
1501 fcs = FCS(fcs, hdr->length);
1502 fcs = 0xff - fcs; /* ones complement */
1503 hdr->fcs = fcs;
1512 DPRINTFN(5, "dlci %d type %2.2x (%d bytes, fcs=%#2.2x)\n",
1513 dlci, type, m->m_pkthdr.len, fcs);
1532 uint8_t fcs, *hdr;
1552 * [ADDRESS] [CONTROL] [LENGTH] [CREDITS] [...] [FCS]
1559 * FCS is one octet and calculated on address and
1575 fcs = FCS(0xff, *hdr);
1580 fcs = FCS(fcs, *hdr);
1601 /* Append FCS */
1602 fcs = 0xff - fcs; /* ones complement */
1604 m_copyback(m0, len, sizeof(fcs), &fcs);
1605 if (m0->m_pkthdr.len != len + sizeof(fcs))
1608 DPRINTFN(10, "dlci %d, pktlen %d (%d data, %d credits), fcs=%#2.2x\n",
1610 credits, fcs);