Home
last modified time | relevance | path

Searched refs:sdl (Results 1 – 25 of 30) sorted by relevance

12

/haiku/src/system/libnetwork/netresolv/include/
H A Dnamespace.h10 #define CLLADDR(sdl) (const void *)((sdl)->sdl_data + (sdl)->sdl_nlen) argument
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetnameinfo.c542 const struct sockaddr_dl *sdl = in getnameinfo_link() local
549 if (sdl->sdl_nlen == 0 && sdl->sdl_alen == 0 && sdl->sdl_slen == 0) { in getnameinfo_link()
550 n = snprintf(host, hostlen, "link#%u", sdl->sdl_index); in getnameinfo_link()
554 switch (sdl->sdl_type) { in getnameinfo_link()
557 if (sdl->sdl_alen < 2) in getnameinfo_link()
559 if (CLLADDR(sdl)[1] == 0) in getnameinfo_link() local
560 n = snprintf(host, hostlen, "%u", CLLADDR(sdl)[0]); in getnameinfo_link()
563 CLLADDR(sdl)[1], CLLADDR(sdl)[0]); in getnameinfo_link()
570 if (sdl->sdl_alen < sizeof(iha->iha_uid)) in getnameinfo_link()
573 (const struct ieee1394_hwaddr *)(const void *)CLLADDR(sdl); in getnameinfo_link()
[all …]
/haiku/src/libs/compat/freebsd_network/
H A Dif.c333 struct sockaddr_dl *sdl; in if_attach() local
366 if (socksize < sizeof(*sdl)) in if_attach()
367 socksize = sizeof(*sdl); in if_attach()
371 sdl = (struct sockaddr_dl *)(ifa + 1); in if_attach()
372 sdl->sdl_len = socksize; in if_attach()
373 sdl->sdl_family = AF_LINK; in if_attach()
374 bcopy(ifp->if_xname, sdl->sdl_data, namelen); in if_attach()
375 sdl->sdl_nlen = namelen; in if_attach()
376 sdl->sdl_index = ifp->if_index; in if_attach()
377 sdl->sdl_type = ifp->if_type; in if_attach()
[all …]
/haiku/src/libs/compat/freebsd_iflib/
H A Difdi_if.c174 struct sockaddr_dl *sdl; in default_mac_set() local
177 sdl = (struct sockaddr_dl *)ifp->if_addr->ifa_addr; in default_mac_set()
178 MPASS(sdl->sdl_type == IFT_ETHER); in default_mac_set()
179 memcpy(LLADDR(sdl), mac, ETHER_ADDR_LEN); in default_mac_set()
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_rx.c367 rtwm_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in rtwm_hash_maddr() argument
372 pos = rtwn_get_multi_pos(LLADDR(sdl)); in rtwm_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dlance.c581 lance_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in lance_hash_maddr() argument
587 crc = ether_crc32_le(LLADDR(sdl), ETHER_ADDR_LEN); in lance_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/dc/
H A Dif_dc.c956 dc_hash_maddr_21143(void *arg, struct sockaddr_dl *sdl, u_int cnt) in dc_hash_maddr_21143() argument
961 h = dc_mchash_le(sc, LLADDR(sdl)); in dc_hash_maddr_21143()
1033 dc_hash_maddr_admtek_be(void *arg, struct sockaddr_dl *sdl, u_int cnt) in dc_hash_maddr_admtek_be() argument
1038 h = dc_mchash_be(LLADDR(sdl)); in dc_hash_maddr_admtek_be()
1053 dc_hash_maddr_admtek_le(void *arg, struct sockaddr_dl *sdl, u_int cnt) in dc_hash_maddr_admtek_le() argument
1058 h = dc_mchash_le(ctx->sc, LLADDR(sdl)); in dc_hash_maddr_admtek_le()
1173 dc_hash_maddr_uli(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in dc_hash_maddr_uli() argument
1180 ma = LLADDR(sdl); in dc_hash_maddr_uli()
1266 dc_hash_maddr_xircom(void *arg, struct sockaddr_dl *sdl, u_int cnt) in dc_hash_maddr_xircom() argument
1271 h = dc_mchash_le(sc, LLADDR(sdl)); in dc_hash_maddr_xircom()
/haiku/src/add-ons/kernel/drivers/network/ether/via_rhine/dev/vr/
H A Dif_vr.c437 vr_hash_maddr_cam(void *arg, struct sockaddr_dl *sdl, u_int mcnt) in vr_hash_maddr_cam() argument
443 ctx->error = vr_cam_data(ctx->sc, VR_MCAST_CAM, mcnt, LLADDR(sdl)); in vr_hash_maddr_cam()
454 vr_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in vr_hash_maddr() argument
459 h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26; in vr_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/syskonnect/dev/sk/
H A Dif_sk.c704 sk_add_maddr_genesis(void *arg, struct sockaddr_dl *sdl, u_int cnt) in sk_add_maddr_genesis() argument
714 sk_setfilt(ctx->sc_if, (uint16_t *)LLADDR(sdl), cnt + 1); in sk_add_maddr_genesis()
718 h = sk_xmchash((const uint8_t *)LLADDR(sdl)); in sk_add_maddr_genesis()
763 sk_hash_maddr_yukon(void *arg, struct sockaddr_dl *sdl, u_int cnt) in sk_hash_maddr_yukon() argument
767 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in sk_hash_maddr_yukon()
/haiku/src/add-ons/kernel/drivers/network/ether/rdc/dev/vte/
H A Dif_vte.c1971 vte_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in vte_hash_maddr() argument
1982 eaddr = LLADDR(sdl); in vte_hash_maddr()
1990 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in vte_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/vt612x/dev/vge/
H A Dif_vge.c529 vge_set_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in vge_set_maddr() argument
536 (void )vge_cam_set(sc, LLADDR(sdl)); in vge_set_maddr()
542 vge_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in vge_hash_maddr() argument
546 h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26; in vge_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/rtl8139/dev/rl/
H A Dif_rl.c509 rl_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in rl_hash_maddr() argument
514 h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26; in rl_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/3com/dev/xl/
H A Dif_xl.c605 xl_check_maddr_90x(void *arg, struct sockaddr_dl *sdl, u_int cnt) in xl_check_maddr_90x() argument
662 xl_check_maddr_90xB(void *arg, struct sockaddr_dl *sdl, u_int count) in xl_check_maddr_90xB() argument
667 h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) & 0xFF; in xl_check_maddr_90xB()
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom440x/dev/bfe/
H A Dif_bfe.c1079 bfe_write_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in bfe_write_maddr() argument
1083 bfe_cam_write(sc, LLADDR(sdl), cnt + 1); in bfe_write_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/sis19x/dev/sge/
H A Dif_sge.c443 sge_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int count) in sge_hash_maddr() argument
447 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in sge_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malo.c1512 malo_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int nmc) in malo_copy_maddr() argument
1520 LLADDR(sdl)); in malo_copy_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/attansic_l2/dev/ae/
H A Dif_ae.c2031 ae_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in ae_hash_maddr() argument
2035 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in ae_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/vmx/dev/vmxnet3/
H A Dif_vmx.c2111 vmxnet3_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int count) in vmxnet3_hash_maddr() argument
2116 bcopy(LLADDR(sdl), &sc->vmx_mcast[count * ETHER_ADDR_LEN], in vmxnet3_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/
H A Dif_fxp.c2979 fxp_setup_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in fxp_setup_maddr() argument
2985 bcopy(LLADDR(sdl), mcsp->mc_addr[mcsp->mc_cnt * ETHER_ADDR_LEN], in fxp_setup_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Dif_igc.c1101 igc_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int idx) in igc_copy_maddr() argument
1108 bcopy(LLADDR(sdl), &mta[idx * ETHER_ADDR_LEN], ETHER_ADDR_LEN); in igc_copy_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/atheros81xx/dev/ale/
H A Dif_ale.c2998 ale_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in ale_hash_maddr() argument
3002 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in ale_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/nforce/dev/nfe/
H A Dif_nfe.c2524 nfe_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in nfe_hash_maddr() argument
2530 addrp = LLADDR(sdl); in nfe_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/jmicron2x0/dev/jme/
H A Dif_jme.c3235 jme_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in jme_hash_maddr() argument
3239 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in jme_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/attansic_l1/dev/age/
H A Dif_age.c3138 age_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in age_hash_maddr() argument
3143 crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN); in age_hash_maddr()
/haiku/src/add-ons/kernel/drivers/network/ether/rtl81xx/dev/re/
H A Dif_re.c654 re_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) in re_hash_maddr() argument
658 h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26; in re_hash_maddr()

12