Lines Matching defs:source
225 ipv4_to_ether_multicast(sockaddr_dl *destination, const sockaddr_in *source)
242 memcpy(LLADDR(destination) + 2, &source->sin_addr, sizeof(in_addr));
575 (sockaddr_dl *)buffer->source, 0);
602 // exchange source and destination address
603 memcpy(LLADDR((sockaddr_dl *)buffer->source), header.hardware_sender,
624 arp_update_entry(header.protocol_sender, (sockaddr_dl *)buffer->source, 0);
810 // prepare source and target addresses
812 struct sockaddr_dl &source = *(struct sockaddr_dl *)
813 entry->request_buffer->source;
814 source.sdl_len = sizeof(sockaddr_dl);
815 source.sdl_family = AF_LINK;
816 source.sdl_index = device->index;
817 source.sdl_type = IFT_ETHER;
818 source.sdl_e_type = htons(ETHER_TYPE_ARP);
819 source.sdl_nlen = source.sdl_slen = 0;
820 source.sdl_alen = ETHER_ADDRESS_LENGTH;
821 memcpy(source.sdl_data, device->address.data, ETHER_ADDRESS_LENGTH);
1024 memcpy(buffer->source, &protocol->hardware_address,
1062 mac_to_string(LLADDR((sockaddr_dl*)buffer->source))));