Lines Matching defs:dest
107 /* Construct a ip/udp header for a packet, and specify the source and dest hardware address */
115 struct sockaddr_ll dest;
124 memset(&dest, 0, sizeof(dest));
127 dest.sll_family = AF_PACKET;
128 dest.sll_protocol = htons(ETH_P_IP);
129 dest.sll_ifindex = ifindex;
130 dest.sll_halen = 6;
131 memcpy(dest.sll_addr, dest_arp, 6);
132 if (bind(fd, (struct sockaddr *)&dest, sizeof(struct sockaddr_ll)) < 0) {
142 packet.udp.dest = htons(dest_port);
158 (struct sockaddr *) &dest, sizeof(dest));