| /openbsd/src/sys/arch/alpha/stand/setnetbootinfo/ |
| D | setnetbootinfo.c | 54 struct ether_addr *ether_addr, _ether_addr; variable 130 ether_addr = &_ether_addr; 132 ether_addr = ether_aton(addr); 133 if (ether_addr == NULL) 150 ether_addr->ether_addr_octet[0], 151 ether_addr->ether_addr_octet[1], 152 ether_addr->ether_addr_octet[2], 153 ether_addr->ether_addr_octet[3], 154 ether_addr->ether_addr_octet[4], 155 ether_addr->ether_addr_octet[5]); [all …]
|
| /openbsd/src/lib/libc/net/ |
| D | ethers.c | 42 static char * _ether_aton(const char *, struct ether_addr *); 45 ether_ntoa(struct ether_addr *e) in ether_ntoa() 58 _ether_aton(const char *s, struct ether_addr *e) in _ether_aton() 84 struct ether_addr * 87 static struct ether_addr n; in ether_aton() 93 ether_ntohost(char *hostname, struct ether_addr *e) in ether_ntohost() 98 struct ether_addr try; in ether_ntohost() 126 ether_hostton(const char *hostname, struct ether_addr *e) in ether_hostton() 159 ether_line(const char *line, struct ether_addr *e, char *hostname) in ether_line()
|
| /openbsd/src/usr.sbin/npppd/pppoe/ |
| D | pppoed.c | 229 ETHER_FIRST_INT(_this->ether_addr), 0, 3), in pppoed_listener_start() 232 ETHER_LAST_SHORT(_this->ether_addr), 0, 1), in pppoed_listener_start() 264 memcpy(_this->ether_addr, in pppoed_listener_start() 306 insns[10].k = ETHER_FIRST_INT(_this->ether_addr); in pppoed_listener_start() 307 insns[12].k = ETHER_LAST_SHORT(_this->ether_addr); in pppoed_listener_start() 322 _this->tun_name, _this->ether_addr[0], _this->ether_addr[1], in pppoed_listener_start() 323 _this->ether_addr[2], _this->ether_addr[3], _this->ether_addr[4], in pppoed_listener_start() 324 _this->ether_addr[5]); in pppoed_listener_start() 380 _this->ether_addr[0], _this->ether_addr[1], in pppoed_listener_stop() 381 _this->ether_addr[2], _this->ether_addr[3], in pppoed_listener_stop() [all …]
|
| D | pppoe.h | 117 u_char ether_addr[ETHER_ADDR_LEN]; member 166 u_char ether_addr[ETHER_ADDR_LEN]; member
|
| D | pppoe_session.c | 87 int session_id, u_char *ether_addr) in pppoe_session_init() argument 94 memcpy(_this->ether_addr, ether_addr, ETHER_ADDR_LEN); in pppoe_session_init() 96 memcpy(_this->ehdr.ether_dhost, ether_addr, ETHER_ADDR_LEN); in pppoe_session_init() 512 memcpy(sdl.sdl_data + len, _this->ether_addr, ETHER_ADDR_LEN); in pppoe_session_bind_ppp()
|
| D | pppoe_local.h | 48 (session)->listener_index))->ether_addr
|
| /openbsd/src/sys/net/ |
| D | if_bridge.h | 128 struct ether_addr ifba_dst; /* destination addr */ 199 struct ether_addr brla_sha; 201 struct ether_addr brla_tha; 216 struct ether_addr ifbr_src; /* source mac */ 217 struct ether_addr ifbr_dst; /* destination mac */ 283 struct ether_addr brl_src; /* source mac address */ 284 struct ether_addr brl_dst; /* destination mac address */ 454 struct ether_addr brt_addr; /* dst addr */ 490 void bridge_update(struct ifnet *, struct ether_addr *, int); 516 struct ether_addr *, struct ifnet *, int, u_int8_t, struct mbuf *); [all …]
|
| D | if_etherbridge.h | 85 const struct ether_addr *); 88 const struct ether_addr *); 98 const struct ether_addr *, unsigned int); 99 int etherbridge_del_addr(struct etherbridge *, const struct ether_addr *);
|
| D | if_bpe.c | 83 struct ether_addr sc_group; 149 pool_init(&bpe_endpoint_pool, sizeof(struct ether_addr), 0, in bpe_clone_create() 268 struct ether_addr *endpoint; in bpe_start() 272 (struct ether_addr *)ceh->ether_dhost); in bpe_start() 680 const struct ether_addr *endpoint; in bpe_add_addr() 705 endpoint = (struct ether_addr *)LLADDR(sdl); in bpe_add_addr() 769 (struct ether_addr *)beh->ether_shost); in bpe_input() 883 struct ether_addr *ea = a, *eb = b; in bpe_eb_port_eq() 891 struct ether_addr *ea = port; in bpe_eb_port_take() 892 struct ether_addr *endpoint; in bpe_eb_port_take() [all …]
|
| D | bridgectl.c | 55 int bridge_rtdaddr(struct bridge_softc *, struct ether_addr *); 56 u_int32_t bridge_hash(struct bridge_softc *, struct ether_addr *); 165 bridge_rtupdate(struct bridge_softc *sc, struct ether_addr *ea, in bridge_rtupdate() 273 bridge_rtlookup(struct ifnet *brifp, struct ether_addr *ea, struct mbuf *m) in bridge_rtlookup() 309 bridge_hash(struct bridge_softc *sc, struct ether_addr *addr) in bridge_hash() 423 bridge_rtdaddr(struct bridge_softc *sc, struct ether_addr *ea) in bridge_rtdaddr() 549 bridge_update(struct ifnet *ifp, struct ether_addr *ea, int delete) in bridge_update() 763 bcopy(&req->ifbr_src, &n->brl_src, sizeof(struct ether_addr)); in bridge_addrule() 764 bcopy(&req->ifbr_dst, &n->brl_dst, sizeof(struct ether_addr)); in bridge_addrule()
|
| D | if_ethersubr.c | 426 dst = ether_addr_to_e64((struct ether_addr *)eh->ether_dhost); in ether_input() 482 self = ether_addr_to_e64((struct ether_addr *)ac->ac_enaddr); in ether_input() 510 (struct ether_addr *)eh->ether_shost); in ether_input() 1037 ether_addr_to_e64(const struct ether_addr *ea) in ether_addr_to_e64() 1051 ether_e64_to_addr(struct ether_addr *ea, uint64_t e64) in ether_e64_to_addr() 1509 laddr = ether_addr_to_e64((struct ether_addr *)sfrm->sfrm_addr); in ether_frm_bind() 1552 faddr = ether_addr_to_e64((struct ether_addr *)sfrm->sfrm_addr); in ether_frm_connect() 1666 faddr = ether_addr_to_e64((struct ether_addr *)sfrm->sfrm_addr); in ether_frm_send() 1723 laddr = ether_addr_to_e64((struct ether_addr *)ac->ac_enaddr); in ether_frm_send() 1740 ether_e64_to_addr((struct ether_addr *)eh->ether_dhost, faddr); in ether_frm_send() [all …]
|
| D | if_etherbridge.c | 252 const struct ether_addr *ea) in etherbridge_resolve_ea() 281 const struct ether_addr *ea) in etherbridge_map_ea() 397 const struct ether_addr *ea, unsigned int type) in etherbridge_add_addr() 453 etherbridge_del_addr(struct etherbridge *eb, const struct ether_addr *ea) in etherbridge_del_addr()
|
| D | if_bridge.c | 859 struct ether_addr *dst; in bridge_enqueue() 861 dst = (struct ether_addr *)&eh->ether_dhost[0]; in bridge_enqueue() 967 struct ether_addr *dst, *src; in bridgeintr_frame() 981 dst = (struct ether_addr *)&eh.ether_dhost[0]; in bridgeintr_frame() 982 src = (struct ether_addr *)&eh.ether_shost[0]; in bridgeintr_frame() 1263 (struct ether_addr *)&eh->ether_shost, in bridge_process()
|
| /openbsd/src/sys/netinet/ |
| D | if_ether.h | 70 struct ether_addr { struct 300 uint64_t ether_addr_to_e64(const struct ether_addr *); 301 void ether_e64_to_addr(struct ether_addr *, uint64_t); 391 char *ether_ntoa(struct ether_addr *); 392 struct ether_addr *ether_aton(const char *); 393 int ether_ntohost(char *, struct ether_addr *); 394 int ether_hostton(const char *, struct ether_addr *); 395 int ether_line(const char *, struct ether_addr *, char *);
|
| /openbsd/src/usr.sbin/arp/ |
| D | arp.c | 73 int wake(const char *ether_addr, const char *iface); 280 struct ether_addr *ea; in set() 796 int get_ether(const char *, struct ether_addr *); 797 int send_frame(int, const struct ether_addr *); 800 wake(const char *ether_addr, const char *iface) in wake() argument 829 do_wakeup(ether_addr, ifap->ifa_name, bpf); in wake() 833 do_wakeup(ether_addr, iface, bpf); in wake() 844 struct ether_addr macaddr; in do_wakeup() 874 get_ether(const char *text, struct ether_addr *addr) in get_ether() 876 struct ether_addr *eaddr; in get_ether() [all …]
|
| /openbsd/src/usr.sbin/tcpdump/ |
| D | privsep.h | 40 struct ether_addr; 56 size_t priv_ether_ntohost(char *, size_t, struct ether_addr *);
|
| D | addrtoname.c | 444 struct ether_addr e; in etheraddr_string() 453 (struct ether_addr *)ep) > 0) { in etheraddr_string() 788 (struct ether_addr *)el->addr) > 0) { in init_etherarray()
|
| /openbsd/src/sys/arch/alpha/stand/netboot/ |
| D | if_prom.c | 168 ether_sprintf(netbbinfo.ether_addr)); in prom_init() 208 bcopy(netbbinfo.ether_addr, desc->myea, sizeof desc->myea); in prom_init() 226 bcopy(netbbinfo.ether_addr, desc->myea, sizeof desc->myea); in prom_init()
|
| /openbsd/src/sbin/ifconfig/ |
| D | brconfig.c | 299 ether_ntoa((struct ether_addr *)lladdr), bprio); in bridge_cfg() 306 ether_ntoa((struct ether_addr *)lladdr), bprio, in bridge_cfg() 578 struct ether_addr *ea; in bridge_deladdr() 585 bcopy(ea, &ifba.ifba_dst, sizeof(struct ether_addr)); in bridge_deladdr() 643 struct ether_addr *ea; in bridge_addaddr() 652 bcopy(ea, &ifba.ifba_dst, sizeof(struct ether_addr)); in bridge_addaddr() 663 struct ether_addr *ea; in bridge_addendpoint() 685 memcpy(&ifba.ifba_dst, ea, sizeof(struct ether_addr)); in bridge_addendpoint() 699 struct ether_addr *ea; in bridge_delendpoint() 711 memcpy(&ifba.ifba_dst, ea, sizeof(struct ether_addr)); in bridge_delendpoint() [all …]
|
| /openbsd/src/sbin/slaacd/ |
| D | slaacd.h | 87 struct ether_addr hw_address; 174 struct ether_addr hw_address;
|
| /openbsd/src/sys/arch/alpha/stand/ |
| D | bbinfo.h | 50 u_int8_t ether_addr[6]; member
|
| /openbsd/src/usr.sbin/rarpd/ |
| D | rarpd.c | 457 struct ether_addr *ea; in rarp_process() 463 ea = (struct ether_addr *) &ep->ether_shost; in rarp_process() 625 struct ether_addr ea; in rarp_reply()
|
| /openbsd/src/usr.sbin/dhcpd/ |
| D | parse.c | 241 hlen = sizeof(struct ether_addr); in parse_hardware_param() 244 if (ether_hostton(val, (struct ether_addr *)e) == 0) { in parse_hardware_param()
|
| /openbsd/src/sbin/dhcpleased/ |
| D | engine.c | 98 struct ether_addr hw_address; 662 sizeof(struct ether_addr)); in engine_update_iface() 667 sizeof(struct ether_addr)) != 0) { in engine_update_iface() 669 sizeof(struct ether_addr)); in engine_update_iface() 734 static struct ether_addr bcast_mac; in parse_dhcp() 739 struct ether_addr ether_src, ether_dst; in parse_dhcp()
|
| D | dhcpleased.h | 275 struct ether_addr hw_address;
|