/src/usr.sbin/altq/libaltq/ |
qop_fifoq.c | 171 struct fifoq_interface iface; local in function:fifoq_attach 183 memset(&iface, 0, sizeof(iface)); 184 strncpy(iface.fifoq_ifname, ifinfo->ifname, IFNAMSIZ); 186 if (ioctl(fifoq_fd, FIFOQ_IF_ATTACH, &iface) < 0) 193 strncpy(conf.iface.fifoq_ifname, ifinfo->ifname, IFNAMSIZ); 199 LOG(LOG_INFO, 0, "fifoq attached to %s", iface.fifoq_ifname); 207 struct fifoq_interface iface; local in function:fifoq_detach 209 memset(&iface, 0, sizeof(iface)); 225 struct fifoq_interface iface; local in function:fifoq_enable 238 struct fifoq_interface iface; local in function:fifoq_disable [all...] |
qop_blue.c | 200 struct blue_interface iface; local in function:blue_attach 212 memset(&iface, 0, sizeof(iface)); 213 strncpy(iface.blue_ifname, ifinfo->ifname, IFNAMSIZ); 215 if (ioctl(blue_fd, BLUE_IF_ATTACH, &iface) < 0) 221 strncpy(conf.iface.blue_ifname, ifinfo->ifname, IFNAMSIZ); 231 LOG(LOG_INFO, 0, "blue attached to %s", iface.blue_ifname); 239 struct blue_interface iface; local in function:blue_detach 241 memset(&iface, 0, sizeof(iface)); 257 struct blue_interface iface; local in function:blue_enable 270 struct blue_interface iface; local in function:blue_disable [all...] |
qop_red.c | 229 struct red_interface iface; local in function:red_attach 241 memset(&iface, 0, sizeof(iface)); 242 strncpy(iface.red_ifname, ifinfo->ifname, IFNAMSIZ); 244 if (ioctl(red_fd, RED_IF_ATTACH, &iface) < 0) 250 strncpy(conf.iface.red_ifname, ifinfo->ifname, IFNAMSIZ); 261 LOG(LOG_INFO, 0, "red attached to %s", iface.red_ifname); 269 struct red_interface iface; local in function:red_detach 271 memset(&iface, 0, sizeof(iface)); 287 struct red_interface iface; local in function:red_enable 300 struct red_interface iface; local in function:red_disable [all...] |
qop_wfq.c | 204 struct wfq_interface iface; local in function:wfq_attach 216 memset(&iface, 0, sizeof(iface)); 217 strncpy(iface.wfq_ifacename, ifinfo->ifname, IFNAMSIZ); 219 if (ioctl(wfq_fd, WFQ_IF_ATTACH, &iface) < 0) 227 strncpy(conf.iface.wfq_ifacename, ifinfo->ifname, IFNAMSIZ); 237 LOG(LOG_INFO, 0, "wfq attached to %s", iface.wfq_ifacename); 245 struct wfq_interface iface; local in function:wfq_detach 247 memset(&iface, 0, sizeof(iface)); 263 struct wfq_interface iface; local in function:wfq_enable 276 struct wfq_interface iface; local in function:wfq_disable [all...] |
qop_priq.c | 349 struct priq_interface iface; local in function:priq_attach 351 memset(&iface, 0, sizeof(iface)); 352 strncpy(iface.ifname, ifinfo->ifname, IFNAMSIZ); 362 memset(&iface, 0, sizeof(iface)); 363 strncpy(iface.ifname, ifinfo->ifname, IFNAMSIZ); 364 iface.arg = ifinfo->bandwidth; 366 if (ioctl(priq_fd, PRIQ_IF_ATTACH, &iface) < 0) 374 struct priq_interface iface; local in function:priq_detach 392 struct priq_interface iface; local in function:priq_clear 405 struct priq_interface iface; local in function:priq_enable 418 struct priq_interface iface; local in function:priq_disable [all...] |
qop_rio.c | 273 struct rio_interface iface; local in function:rio_attach 286 memset(&iface, 0, sizeof(iface)); 287 strncpy(iface.rio_ifname, ifinfo->ifname, IFNAMSIZ); 289 if (ioctl(rio_fd, RIO_IF_ATTACH, &iface) < 0) 295 strncpy(conf.iface.rio_ifname, ifinfo->ifname, IFNAMSIZ); 305 LOG(LOG_INFO, 0, "rio attached to %s", iface.rio_ifname); 313 struct rio_interface iface; local in function:rio_detach 315 memset(&iface, 0, sizeof(iface)); 331 struct rio_interface iface; local in function:rio_enable 344 struct rio_interface iface; local in function:rio_disable [all...] |
qop_jobs.c | 530 strncpy(attach.iface.jobs_ifname, ifinfo->ifname, IFNAMSIZ); 541 attach.iface.jobs_ifname, 551 struct jobs_interface iface; local in function:jobs_detach 553 memset(&iface, 0, sizeof(iface)); 554 strncpy(iface.jobs_ifname, ifinfo->ifname, IFNAMSIZ); 556 if (ioctl(jobs_fd, JOBS_IF_DETACH, &iface) < 0) 569 struct jobs_interface iface; local in function:jobs_enable 571 memset(&iface, 0, sizeof(iface)); 582 struct jobs_interface iface; local in function:jobs_disable 595 struct jobs_interface iface; local in function:jobs_clear [all...] |
/src/usr.bin/rump_dhcpclient/ |
bpf.c | 53 open_socket(struct interface *iface, int protocol) 90 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); 97 if (iface->buffer_size != (size_t)buf_len) { 98 free(iface->buffer); 99 iface->buffer_size = buf_len; 100 iface->buffer = xmalloc(buf_len); 101 iface->buffer_len = iface->buffer_pos = 0; 114 fdp = &iface->arp_fd; 118 fdp = &iface->raw_fd [all...] |
net.h | 85 const struct interface *iface; member in struct:rt 100 #define get_mtu(iface) do_mtu(iface, 0) 101 #define set_mtu(iface, mtu) do_mtu(iface, mtu) 115 #define add_address(iface, addr, net, brd) \ 116 if_address(iface, addr, net, brd, 1) 117 #define del_address(iface, addr, net) \ 118 if_address(iface, addr, net, NULL, -1) 119 #define has_address(iface, addr, net) [all...] |
configure.c | 73 (srt || (!rt->iface || 74 rt->iface->metric == r->iface->metric)) && 116 desc_route("removing", f, f->iface->name); 126 n_route(struct rt *rt, const struct interface *iface) 131 !(iface->state->options->options & DHCPCD_GATEWAY)) 134 desc_route("adding", rt, iface->name); 135 if (!add_route(iface, &rt->dest, &rt->net, &rt->gate, iface->metric)) 139 if (rt->dest.s_addr == (iface->addr.s_addr & iface->net.s_addr) & [all...] |
net.c | 187 struct interface *iface = NULL; local in function:init_interface 194 iface = xzalloc(sizeof(*iface)); 195 strlcpy(iface->name, ifname, sizeof(iface->name)); 196 iface->flags = ifr.ifr_flags; 199 iface->metric = 200 + if_nametoindex(iface->name); 200 if (getifssid(ifname, iface->ssid) != -1) { 201 iface->wireless = 1 [all...] |
if-bsd.c | 73 if_init(_unused struct interface *iface) 80 if_conf(_unused struct interface *iface) 135 if_address(const struct interface *iface, const struct in_addr *address, 147 strlcpy(ifa.ifra_name, iface->name, sizeof(ifa.ifra_name)); 172 if_route(const struct interface *iface, const struct in_addr *dest, 219 net->s_addr != iface->net.s_addr || 220 dest->s_addr != (iface->addr.s_addr & iface->net.s_addr)) 240 link_addr(iface->name, &su.sdl); 261 ADDADDR(&iface->addr) [all...] |
dhcp.c | 534 const struct interface *iface, 540 time_t up = uptime() - iface->start_uptime; 546 const struct if_options *ifo = iface->state->options; 547 const struct dhcp_lease *lease = &iface->state->lease; 555 iface->net.s_addr == lease->net.s_addr && 556 (iface->state->new == NULL || 557 iface->state->new->cookie == htonl(MAGIC_COOKIE))))) 559 dhcp->ciaddr = iface->addr.s_addr; 561 if (type == DHCP_INFORM && iface->addr.s_addr == 0) 566 dhcp->hwtype = iface->family [all...] |
/src/usr.sbin/iwictl/ |
iwictl.c | 62 char *iface = NULL; local in function:main 67 iface = argv[1]; 77 iface = optarg; 89 if (iface == NULL) 93 get_radio_state(iface); 96 get_statistics(iface); 104 (void)fprintf(stderr, "Usage: %s [-i] iface\n" 105 "\t%s [-i] iface -r\n", getprogname(), getprogname()); 111 do_req(const char *iface, unsigned long req, void *data) 121 (void)strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)) [all...] |
/src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/marvell/ |
cn9130.dtsi | 22 #define CP11X_PCIEx_MEM_BASE(iface) ((iface == 0) ? 0xc0000000 : \ 23 0xe0000000 + ((iface - 1) * 0x1000000)) 24 #define CP11X_PCIEx_MEM_SIZE(iface) ((iface == 0) ? 0x1ff00000 : 0xf00000)
|
armada-80x0.dtsi | 24 #define CP11X_PCIEx_MEM_BASE(iface) (0xf6000000 + (iface * 0x1000000)) 25 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000 45 #define CP11X_PCIEx_MEM_BASE(iface) (0xfa000000 + (iface * 0x1000000)) 46 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
|
armada-70x0.dtsi | 22 #define CP11X_PCIEx_MEM_BASE(iface) (0xf6000000 + (iface * 0x1000000)) 23 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
|
/src/sys/altq/ |
altq_priq.h | 50 struct priq_interface iface; member in struct:priq_add_class 71 struct priq_interface iface; member in struct:priq_delete_class 76 struct priq_interface iface; member in struct:priq_modify_class 84 struct priq_interface iface; member in struct:priq_add_filter 92 struct priq_interface iface; member in struct:priq_delete_filter 113 struct priq_interface iface; member in struct:priq_class_stats
|
altq_wfq.h | 47 struct wfq_interface iface; member in struct:wfq_getqid 55 struct wfq_interface iface; member in struct:wfq_setweight 68 struct wfq_interface iface; member in struct:wfq_getstats 74 struct wfq_interface iface; member in struct:wfq_conf
|
altq_cdnr.h | 82 struct cdnr_interface iface; member in struct:cdnr_add_element 89 struct cdnr_interface iface; member in struct:cdnr_delete_element 95 struct cdnr_interface iface; member in struct:cdnr_add_tbmeter 104 struct cdnr_interface iface; member in struct:cdnr_modify_tbmeter 110 struct cdnr_interface iface; member in struct:cdnr_tbmeter_stats 118 struct cdnr_interface iface; member in struct:cdnr_add_trtcm 130 struct cdnr_interface iface; member in struct:cdnr_modify_trtcm 138 struct cdnr_interface iface; member in struct:cdnr_tcm_stats 147 struct cdnr_interface iface; member in struct:cdnr_add_tswtcm 159 struct cdnr_interface iface; member in struct:cdnr_modify_tswtcm 167 struct cdnr_interface iface; member in struct:cdnr_add_filter 176 struct cdnr_interface iface; member in struct:cdnr_delete_filter 187 struct cdnr_interface iface; member in struct:cdnr_get_stats [all...] |
altq_fifoq.h | 57 struct fifoq_interface iface; member in struct:fifoq_getstats 66 struct fifoq_interface iface; member in struct:fifoq_conf
|
/src/usr.sbin/wiconfig/ |
wiconfig.c | 149 wi_apscan(char *iface) 161 if (iface == NULL) 167 flags = get_if_flags(s, iface); 169 flags = set_if_flags(s, iface, flags | IFF_UP); 180 wi_setval(iface, &wreq); 193 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); 210 set_if_flags(s, iface, flags); 284 set_if_flags(s, iface, flags); 290 wi_getval(char *iface, struct wi_req *wreq) 298 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)) 795 char *iface; local in function:main [all...] |
/src/usr.sbin/ipwctl/ |
ipwctl.c | 63 const char *iface; local in function:main 69 iface = optarg; 72 iface = argv[1]; 75 iface = "ipw0"; 85 get_radio_state(iface); 93 get_statistics(iface); 101 (void)fprintf(stderr, "Usage: %s -i iface\n" 102 "\t%s -i iface -r\n", getprogname(), getprogname()); 108 do_req(const char *iface, unsigned long req, void *data) 118 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)) [all...] |
/src/sys/dev/pci/ |
com_puc.c | 96 unsigned int iface; local in function:com_puc_attach 100 iface = PCI_INTERFACE(pci_conf_read(aa->pc, aa->tag, PCI_CLASS_REG)); 102 if (iface < __arraycount(serialtype)) 103 aprint_normal(" (%s-compatible)", serialtype[iface]);
|
/src/sys/dev/usb/ |
usbdi.c | 68 "struct usbd_interface *"/*iface*/, 75 "struct usbd_interface *"/*iface*/, 150 usbd_dump_iface(struct usbd_interface *iface) 153 USBHIST_CALLARGS(usbdebug, "iface %#jx", (uintptr_t)iface, 0, 0, 0); 155 if (iface == NULL) 158 (uintptr_t)iface->ui_dev, (uintptr_t)iface->ui_idesc, 159 iface->ui_index, 0); 161 iface->ui_altindex, 0, 0, 0) [all...] |