Lines Matching defs:destination
198 ipv4_to_ether_multicast(sockaddr_dl *destination, const sockaddr_in *source)
207 destination->sdl_len = sizeof(sockaddr_dl);
208 destination->sdl_family = AF_LINK;
209 destination->sdl_index = 0;
210 destination->sdl_type = IFT_ETHER;
211 destination->sdl_e_type = htons(ETHER_TYPE_IP);
212 destination->sdl_nlen = destination->sdl_slen = 0;
213 destination->sdl_alen = ETHER_ADDRESS_LENGTH;
215 memcpy(LLADDR(destination) + 2, &source->sin_addr, sizeof(in_addr));
216 uint32 *data = (uint32 *)LLADDR(destination);
356 memcpy(buffer->destination, &hardware_address,
611 // exchange source and destination address
614 memcpy(LLADDR((sockaddr_dl *)buffer->destination), header.hardware_target,
832 // this is a broadcast packet, we don't need to fill in the destination
1037 // Set buffer target and destination address
1045 (sockaddr_in *)buffer->destination);
1046 memcpy(buffer->destination, &multicastDestination,
1049 // Lookup destination (we may need to wait for this)
1051 ((struct sockaddr_in *)buffer->destination)->sin_addr.s_addr);
1054 ((struct sockaddr_in*)buffer->destination)->sin_addr.s_addr,
1071 memcpy(buffer->destination, &entry->hardware_address,
1079 mac_to_string(LLADDR((sockaddr_dl*)buffer->destination))));