Lines Matching refs:ifName
139 * ifname -- name of interface
147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr)
173 !strncmp(ifname, ifr->ifr_name, sizeof(ifr->ifr_name))) {
176 sprintf(buffer, "interface %.16s has more than one ethernet address", ifname);
187 sprintf(buffer, "interface %.16s has no ethernet address", ifname);
263 * ifname -- name of interface
275 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
324 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
330 sprintf(buffer, "Interface %.16s is not up\n", ifname);
338 getHWaddr(sock, ifname, hwaddr);
343 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
350 ifname, ifr.ifr_mtu, ETH_DATA_LEN);
388 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
392 ifname);
397 ifname,
410 * ifname -- name of interface
419 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
456 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
464 sprintf(buffer, "Interface %.16s is not Ethernet", ifname);
472 ifname);
478 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
485 ifname, ifr.ifr_mtu, ETH_DATA_LEN);
494 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
501 strcpy(sa.sa_data, ifname);
582 strcpy(sa.sa_data, conn->ifName);
699 * ifname -- name of interface
708 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr)
718 if(strlen(ifname) > PATH_MAX) {
722 ppa = atoi(&ifname[strlen(ifname)-1]);
723 strncpy(base_dev, ifname, PATH_MAX);