Home | History | Annotate | Download | only in ns-tools

Lines Matching refs:sock_fd

176 	int sock_fd;		/* Socket for ioctl() */
179 if ((sock_fd = socket(AF_PACKET, SOCK_DGRAM, 0)) < 0)
189 get_ifinfo(&ifinfo, sock_fd, ifname, SIOCGIFHWADDR);
194 close(sock_fd);
716 int sock_fd;
722 sock_fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6));
723 if (sock_fd < 0)
727 retval = bind(sock_fd, (struct sockaddr *)&(info_p->saddr_ll),
752 retval = sendto(sock_fd, &pkt, info_p->pkt_size, 0,
772 close(sock_fd);