Lines Matching refs:iface
68 open_socket(struct interface *iface, int protocol)
86 if (!(su.sll.sll_ifindex = if_nametoindex(iface->name))) {
108 fd = &iface->arp_fd;
110 fd = &iface->raw_fd;
122 send_raw_packet(const struct interface *iface, int protocol,
135 if (!(su.sll.sll_ifindex = if_nametoindex(iface->name))) {
139 su.sll.sll_hatype = htons(iface->family);
140 su.sll.sll_halen = iface->hwlen;
141 if (iface->family == ARPHRD_INFINIBAND)
145 memset(&su.sll.sll_addr, 0xff, iface->hwlen);
147 fd = iface->arp_fd;
149 fd = iface->raw_fd;
155 get_raw_packet(struct interface *iface, int protocol, void *data, ssize_t len)
161 fd = iface->arp_fd;
163 fd = iface->raw_fd;