Home | History | Annotate | Download | only in pending

Lines Matching defs:interface

17     -i Interface to use
236 char *interface; // interface to use
358 // gets information of INTERFACE and updates IFINDEX, MAC and IP
359 static int get_interface(const char *interface, int *ifindex, void *oip,
369 xstrncpy(req.ifr_name, (char *)interface, IFNAMSIZ);
382 if (!strstr(toybuf, interface))
693 {"interface" , strinvar , (void*)&gconfig.interface , "eth0"},
780 dbg("Opening listen socket on *:%d %s\n", gconfig.port, gconfig.interface);
793 setsockopt(gstate.listensock, SOL_SOCKET, SO_BINDTODEVICE, gconfig.interface, strlen(gconfig.interface)+1);
798 addr6.sin6_scope_id = if_nametoindex(gconfig.interface);
808 mreq.ipv6mr_interface = if_nametoindex(gconfig.interface);
829 dbg("Opening listen socket on *:%d %s\n", gconfig.port, gconfig.interface);
838 xstrncpy(ifr.ifr_name, gconfig.interface, IFNAMSIZ);
1653 if(TT.iface) gconfig.interface = TT.iface;
1658 if (get_interface(gconfig.interface, &gconfig.ifindex,
1661 perror_exit("Failed to get interface %s", gconfig.interface);
1698 if (get_interface(gconfig.interface, &gconfig.ifindex,
1701 perror_exit("Failed to get interface %s", gconfig.interface);