Home
last modified time | relevance | path

Searched refs:hwaddr (Results 1 – 24 of 24) sorted by relevance

/dragonfly/libexec/bootpd/
H A DMakefile.UNIX144 lookup.o getif.o hwaddr.o tzone.o report.o $(STRERROR)
149 lookup.o hwaddr.o tzone.o report.o $(STRERROR)
153 OBJ_GW= bootpgw.o getif.o hwaddr.o report.o $(STRERROR)
189 bootpd.o : bootp.h bptypes.h hash.h hwaddr.h bootpd.h dovend.h
191 bootpef.o : bootp.h bptypes.h hash.h hwaddr.h bootpd.h dovend.h
193 bootpgw.o : bootp.h bptypes.h getif.h hwaddr.h report.h patchlevel.h
195 dovend.o : bootp.h bptypes.h bootpd.h hash.h hwaddr.h report.h dovend.h
196 dumptab.o : bootp.h bptypes.h hash.h hwaddr.h report.h patchlevel.h bootpd.h
199 hwaddr.o : bptypes.h hwaddr.h report.h
202 readfile.o : bootp.h bptypes.h hash.h hwaddr.h lookup.h readfile.h
H A DMakefile6 lookup.c getif.c hwaddr.c report.c tzone.c rtmsg.c
H A DREADME122 hwaddr.c Hardware address support
123 hwaddr.h header for above
/dragonfly/contrib/dhcpcd/src/
H A Dbpf.c324 memcpy(&eh.ether_shost, bpf->bpf_ifp->hwaddr, in bpf_send()
354 bool equal, const uint8_t *hwaddr, size_t hwaddr_len) in bpf_cmp_hwaddr() argument
392 hwaddr += maclen, hwaddr_len -= maclen, off += maclen) in bpf_cmp_hwaddr()
402 memcpy(&mac32, hwaddr, maclen); in bpf_cmp_hwaddr()
409 memcpy(&mac16, hwaddr, maclen); in bpf_cmp_hwaddr()
415 maclen = sizeof(*hwaddr); in bpf_cmp_hwaddr()
419 *hwaddr, jt, jf); in bpf_cmp_hwaddr()
513 !recv, ifp->hwaddr, ifp->hwlen); in bpf_arp_rw()
H A Dcommon.c44 hwaddr_ntoa(const void *hwaddr, size_t hwlen, char *buf, size_t buflen) in hwaddr_ntoa() argument
62 hp = hwaddr; in hwaddr_ntoa()
66 if (hp != hwaddr) in hwaddr_ntoa()
H A Ddhcpcd.c552 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid), in configure_interface1()
1102 memcpy(iff->hwaddr, ifp->hwaddr, iff->hwlen); in dhcpcd_handleinterface()
1272 uint16_t hwtype, const void *hwaddr, uint8_t hwlen) in dhcpcd_handlehwaddr() argument
1274 char buf[sizeof(ifp->hwaddr) * 3]; in dhcpcd_handlehwaddr()
1276 if (hwaddr == NULL || !if_valid_hwaddr(hwaddr, hwlen)) in dhcpcd_handlehwaddr()
1279 if (hwlen > sizeof(ifp->hwaddr)) { in dhcpcd_handlehwaddr()
1293 (hwlen == 0 || memcmp(ifp->hwaddr, hwaddr, hwlen) == 0)) in dhcpcd_handlehwaddr()
1298 hwaddr_ntoa(ifp->hwaddr, ifp->hwlen, buf, sizeof(buf))); in dhcpcd_handlehwaddr()
1300 hwaddr_ntoa(hwaddr, hwlen, buf, sizeof(buf))); in dhcpcd_handlehwaddr()
1303 if (hwaddr != NULL) in dhcpcd_handlehwaddr()
[all …]
H A Dif.c243 memcpy(ifp->hwaddr, buf, ifp->hwlen); in if_randomisemac()
395 if_valid_hwaddr(const uint8_t *hwaddr, size_t hwlen) in if_valid_hwaddr() argument
402 if (hwaddr[i] != 0x00) in if_valid_hwaddr()
404 if (hwaddr[i] != 0xff) in if_valid_hwaddr()
661 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen); in if_discover()
668 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen); in if_discover()
H A Dipv6.c324 ifp->hwaddr, ifp->hwlen, in ipv6_makestableprivate()
1448 if (memcmp(ifp->hwaddr, allzero, ifp->hwlen) == 0 || in ipv6_addlinklocal()
1449 memcmp(ifp->hwaddr, allone, ifp->hwlen) == 0) in ipv6_addlinklocal()
1484 ap->addr.s6_addr[ 8] = ifp->hwaddr[0]; in ipv6_addlinklocal()
1485 ap->addr.s6_addr[ 9] = ifp->hwaddr[1]; in ipv6_addlinklocal()
1486 ap->addr.s6_addr[10] = ifp->hwaddr[2]; in ipv6_addlinklocal()
1489 ap->addr.s6_addr[13] = ifp->hwaddr[3]; in ipv6_addlinklocal()
1490 ap->addr.s6_addr[14] = ifp->hwaddr[4]; in ipv6_addlinklocal()
1491 ap->addr.s6_addr[15] = ifp->hwaddr[5]; in ipv6_addlinklocal()
1493 memcpy(&ap->addr.s6_addr[8], ifp->hwaddr, 8); in ipv6_addlinklocal()
H A Ddhcpcd.h81 unsigned char hwaddr[HWADDR_LEN]; member
H A Dipv4ll.c352 memcpy(&seed, ifp->hwaddr, ifp->hwlen); in ipv4ll_start()
354 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed), in ipv4ll_start()
H A Dduid.c151 memcpy(p, ifp->hwaddr, ifp->hwlen); in duid_make()
H A Darp.c101 APPEND(ifp->hwaddr, ifp->hwlen); in arp_request()
287 memcmp(hw_s, ifn->hwaddr, ifn->hwlen) == 0) in arp_packet()
H A Ddhcp.c773 memcpy(&bootp->chaddr, &ifp->hwaddr, ifp->hwlen); in make_message()
1472 (ifp->hwaddr + ifp->hwlen) - sizeof(state->xid), in dhcp_new_xid()
2971 memcmp(bootp->chaddr, ifn->hwaddr, ifn->hwlen)) in dhcp_redirect_dhcp()
3026 memcmp(bootp->chaddr, ifp->hwaddr, ifp->hwlen)) in dhcp_handledhcp()
3933 memcpy(state->clientid + 2, ifp->hwaddr, in dhcp_init()
3949 hwaddr_ntoa(ifp->hwaddr, ifp->hwlen, buf, sizeof(buf))); in dhcp_init()
H A Dif-bsd.c306 memcpy(LLADDR(sdl), ifp->hwaddr, ifp->hwlen); in if_setmac()
615 memcmp(ifp->hwaddr, in if_findsdl()
H A Dipv6nd.c338 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen); in ipv6nd_makersprobe()
585 memcpy(opt + 1, ifp->hwaddr, ifp->hwlen); in ipv6nd_advertise()
H A Ddhcp6.c473 memcpy(&xid, (ifp->hwaddr + ifp->hwlen) - sizeof(xid), in dhcp6_newxid()
/dragonfly/libexec/bootpd/bootpgw/
H A DMakefile7 SRCS= bootpgw.c getif.c hwaddr.c report.c rtmsg.c
/dragonfly/libexec/bootpd/tools/bootpef/
H A DMakefile8 hwaddr.c report.c tzone.c rtmsg.c
/dragonfly/usr.sbin/arp/
H A Darp.c84 static int get_ether_addr(u_int32_t ipaddr, struct ether_addr *hwaddr);
693 get_ether_addr(u_int32_t ipaddr, struct ether_addr *hwaddr) in get_ether_addr() argument
771 memcpy(hwaddr, LLADDR(dla), dla->sdl_alen); in get_ether_addr()
775 printf("%s\n", ether_ntoa(hwaddr)); in get_ether_addr()
/dragonfly/usr.sbin/ppp/
H A Darp.c229 arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr, in arp_EtherAddr() argument
307 memcpy(hwaddr, dl, dl->sdl_len); in arp_EtherAddr()
H A Dmp.c996 struct sockaddr_dl hwaddr; in mp_SetEnddisc() local
1003 if (arp_EtherAddr(addr, &hwaddr, 1)) { in mp_SetEnddisc()
1005 memcpy(mp->cfg.enddisc.address, hwaddr.sdl_data + hwaddr.sdl_nlen, in mp_SetEnddisc()
1006 hwaddr.sdl_alen); in mp_SetEnddisc()
1007 mp->cfg.enddisc.len = hwaddr.sdl_alen; in mp_SetEnddisc()
/dragonfly/doc/
H A Dporting_drivers.txt203 u_char hwaddr[6];
205 kprintf("MAC address %s\n", kether_ntoa(hwaddr, ethstr)
/dragonfly/contrib/dhcpcd/
H A DREADME.md71 #slaac hwaddr
/dragonfly/sys/dev/virtual/virtio/net/
H A Dif_vtnet.c2412 vtnet_ctrl_mac_cmd(struct vtnet_softc *sc, uint8_t *hwaddr) in vtnet_ctrl_mac_cmd() argument
2430 memcpy(s.aligned_hwaddr, hwaddr, ETHER_ADDR_LEN); in vtnet_ctrl_mac_cmd()