interface
struct libusb_interface *interface;
int libusb_kernel_driver_active(libusb_device_handle * devh, int interface);
int libusb_get_driver_np(libusb_device_handle * devh, int interface, char *name, int namelen);
int libusb_get_driver(libusb_device_handle * devh, int interface, char *name, int namelen);
int libusb_detach_kernel_driver_np(libusb_device_handle * devh, int interface);
int libusb_detach_kernel_driver(libusb_device_handle * devh, int interface);
int libusb_attach_kernel_driver(libusb_device_handle * devh, int interface);
usb_detach_kernel_driver_np(usb_dev_handle * dev, int interface)
err = libusb20_dev_detach_kernel_driver(pdev, interface);
bcfg->interface = ps->b.currifcw;
ps->a.currifc = acfg->interface + x;
if (cf->interface != NULL) {
free(cf->interface);
cf->interface = NULL;
usb_claim_interface(usb_dev_handle * dev, int interface)
pdev->claimed_interface = interface;
usb_release_interface(usb_dev_handle * dev, int interface)
usb_get_driver_np(usb_dev_handle * dev, int interface, char *name, int namelen)
err = libusb20_dev_get_iface_desc(pdev, interface, name, namelen);
pinf = &pdconf->interface[i];
libusb_kernel_driver_active(struct libusb20_device *pdev, int interface)
if (libusb20_dev_kernel_driver_active(pdev, interface))
libusb_get_driver_np(struct libusb20_device *pdev, int interface,
return (libusb_get_driver(pdev, interface, name, namelen));
libusb_get_driver(struct libusb20_device *pdev, int interface,
pdev, interface, name, namelen);
libusb_detach_kernel_driver_np(struct libusb20_device *pdev, int interface)
return (libusb_detach_kernel_driver(pdev, interface));
libusb_detach_kernel_driver(struct libusb20_device *pdev, int interface)
pdev, interface);
libusb_attach_kernel_driver(struct libusb20_device *pdev, int interface)
pinf = pconf->interface + i;
pconfd->interface = (libusb_interface *) (pconfd + 1);
ifd = (libusb_interface_descriptor *) (pconfd->interface + nif);
pconfd->interface[i].altsetting = ifd;
endd += pconf->interface[i].num_endpoints;
for (j = 0; j < pconf->interface[i].num_altsetting; j++) {
endd += pconf->interface[i].altsetting[j].num_endpoints;
pinf = &pconf->interface[i];
pconfd->interface[i].num_altsetting = pinf->num_altsetting + 1;
for (j = 0; j < pconfd->interface[i].num_altsetting; j++) {
pinf = &pconf->interface[i].altsetting[j - 1];
ifd = &pconfd->interface[i].altsetting[j];
lub_config->interface = lub_interface;
struct libusb20_interface *interface;
struct usb_interface *interface;
int usb_claim_interface(usb_dev_handle * dev, int interface);
int usb_release_interface(usb_dev_handle * dev, int interface);
int usb_get_driver_np(usb_dev_handle * dev, int interface, char *name, int namelen);
int usb_detach_kernel_driver_np(usb_dev_handle * dev, int interface);
struct interface *rts_ifp;
struct interface *int_next, **int_prev;
struct interface *int_ahash, **int_ahash_prev;
struct interface *int_bhash, **int_bhash_prev;
struct interface *int_rlink, **int_rlink_prev;
struct interface *int_nhash, **int_nhash_prev;
extern struct interface *rip_sock_mcast; /* current multicast interface */
extern struct interface *ifnet; /* all interfaces */
extern struct interface *remote_if; /* remote interfaces */
extern void rip_on(struct interface *);
struct interface *, struct rip *, int);
extern void supply(struct sockaddr_in *, struct interface *,
extern void get_parms(struct interface *);
extern void trace_if(const char *, struct interface *);
struct interface *, struct rip *, int);
extern void set_rdisc_mg(struct interface *, int);
extern void if_bad_rdisc(struct interface *);
extern void if_ok_rdisc(struct interface *);
extern void read_rip(int, struct interface *);
extern naddr ripv1_mask_net(naddr, struct interface *);
extern naddr ripv1_mask_host(naddr,struct interface *);
extern struct interface *check_dup(naddr, naddr, naddr, int);
extern int check_remote(struct interface *);
extern int addrouteforif(struct interface *);
extern int if_ok(struct interface *, const char *);
extern void if_sick(struct interface *);
extern void if_bad(struct interface *);
extern void if_link(struct interface *);
extern struct interface *ifwithaddr(naddr, int, int);
extern struct interface *ifwithname(char *, naddr);
extern struct interface *ifwithindex(u_short, int);
extern struct interface *iflookup(naddr);
extern struct auth *find_auth(struct interface *);
ifp = (struct interface *)rtmalloc(sizeof(*ifp), "ifinit ifp");
check_net_syn(struct interface *ifp)
addrouteforif(struct interface *ifp)
struct interface *
struct interface *ifp, *possible = NULL;
struct interface *
struct interface *ifp;
struct interface *
struct interface *ifp;
struct interface *
struct interface *ifp, *maybe;
struct interface *ifp) /* as seen on this interface */
struct interface *ifp) /* as seen on this interface */
struct interface *ifnet; /* all interfaces */
struct interface *
struct interface *ifp;
check_remote(struct interface *ifp)
ifdel(struct interface *ifp)
struct interface *ifp1;
struct interface *ahash_tbl[AHASH_LEN];
struct interface *bhash_tbl[BHASH_LEN];
struct interface *remote_if; /* remote interfaces */
if_sick(struct interface *ifp)
if_bad(struct interface *ifp)
struct interface *ifp1;
if_ok(struct interface *ifp,
struct interface *ifp1;
struct interface *nhash_tbl[NHASH_LEN];
struct interface ifs, ifs0, *ifp, *ifp1;
static struct interface**
if_link(struct interface *ifp)
struct interface **hifp;
struct interface *sifp, /* interface of incoming socket */
struct interface *aifp, /* "authenticated" interface */
struct interface *ifp1;
static void input(struct sockaddr_in *, struct interface *, struct interface *,
static int ck_passwd(struct interface *, struct rip *, void *,
struct interface *sifp)
struct interface *aifp;
struct interface *ifp1;
ck_passwd(struct interface *aifp,
struct interface *ifp;
struct interface *ifp;
rip_mcast_on(struct interface *ifp)
rip_on(struct interface *ifp)
struct interface *rip_sock_mcast; /* current multicast interface */
struct interface *ifp;
find_auth(struct interface *ifp)
struct interface *ifp; /* usually output interface */
struct interface *ifp, /* output interface */
struct interface *ifp;
struct interface *ifp;
struct interface *ifp,
struct interface *ifp;
ifp = (struct interface *)rtmalloc(sizeof(*ifp), "gwkludge()");
get_parms(struct interface *ifp)
struct interface *ifp,
set_rdisc_mg(struct interface *ifp,
struct interface *ifp;
if_bad_rdisc(struct interface *ifp)
if_ok_rdisc(struct interface *ifp)
struct interface *ifp;
struct interface *ifp;
struct interface *ifp)
struct interface *rdisc_sock_mcast; /* current multicast interface */
struct interface *ifp,
struct interface *dr_ifp;
send_adv(struct interface *ifp,
struct interface *ifp;
struct interface *ifp;
static struct interface * /* 0 if bad */
struct interface *ifp,
struct interface *ifp;
struct interface *ifp;
struct interface *ifp, *ifp1;
struct interface *ifp;
struct interface *ifp;
struct interface *ifp)
struct interface *ifp;
struct interface *ifp;
struct interface *ifp)
struct interface *ifp;
struct interface *ifp,
OpenProtocolByHandle(EFI_HANDLE handle, EFI_GUID *protocol, void **interface)
return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
int interface = 0;
interface = uaa->info.bIfaceIndex;
if (interface == 2) {
for (m = 0; m != config->interface[n].num_altsetting; m++) {
iface = (pcfg->interface + x);
iface = (pcfg->interface + x);
if (interface != 0 && (strcmp(name, interface) != 0))
if (interface && strcmp(name, interface) == 0) {
char *interface; /* desired i/f for stats, or NULL for all i/fs */
for (cp = interface = optarg; isalpha(*cp); cp++)
extern char *interface; /* desired i/f for stats, or NULL for all i/fs */
char interface[256];
strlcpy(interface, dfui_response_get_action_id(r), 256);
a->os_root, cmd_name(a, "IFCONFIG"), interface);
show_ifconfig(a->c, interface);
"anyway?"), interface)) {
asprintf(&string, "ifconfig_%s", interface);
interface, interface_ip, interface_netmask);
show_ifconfig(a->c, interface);
asprintf(&string, "ifconfig_%s", interface);
char interface[256];
strlcpy(interface, dfui_response_get_action_id(r), 256);
"Would you like to enable DHCP for %s?"), interface)) {
interface);
scrubrule : scrubaction dir logquick interface af proto fromto scrub_opts
altqif : ALTQ interface queue_opts QUEUE qassign {
queuespec : QUEUE STRING interface queue_opts qassign {
pfrule : action dir logquick interface route af proto fromto
interface : /* empty */ { $$ = NULL; }
struct node_if *interface;
natrule : nataction interface af proto fromto tag tagged rtable
binatrule : no BINAT natpasslog interface af proto FROM host toipspec tag
%type <v.interface> interface if_list if_item_not if_item
LOOP_THROUGH(struct node_if, interface, interfaces,
if (strlcpy(pa.ifname, interface->ifname,
if (interface->not) {
if (strlcat(qname, interface->ifname,
if (strlcpy(pb.ifname, interface->ifname,
if (strlcpy(n->ifname, interface->ifname,
%type <v.interface> antispoof_ifspc antispoof_iflst antispoof_if
LOOP_THROUGH(struct node_if, interface, interfaces,
(interface->ifname[0] == 0 ||
(!interface->not && !strncmp(interface->ifname,
(interface->not && strncmp(interface->ifname,
(found == 1 && interface->ifname[0] == 0) ||
(found > 0 && interface->ifname[0] != 0))) {
&bwspec, interface->ifname[0] != 0,
LOOP_THROUGH(struct node_if, interface, interfaces,
(src_host->ifindex && *interface->ifname &&
src_host->ifindex != if_nametoindex(interface->ifname)) ||
(dst_host->ifindex && *interface->ifname &&
dst_host->ifindex != if_nametoindex(interface->ifname)))
if (*interface->ifname)
strlcpy(r->ifname, interface->ifname,
r->ifnot = interface->not;
LOOP_THROUGH(struct node_if, interface, interfaces,
printf(" %s", interface->ifname);
if (interface->not) {
interface->ifname, PFI_IFLAG_SKIP, 1);
| SET SKIP interface {
anchorrule : ANCHOR anchorname dir quick interface af proto fromto
| NATANCHOR string interface af proto fromto rtable {
| RDRANCHOR string interface af proto fromto rtable {
| BINATANCHOR string interface af proto fromto rtable {
cur_snaplen, interface, filename);
hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf);
interface = optarg;
if (!if_exists(__DECONST(char *, interface))) {
warn("Failed to initialize: %s", interface);
logmsg(LOG_ERR, "Failed to initialize: %s", interface);
const char *interface = PFLOGD_DEFAULT_IF;
if (!if_exists(__DECONST(char *, interface))) {
interface);
strncpy(interface, argv[optind], IFNAMSIZ);
if (strncmp(interface, ifmd.ifmd_name, IFNAMSIZ) == 0
errx(1, "interface %s does not exist", interface);
char interface[IFNAMSIZ];
sprintf(interface, INTERFACE_PREFIX, unit);
sprintf(interface, INTERFACE_PREFIX, unit);
dump_iface(pdev, pcfg->interface + x);
for (y = 0; y != (pcfg->interface + x)->num_altsetting; y++) {
(pcfg->interface + x)->altsetting + y);