Lines Matching refs:ifname
51 const char *ifname; variable
305 static int rxq_num(const char *ifname) in rxq_num() argument
314 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in rxq_num()
330 static void hwtstamp_ioctl(int op, const char *ifname, struct hwtstamp_config *cfg) in hwtstamp_ioctl() argument
335 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in hwtstamp_ioctl()
357 static void hwtstamp_enable(const char *ifname) in hwtstamp_enable() argument
363 hwtstamp_ioctl(SIOCGHWTSTAMP, ifname, &saved_hwtstamp_cfg); in hwtstamp_enable()
364 saved_hwtstamp_ifname = strdup(ifname); in hwtstamp_enable()
367 hwtstamp_ioctl(SIOCSHWTSTAMP, ifname, &cfg); in hwtstamp_enable()
421 ifname = argv[1]; in main()
422 ifindex = if_nametoindex(ifname); in main()
423 rxq = rxq_num(ifname); in main()
427 hwtstamp_enable(ifname); in main()
434 printf("open_xsk(%s, %p, %d)\n", ifname, &rx_xsk[i], i); in main()