Lines Matching full:fcs
1803 uint32_t fcs, crc_check;
1809 /* Assume 2 octet FCS, the FCS length depends on the PHY, and we do not
1812 /* Cannot have FCS, assume no FCS. */
1813 fcs = 0;
1815 /* Test for 4 octet FCS. */
1816 fcs = GET_LE_U_4(p + caplen - 4);
1818 if (crc_check == fcs) {
1819 /* Remove FCS */
1822 /* Test for 2 octet FCS. */
1823 fcs = GET_LE_U_2(p + caplen - 2);
1825 if (crc_check == fcs) {
1826 /* Remove FCS */
1829 /* Wrong FCS, FCS might not be included in the
2102 /* Print FCS */
2104 if (crc_check == fcs) {
2105 ND_PRINT("FCS %x ", fcs);
2107 ND_PRINT("wrong FCS %x vs %x (assume no FCS stored) ",
2108 fcs, crc_check);
2211 uint32_t fcs, crc_check;
2220 /* Assume 2 octet FCS, the FCS length depends on the PHY, and we do not
2223 /* Cannot have FCS, assume no FCS. */
2224 fcs = 0;
2227 /* Test for 4 octet FCS. */
2228 fcs = GET_LE_U_4(p + caplen - 4);
2230 if (crc_check == fcs) {
2231 /* Remove FCS */
2234 fcs = GET_LE_U_2(p + caplen - 2);
2236 if (crc_check == fcs) {
2237 /* Remove FCS */
2242 fcs = GET_LE_U_2(p + caplen - 2);
2244 if (crc_check == fcs) {
2245 /* Remove FCS */
2426 /* Print FCS */
2428 if (crc_check == fcs) {
2429 ND_PRINT("FCS %x ", fcs);
2431 ND_PRINT("wrong FCS %x vs %x (assume no FCS stored) ",
2432 fcs, crc_check);