interface
register_module(krb5_context context, struct plugin_interface *interface,
list = interface->modules;
list = realloc(interface->modules, (count + 2) * sizeof(*list));
interface->modules = list;
struct plugin_interface *interface = &context->plugins[id];
if (interface->configured)
ret = make_full_list(context, modstrs, &interface->modules);
remove_disabled_modules(interface->modules, disable);
filter_enabled_modules(interface->modules, enable);
struct plugin_interface *interface = get_interface(context, interface_id);
if (interface == NULL)
for (mp = interface->modules; mp != NULL && *mp != NULL; mp++) {
struct plugin_interface *interface = get_interface(context, interface_id);
if (interface == NULL)
mp = interface->modules;
for (mp = interface->modules; mp != NULL && *mp != NULL; mp++) {
struct plugin_interface *interface = get_interface(context, interface_id);
if (interface == NULL)
if (interface->configured)
return register_module(context, interface, modname, NULL, module);
struct plugin_interface *interface = get_interface(context, interface_id);
if (interface == NULL || interface->configured)
ret = register_module(context, interface, modname, path, NULL);
setipv4sourcefilter(int s, struct in_addr interface, struct in_addr group,
ifindex = __inaddr_to_index(interface.s_addr);
getipv4sourcefilter(int s, struct in_addr interface, struct in_addr group,
ifindex = __inaddr_to_index(interface.s_addr);
setsourcefilter(int s, uint32_t interface, struct sockaddr *group,
msfr.msfr_ifindex = interface;
getsourcefilter(int s, uint32_t interface, struct sockaddr *group,
if (interface == 0 || group == NULL || numsrc == NULL ||
msfr.msfr_ifindex = interface;
__K8MASK(dram-controller-interface-bypass, 2),
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);
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 = &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,
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);
send_packet_priv(struct interface_info *interface, struct imsg_hdr *hdr, int fd)
assemble_hw_header(interface, buf, &bufp);
result = writev(interface->wfdesc, iov, 2);
result = sendmsg(interface->ufdesc, &msg, 0);
receive_packet(struct interface_info *interface, unsigned char *buf,
if (interface->rbuf_offset >= interface->rbuf_len) {
length = read(interface->rfdesc, interface->rbuf,
interface->rbuf_max);
interface->rbuf_offset = 0;
interface->rbuf_len = length;
if (interface->rbuf_len - interface->rbuf_offset <
interface->rbuf_offset = interface->rbuf_len;
memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
interface->rbuf_len) {
interface->rbuf_offset = interface->rbuf_len;
interface->rbuf_offset += hdr.bh_hdrlen;
interface->rbuf_offset =
BPF_WORDALIGN(interface->rbuf_offset +
offset = decode_hw_header(interface->rbuf,
interface->rbuf_offset, hfrom);
interface->rbuf_offset =
BPF_WORDALIGN(interface->rbuf_offset +
interface->rbuf_offset += offset;
offset = decode_udp_ip_header(interface->rbuf,
interface->rbuf_offset, from, NULL, hdr.bh_caplen);
interface->rbuf_offset =
BPF_WORDALIGN(interface->rbuf_offset +
interface->rbuf_offset += offset;
interface->rbuf_offset =
BPF_WORDALIGN(interface->rbuf_offset +
memcpy(buf, interface->rbuf + interface->rbuf_offset,
interface->rbuf_offset =
BPF_WORDALIGN(interface->rbuf_offset +
for (ap = packet->interface->client->config->reject_list;
struct interface_info *ip = packet->interface;
packet->interface->client->xid != packet->raw->xid ||
(packet->interface->hw_address.hlen != packet->raw->hlen) ||
(memcmp(packet->interface->hw_address.haddr,
struct interface_info *ip = packet->interface;
struct interface_info *ip = packet->interface;
if (packet->interface->client->xid != packet->raw->xid ||
(packet->interface->hw_address.hlen != packet->raw->hlen) ||
(memcmp(packet->interface->hw_address.haddr,
struct interface_info *ip = packet->interface;
if (packet->interface->client->xid != packet->raw->xid ||
(packet->interface->hw_address.hlen != packet->raw->hlen) ||
(memcmp(packet->interface->hw_address.haddr,
for (ap = packet->interface->client->config->reject_list;
struct interface_info *interface;
do_packet(struct interface_info *interface, struct dhcp_packet *packet,
tp.interface = interface;
assemble_hw_header(struct interface_info *interface, unsigned char *buf,
if (interface->hw_address.hlen == sizeof(eh.ether_shost))
memcpy(eh.ether_shost, interface->hw_address.haddr,
interface = optarg;
if (interface == NULL) {
if (buildsocket(interface, &sin) == -1)
char *interface;
interface = NULL;
| interface { $$ = $1; }
interface:
%type <opt> direction dstip dstport every group 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 {
etherrule : ETHER action dir quick interface bridge etherproto etherfromto l3fromto etherfilter_opts
etheranchorrule : ETHER ANCHOR anchorname dir quick interface etherproto etherfromto l3fromto etherpfa_anchor
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 ipspec 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,
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,
%type <v.interface> antispoof_ifspc antispoof_iflst antispoof_if
LOOP_THROUGH(struct node_if, interface, interfaces,
strlcpy(r->ifname, interface->ifname,
r->ifnot = interface->not;
LOOP_THROUGH(struct node_if, interface, interfaces,
(src_host->ifindex && *interface->ifname &&
src_host->ifindex != ifa_nametoindex(interface->ifname)) ||
(dst_host->ifindex && *interface->ifname &&
dst_host->ifindex != ifa_nametoindex(interface->ifname)))
if (*interface->ifname)
strlcpy(r->ifname, interface->ifname,
r->ifnot = interface->not;
expand_rule(&rdr_rule, true, interface, NULL, rdr_redirspec,
LOOP_THROUGH(struct node_if, interface, interfaces,
printf(" %s", interface->ifname);
if (interface->not) {
interface->ifname, PFI_IFLAG_SKIP, 1);
| SET SKIP interface {
struct interface *rts_ifp;
LIST_ENTRY(interface) int_list;
LIST_ENTRY(interface) remote_list;
struct interface *int_ahash, **int_ahash_prev;
struct interface *int_bhash, **int_bhash_prev;
struct interface *int_nhash, **int_nhash_prev;
LIST_HEAD(ifhead, interface);
extern const struct interface *rip_sock_mcast; /* current multicast interface */
void rip_on(struct interface *);
struct interface *, struct rip *, int);
void supply(struct sockaddr_in *, struct interface *,
void get_parms(struct interface *);
void trace_if(const char *, struct interface *);
struct interface *, struct rip *, int);
void set_rdisc_mg(struct interface *, int);
void if_bad_rdisc(struct interface *);
void if_ok_rdisc(struct interface *);
void read_rip(int, struct interface *);
naddr ripv1_mask_net(naddr, struct interface *);
naddr ripv1_mask_host(naddr,struct interface *);
struct interface *check_dup(naddr, naddr, naddr, int);
int check_remote(struct interface *);
int if_ok(struct interface *, const char *);
void if_sick(struct interface *);
void if_link(struct interface *);
struct interface *ifwithaddr(naddr addr, int bcast, int remote);
struct interface *ifwithindex(u_short, int);
struct interface *iflookup(naddr);
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;
static 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 *
struct interface *ifp;
check_remote(struct interface *ifp)
ifdel(struct interface *ifp)
struct interface *ifp1;
static struct interface *ahash_tbl[AHASH_LEN];
static struct interface *bhash_tbl[BHASH_LEN];
if_sick(struct interface *ifp)
if_bad(struct interface *ifp)
struct interface *ifp1;
if_ok(struct interface *ifp,
struct interface *ifp1;
static struct interface *nhash_tbl[NHASH_LEN];
struct interface ifs, ifs0, *ifp, *ifp1;
static void if_bad(struct interface *);
static int addrouteforif(struct interface *);
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)
const 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)
static const 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;
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,
OpenProtocolByHandle(EFI_HANDLE handle, EFI_GUID *protocol, void **interface)
return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
char interface[8];
#define IDR0_VATOS (1 << 20) / * Virtual ATOS page interface */
* NVRAM write journaling interface.
bit32 interface,
bit32 interface,
reserved_In_Ln = ((interface & 0x1) << SHIFT7) | (laneNumber & 0x7F);
const char *interface;
interface = argv[1];
pcap = pcap_create(interface, errbuf);
if (interface == NULL)
if ((capture = pcap_open_live(interface, SNAPLEN, promisc, timeout,
if (pcap_lookupnet(interface, &localnet, &netmask, errbuf) < 0)
char *interface = NULL;
interface = optarg;
strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
char* interface = 0; ///< Name of the interface
interface = optarg;
grab(interface, group, number, block);
void grab(char *interface, struct in_addr *group, int number, int block) {
strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
int source(char *interface, struct in_addr *group, int pkt_size,
strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
char* interface = 0; ///< Name of the interface
interface = optarg;
sink(interface, group, pkt_size, number, clients, client,
source(interface, group, pkt_size, number, gap, clients,
int sink(char *interface, struct in_addr *group, int pkt_size, int number,
char interface[MAX_PORTNAMELEN];
ports[j].interface,
snprintf(p->interface, MAX_PORTNAMELEN, "%s%s{%d/xT@%d",
D("opening pipe named %s", p->interface);
p->nmd = nmport_open(p->interface);
D("cannot open %s", p->interface);
k + 1, p->interface, p->nmd->reg.nr_tx_slots);
for (m = 0; m != config->interface[n].num_altsetting; m++) {
iface = (pcfg->interface + x);
iface = (pcfg->interface + x);
if (interface != NULL &&
strcmp(ifa->ifa_name, interface) != 0)
if (interface != NULL && strcmp(ifa->ifa_name, interface) != 0)
if (interface) {
if (strcmp(ifa->ifa_name, interface) == 0)
if (interface && found == false)
xo_err(EX_DATAERR, "interface %s not found", interface);
interface != NULL ? interface : "(Total)", "output");
char *interface; /* desired i/f for stats, or NULL for all i/fs */
for (cp = interface = optarg; isalpha(*cp); cp++)
bpf_stats(interface);
extern char *interface; /* desired i/f for stats, or NULL for all i/fs */
fwcfg_id->interface = 1;
uint32_t interface : 1; /* always set */
ifc = &cfg->interface[0];
dump_iface(pdev, pcfg->interface + x);
for (y = 0; y != (pcfg->interface + x)->num_altsetting; y++) {
(pcfg->interface + x)->altsetting + y);