Lines Matching +full:break +full:- +full:control

26 #include "netdissect-stdinc.h"
39 nd_uint8_t fddi_fc; /* frame control */
52 /* Useful values for fddi_fc (frame control) field */
55 * FDDI Frame Control bits
60 #define FDDIFC_Z 0x0f /* Control bits */
63 * FDDI Frame Control values. (48-bit addressing only).
80 #define FDDIFC_ZZZZ 0x0F /* Control bits */
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
166 break; in print_fddi_fc()
170 break; in print_fddi_fc()
174 break; in print_fddi_fc()
178 break; in print_fddi_fc()
182 break; in print_fddi_fc()
186 break; in print_fddi_fc()
190 break; in print_fddi_fc()
197 break; in print_fddi_fc()
201 break; in print_fddi_fc()
205 break; in print_fddi_fc()
209 break; in print_fddi_fc()
213 break; in print_fddi_fc()
217 break; in print_fddi_fc()
221 break; 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()
308 /* Frame Control field determines interpretation of packet */ 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()