Lines Matching refs:dest_sll
856 struct sockaddr_ll dest_sll; in send_packet6() local
869 memset(&dest_sll, 0, sizeof(dest_sll)); in send_packet6()
870 dest_sll.sll_family = AF_PACKET; in send_packet6()
871 dest_sll.sll_protocol = htons(ETH_P_IPV6); in send_packet6()
872 dest_sll.sll_ifindex = gconfig.ifindex; in send_packet6()
873 dest_sll.sll_halen = ETH_ALEN; in send_packet6()
874 memcpy(dest_sll.sll_addr, client_lla, sizeof(uint8_t)*6); in send_packet6()
876 if (bind(fd, (struct sockaddr *) &dest_sll, sizeof(dest_sll)) < 0) { in send_packet6()
895 0, (struct sockaddr *) &dest_sll, sizeof(dest_sll)); in send_packet6()
906 struct sockaddr_ll dest_sll; in send_packet() local
919 memset(&dest_sll, 0, sizeof(dest_sll)); in send_packet()
920 dest_sll.sll_family = AF_PACKET; in send_packet()
921 dest_sll.sll_protocol = htons(ETH_P_IP); in send_packet()
922 dest_sll.sll_ifindex = gconfig.ifindex; in send_packet()
923 dest_sll.sll_halen = 6; in send_packet()
924 memcpy(dest_sll.sll_addr, (broadcast)?bmacaddr:gstate.rcvd.rcvd_pkt.chaddr , 6); in send_packet()
926 if (bind(fd, (struct sockaddr *) &dest_sll, sizeof(dest_sll)) < 0) { in send_packet()
948 (struct sockaddr *) &dest_sll, sizeof(dest_sll)); in send_packet()