gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:memcpy 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
294:                 if (m->m_flags & M_BCAST)
295:                         (void)memcpy(edst, etherbroadcastaddr, sizeof(edst));
296:                 else if (m->m_flags & M_MCAST)
308: if (m->m_flags & M_BCAST) 309: (void)memcpy(edst, etherbroadcastaddr, sizeof(edst)); 310: else {
316: } 317: memcpy(edst, tha, sizeof(edst)); 318: }
372: llc.llc_control = LLC_UI; 373: memcpy(llc.llc_snap_org_code, at_org_code, 374: sizeof(llc.llc_snap_org_code)); 375: llc.llc_snap_ether_type = htons(ETHERTYPE_ATALK); 376: memcpy(mtod(m, void *), &llc, sizeof(struct llc)); 377: } else {
384: etype = htons(ETHERTYPE_IPX); 385: memcpy(edst, 386: &(((const struct sockaddr_ipx *)dst)->sipx_addr.x_host),
400: sdl->sdl_family == AF_LINK && sdl->sdl_alen > 0) { 401: memcpy(edst, CLLADDR(sdl), sizeof(edst)); 402: } else {
416: eh = mtod(mcopy, struct ether_header *); 417: memcpy(eh->ether_dhost, edst, sizeof(edst)); 418: memcpy(eh->ether_shost, CLLADDR(ifp->if_sadl), 419: sizeof(edst));
441: hdrcmplt = 1; 442: memcpy(esrc, 443: ((const struct ether_header *)dst->sa_data)->ether_shost,
447: case AF_UNSPEC: 448: memcpy(edst, 449: ((const struct ether_header *)dst->sa_data)->ether_dhost,
478: /* Note: etype is already in network byte order. */ 479: (void)memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); 480: memcpy(eh->ether_dhost, edst, sizeof(edst)); 481: if (hdrcmplt) 482: memcpy(eh->ether_shost, esrc, sizeof(eh->ether_shost)); 483: else 484: memcpy(eh->ether_shost, CLLADDR(ifp->if_sadl), 485: sizeof(eh->ether_shost));
488: if (ifp0 != ifp && ifp0->if_type == IFT_CARP) { 489: memcpy(eh->ether_shost, CLLADDR(ifp0->if_sadl), 490: sizeof(eh->ether_shost));
1010: if (m->m_flags & (M_BCAST | M_MCAST)) 1011: memcpy(eh->ether_dhost, 1012: CLLADDR(ifp->if_sadl),
1314: } 1315: memcpy(dest, val, 6); 1316:
1339: case AF_UNSPEC: 1340: memcpy(addrlo, sa->sa_data, ETHER_ADDR_LEN); 1341: memcpy(addrhi, addrlo, ETHER_ADDR_LEN); 1342: break;
1353: */ 1354: memcpy(addrlo, ether_ipmulticast_min, ETHER_ADDR_LEN); 1355: memcpy(addrhi, ether_ipmulticast_max, ETHER_ADDR_LEN); 1356: }
1358: ETHER_MAP_IP_MULTICAST(&sin->sin_addr, addrlo); 1359: memcpy(addrhi, addrlo, ETHER_ADDR_LEN); 1360: }
1372: */ 1373: memcpy(addrlo, ether_ip6multicast_min, ETHER_ADDR_LEN); 1374: memcpy(addrhi, ether_ip6multicast_max, ETHER_ADDR_LEN); 1375: } else { 1376: ETHER_MAP_IPV6_MULTICAST(&sin6->sin6_addr, addrlo); 1377: memcpy(addrhi, addrlo, ETHER_ADDR_LEN); 1378: }
1433: } 1434: memcpy(enm->enm_addrlo, addrlo, 6); 1435: memcpy(enm->enm_addrhi, addrhi, 6); 1436: enm->enm_refcount = 1;
1524: case SIOCGIFADDR: 1525: memcpy(((struct sockaddr *)&ifr->ifr_data)->sa_data, 1526: CLLADDR(ifp->if_sadl), ETHER_ADDR_LEN);