Lines Matching defs:dest
116 /* Constuct a ip/udp header for a packet, and specify the source and dest hardware address */
122 struct sockaddr_ll dest;
130 memset(&dest, 0, sizeof(dest));
133 dest.sll_family = AF_PACKET;
134 dest.sll_protocol = htons(ETH_P_IP);
135 dest.sll_ifindex = ifindex;
136 dest.sll_halen = 6;
137 memcpy(dest.sll_addr, dest_arp, 6);
138 if (bind(fd, (struct sockaddr *)&dest, sizeof(struct sockaddr_ll)) < 0) {
148 packet.udp.dest = htons(dest_port);
160 result = sendto(fd, &packet, sizeof(struct udp_dhcp_packet), 0, (struct sockaddr *) &dest, sizeof(dest));