Lines Matching +full:sync +full:- +full:token
26 #include "netdissect-stdinc.h"
63 * FDDI Frame Control values. (48-bit addressing only).
66 #define FDDIFC_NRT 0x80 /* Nonrestricted token */
67 #define FDDIFC_RT 0xc0 /* Restricted token */
73 #define FDDIFC_LLC_SYNC 0xd0 /* Sync. LLC frame */
83 * Some FDDI interfaces use bit-swapped addresses.
105 * save per-packet, then the real 21-byte FDDI header.
114 * over ethernet) we really need to re-think the rather simple
118 * - vj
157 * Print FDDI frame-control bits
168 case FDDIFC_NRT: /* Nonrestricted token */ in print_fddi_fc()
172 case FDDIFC_RT: /* Restricted token */ in print_fddi_fc()
208 ND_PRINT("sync%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc()
234 * bit-swap the fddi addresses (isn't the IEEE standards in extract_fddi_addrs()
238 fdst[i] = fddi_bit_swap[fddip->fddi_dhost[i]]; in extract_fddi_addrs()
240 fsrc[i] = fddi_bit_swap[fddip->fddi_shost[i]]; in extract_fddi_addrs()
242 memcpy(fdst, (const char *)fddip->fddi_dhost, 6); in extract_fddi_addrs()
243 memcpy(fsrc, (const char *)fddip->fddi_shost, 6); in extract_fddi_addrs()
260 if (!ndo->ndo_qflag) in fddi_hdr_print()
261 print_fddi_fc(ndo, GET_U_1(fddip->fddi_fc)); in fddi_hdr_print()
282 ndo->ndo_protocol = "fddi"; in fddi_print()
288 fc = GET_U_1(fddip->fddi_fc); in fddi_print()
295 if (ndo->ndo_eflag) in fddi_print()
304 length -= FDDI_HDRLEN; in fddi_print()
306 caplen -= FDDI_HDRLEN; in fddi_print()
310 /* Try to print the LLC-layer header & higher layers */ in fddi_print()
317 if (!ndo->ndo_suppress_default_print) in fddi_print()
319 llc_hdrlen = -llc_hdrlen; in fddi_print()
326 if (!ndo->ndo_eflag) in fddi_print()
329 if (!ndo->ndo_suppress_default_print) in fddi_print()
338 * to the FDDI header of the packet, 'h->ts' is the timestamp,
339 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
345 ndo->ndo_protocol = "fddi"; in fddi_if_print()
346 ndo->ndo_ll_hdr_len += fddi_print(ndo, p, h->len, h->caplen); in fddi_if_print()