Lines Matching defs:fh
138 register struct fddi_header *fh;
275 fh = mtod(m, struct fddi_header *);
277 switch (fh->fddi_fc & (FDDIFC_C|FDDIFC_L|FDDIFC_F)) {
280 if ((fh->fddi_fc & FDDIFC_Z) > 7)
286 if (fh->fddi_fc & FDDIFC_Z)
292 if ((fh->fddi_fc & FDDIFC_Z) == 0)
302 if (fh->fddi_dhost[0] & 1)
333 fh = mtod(m, struct fddi_header *);
334 fh->fddi_fc = FDDIFC_LLC_ASYNC|FDDIFC_LLC_PRIO4;
335 (void)memcpy((caddr_t)fh->fddi_dhost, (caddr_t)edst, sizeof (edst));
337 (void)memcpy((caddr_t)fh->fddi_shost, (caddr_t)ac->ac_enaddr,
338 sizeof(fh->fddi_shost));
356 } else if (bcmp(fh->fddi_dhost,
357 fh->fddi_shost, sizeof(fh->fddi_shost)) == 0) {
395 fddi_input(ifp, fh, m)
397 register struct fddi_header *fh;
409 ifp->if_ibytes += m->m_pkthdr.len + sizeof (*fh);
410 if (fh->fddi_dhost[0] & 1) {
411 if (bcmp((caddr_t)fddibroadcastaddr, (caddr_t)fh->fddi_dhost,
418 && bcmp(((struct arpcom *)ifp)->ac_enaddr, (caddr_t)fh->fddi_dhost,
419 sizeof(fh->fddi_dhost)) != 0) {
430 if ((fh->fddi_fc & FDDIFC_LLC_PRIO7) == FDDIFC_LLC_PRIO0)
504 M_PREPEND(m, sizeof *fh, M_DONTWAIT);
507 *mtod(m, struct fddi_header *) = *fh;
544 eh->ether_shost[i] = fh->fddi_dhost[i];
545 eh->ether_dhost[i] = fh->fddi_shost[i];
563 if ( !sdl_sethdrif(ifp, fh->fddi_shost, LLC_X25_LSAP,
564 fh->fddi_dhost, LLC_X25_LSAP, 6,