Home | History | Annotate | Download | only in rp-pppoe

Lines Matching refs:hwaddr

140 * hwaddr -- buffer for ehthernet address
147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr)
180 memcpy(hwaddr, LLADDR(sdl), ETH_ALEN);
197 * hwaddr -- buffer with ehthernet address
204 initFilter(int fd, UINT16_t type, unsigned char *hwaddr)
247 bpfInsn[PPPOE_FILTER_CMPW].k = ((hwaddr[0] << 24) | (hwaddr[1] << 16) |
248 (hwaddr[2] << 8) | hwaddr[3]);
249 bpfInsn[PPPOE_FILTER_CMPH].k = ((hwaddr[4] << 8) | hwaddr[5]);
265 * hwaddr -- if non-NULL, set to the hardware address
275 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
335 if (hwaddr == NULL) {
336 rp_fatal("openInterface: no hwaddr arg.");
338 getHWaddr(sock, ifname, hwaddr);
339 initFilter(fd, type, hwaddr);
396 syslog(LOG_INFO, "Interface=%.16s HWaddr=%02X:%02X:%02X:%02X:%02X:%02X Device=%.32s Buffer size=%d",
398 hwaddr[0], hwaddr[1], hwaddr[2],
399 hwaddr[3], hwaddr[4], hwaddr[5],
412 * hwaddr -- if non-NULL, set to the hardware address
419 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
455 if (hwaddr) {
460 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
468 if (NOT_UNICAST(hwaddr)) {
701 * hwaddr -- if non-NULL, set to the hardware address
708 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
754 memcpy(hwaddr, (u_char*)((char*)(dlp) + (int)(dlp->info_ack.dl_addr_offset)), ETHERADDRL);