Lines Matching refs:ifname
96 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) in openInterface() argument
136 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
138 error("Can't get hardware address for %s: %m", ifname); in openInterface()
145 warn("Interface %.16s is not Ethernet", ifname); in openInterface()
150 ifname); in openInterface()
155 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
157 error("Can't get MTU for %s: %m", ifname); in openInterface()
160 ifname, ifr.ifr_mtu, ETH_DATA_LEN); in openInterface()
169 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
171 error("Could not get interface index for %s: %m", ifname); in openInterface()
178 strcpy(sa.sa_data, ifname); in openInterface()
183 error("Failed to bind to interface %s: %m", ifname); in openInterface()