gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:mtod from t2ex/bsd_source/t2ex/network/net/src_bsd/net/if_ethersubr.c (0.00 seconds)
t2ex
bsd_source/t2ex/network/net/src_bsd/net/if_ethersubr.c - 51.3KB - 1,589 lines
306:         case AF_ARP:
307:                 ah = mtod(m, struct arphdr *);
308:                 if (m->m_flags & M_BCAST)
375: llc.llc_snap_ether_type = htons(ETHERTYPE_ATALK); 376: memcpy(mtod(m, void *), &llc, sizeof(struct llc)); 377: } else {
415: if (mcopy) { 416: eh = mtod(mcopy, struct ether_header *); 417: memcpy(eh->ether_dhost, edst, sizeof(edst));
424: return (0); 425: l = mtod(m, struct llc *); 426: l->llc_dsap = l->llc_ssap = LLC_ISO_LSAP;
476: senderr(ENOBUFS); 477: eh = mtod(m, struct ether_header *); 478: /* Note: etype is already in network byte order. */
548: hlen = ETHER_HDR_LEN; 549: eh = mtod(m, struct ether_header *); 550:
605: 606: hdr = mtod(m, void *); 607:
649: #endif 650: eh = mtod(m, struct ether_header *); 651: etype = ntohs(eh->ether_type);
748: 749: eh = mtod(m, struct ether_header *); 750: etype = ntohs(eh->ether_type);