/freebsd/usr.sbin/rtsold/ |
H A D | rtsold.c | 121 struct ifinfo *ifi; in main() local 314 TAILQ_FOREACH(ifi, &ifinfo_head, ifi_next) { in main() 315 if (ifi->state != IFS_DOWN && ifi->racnt == 0) in main() 318 if (ifi == NULL) in main() 386 struct ifinfo *ifi; in ifconfig() local 390 ifi = NULL; in ifconfig() 428 if ((ifi = malloc(sizeof(*ifi))) == NULL) { in ifconfig() 432 memset(ifi, 0, sizeof(*ifi)); in ifconfig() 433 ifi->sdl = sdl; in ifconfig() 434 ifi->ifi_rdnss = IFI_DNSOPT_STATE_NOINFO; in ifconfig() [all …]
|
H A D | dump.c | 59 struct ifinfo *ifi; in rtsold_dump() local 73 TAILQ_FOREACH(ifi, &ifinfo_head, ifi_next) { in rtsold_dump() 74 fprintf(fp, "Interface %s\n", ifi->ifname); in rtsold_dump() 76 if (ifi->probeinterval) { in rtsold_dump() 77 fprintf(fp, "%d\n", ifi->probeinterval); in rtsold_dump() 78 fprintf(fp, " probe timer: %d\n", ifi->probetimer); in rtsold_dump() 84 ifi->active > 0 ? "active" : "inactive"); in rtsold_dump() 86 ifi->managedconfig ? "on" : "off"); in rtsold_dump() 88 ifi->otherconfig ? "on" : "off"); in rtsold_dump() 89 fprintf(fp, " rtsold status: %s\n", ifstatstr[ifi->state]); in rtsold_dump() [all …]
|
H A D | rtsol.c | 80 #define _ARGS_MANAGED managedconf_script, ifi->ifname, rasender 81 #define _ARGS_OTHER otherconf_script, ifi->ifname, rasender 82 #define _ARGS_ALWAYS alwaysconf_script, ifi->ifname, rasender 168 struct ifinfo *ifi = NULL; in rtsol_input() local 277 if ((ifi = find_ifinfo(pi->ipi6_ifindex)) == NULL) { in rtsol_input() 289 ifi->ifname, ifi->state); in rtsol_input() 302 !ifi->managedconfig) { in rtsol_input() 306 "ManagedConfigFlag on %s is turned on", ifi->ifname); in rtsol_input() 307 ifi->managedconfig = 1; in rtsol_input() 320 !ifi->otherconfig) { in rtsol_input() [all …]
|
H A D | rtsock.c | 143 struct ifinfo *ifi; in rtsock_input_ifannounce() local 163 ifi = find_ifinfo(ifan->ifan_index); in rtsock_input_ifannounce() 164 if (ifi) { in rtsock_input_ifannounce() 170 ifi->state = IFS_DOWN; in rtsock_input_ifannounce()
|
/freebsd/usr.sbin/rtadvd/ |
H A D | rtadvd.c | 369 struct ifinfo *ifi; in rtadvd_shutdown() local 378 TAILQ_FOREACH(ifi, &ifilist, ifi_next) { in rtadvd_shutdown() 382 if (!(ifi->ifi_flags & IFF_UP) && in rtadvd_shutdown() 383 ifi->ifi_ra_timer != NULL) { in rtadvd_shutdown() 384 ifi->ifi_state = IFI_STATE_UNCONFIGURED; in rtadvd_shutdown() 385 rtadvd_remove_timer(ifi->ifi_ra_timer); in rtadvd_shutdown() 386 ifi->ifi_ra_timer = NULL; in rtadvd_shutdown() 389 __func__, ifi->ifi_ifname, in rtadvd_shutdown() 390 ifi->ifi_ifindex); in rtadvd_shutdown() 393 TAILQ_FOREACH(ifi, in rtadvd_shutdown() 469 struct ifinfo *ifi; rtmsg_input() local 723 struct ifinfo *ifi; rtadvd_input() local 908 struct ifinfo *ifi; rs_input() local 992 set_short_delay(struct ifinfo * ifi) set_short_delay() argument 1037 struct ifinfo *ifi; check_accept_rtadv() local 1067 struct ifinfo *ifi; ra_input() local 1231 struct ifinfo *ifi; prefix_check() local 1629 struct ifinfo *ifi; if_indextoifinfo() local 1652 ra_output(struct ifinfo * ifi) ra_output() argument 1846 struct ifinfo *ifi; ra_timeout() local 1863 struct ifinfo *ifi; ra_timer_update() local [all...] |
H A D | config.c | 157 struct ifinfo *ifi; in loadconfig_ifname() local 162 TAILQ_FOREACH(ifi, &ifilist, ifi_next) { in loadconfig_ifname() 165 strcmp(ifi->ifi_ifname, ifname) != 0) in loadconfig_ifname() 168 if (!ifi->ifi_persist) { in loadconfig_ifname() 172 ifi->ifi_ifname); in loadconfig_ifname() 176 if (ifi->ifi_ifindex == 0) { in loadconfig_ifname() 180 ifi->ifi_ifname); in loadconfig_ifname() 183 if (getconfig(ifi) == NULL) { in loadconfig_ifname() 187 ifi->ifi_ifname); in loadconfig_ifname() 197 struct ifinfo *ifi; in rm_ifinfo_index() local 210 rm_ifinfo(struct ifinfo * ifi) rm_ifinfo() argument 335 getconfig(struct ifinfo * ifi) getconfig() argument 1033 struct ifinfo *ifi; get_prefix() local 1133 struct ifinfo *ifi; add_prefix() local 1166 struct ifinfo *ifi; delete_prefix() local 1188 struct ifinfo *ifi; invalidate_prefix() local 1230 struct ifinfo *ifi; update_prefix() local 1339 struct ifinfo *ifi; make_packet() local [all...] |
H A D | control_server.c | 97 DEF_PL_HANDLER(ifi), 131 struct ifinfo *ifi; in cm_getprop_ifilist() local 138 TAILQ_FOREACH(ifi, &ifilist, ifi_next) { in cm_getprop_ifilist() 139 len += strlen(ifi->ifi_ifname) + 1; in cm_getprop_ifilist() 151 TAILQ_FOREACH(ifi, &ifilist, ifi_next) { in cm_getprop_ifilist() 153 __func__, ifi->ifi_ifname, ifi->ifi_ifindex); in cm_getprop_ifilist() 154 strcpy(p, ifi->ifi_ifname); in cm_getprop_ifilist() 155 p += strlen(ifi->ifi_ifname) + 1; in cm_getprop_ifilist() 165 struct ifinfo *ifi; in cm_getprop_ifi() local 200 struct ifinfo *ifi; cm_getprop_rai() local 241 struct ifinfo *ifi; cm_getprop_ifi_ra_timer() local 287 struct ifinfo *ifi; cm_getprop_rti() local 336 struct ifinfo *ifi; cm_getprop_pfx() local 385 struct ifinfo *ifi; cm_getprop_rdnss() local 454 struct ifinfo *ifi; cm_getprop_dnssl() local 577 struct ifinfo *ifi; cm_setprop_enable() local 601 struct ifinfo *ifi; cm_setprop_disable() local [all...] |
H A D | if.c | 341 struct ifinfo *ifi; in update_persist_ifinfo() local 344 ifi = NULL; in update_persist_ifinfo() 346 TAILQ_FOREACH(ifi, ifi_head, ifi_next) { in update_persist_ifinfo() 348 if (ifindex == ifi->ifi_ifindex) in update_persist_ifinfo() 351 if (strncmp(ifname, ifi->ifi_ifname, in update_persist_ifinfo() 352 sizeof(ifi->ifi_ifname)) == 0) in update_persist_ifinfo() 357 if (ifi == NULL) { in update_persist_ifinfo() 362 ELM_MALLOC(ifi, exit(1)); in update_persist_ifinfo() 363 ifi->ifi_ifindex = 0; in update_persist_ifinfo() 364 strlcpy(ifi in update_persist_ifinfo() 380 update_ifinfo_nd_flags(struct ifinfo * ifi) update_ifinfo_nd_flags() argument 414 struct ifinfo *ifi = NULL; update_ifinfo() local [all...] |
H A D | timer.c | 72 struct ifinfo *ifi; in rtadvd_update_timeout_handler() local 74 TAILQ_FOREACH(ifi, &ifilist, ifi_next) { in rtadvd_update_timeout_handler() 75 switch (ifi->ifi_state) { in rtadvd_update_timeout_handler() 78 if (ifi->ifi_ra_timer != NULL) in rtadvd_update_timeout_handler() 82 __func__, ifi->ifi_ifname, ifi->ifi_ifindex); in rtadvd_update_timeout_handler() 83 ifi->ifi_ra_timer = rtadvd_add_timer(ra_timeout, in rtadvd_update_timeout_handler() 84 ra_timer_update, ifi, ifi); in rtadvd_update_timeout_handler() 85 ra_timer_update((void *)ifi, in rtadvd_update_timeout_handler() 86 &ifi->ifi_ra_timer->rat_tm); in rtadvd_update_timeout_handler() 87 rtadvd_set_timer(&ifi->ifi_ra_timer->rat_tm, in rtadvd_update_timeout_handler() [all …]
|
H A D | rrenum.c | 148 struct ifinfo *ifi; in do_use_prefix() local 214 ifi = if_indextoifinfo(ifindex); in do_use_prefix() 215 if (ifi == NULL || ifi->ifi_rainfo == NULL) in do_use_prefix() 217 rai = ifi->ifi_rainfo; in do_use_prefix() 261 struct ifinfo *ifi; in do_pco() local 282 ifi = if_indextoifinfo(ifindex); in do_pco() 283 if (ifi == NULL) { in do_pco() 293 (ifi->ifi_flags & IFF_UP) == 0) in do_pco()
|
/freebsd/usr.sbin/rtadvctl/ |
H A D | rtadvctl.c | 410 char argv_ifi[IFNAMSIZ + sizeof(":ifi=")]; in action_show() 421 struct ifinfo *ifi; in action_show() local 438 ifi = malloc(sizeof(*ifi)); in action_show() 439 if (ifi == NULL) in action_show() 441 memset(ifi, 0, sizeof(*ifi)); in action_show() 443 strcpy(ifi->ifi_ifname, p); in action_show() 444 ifi->ifi_ifindex = if_nametoindex(ifi in action_show() [all...] |
/freebsd/sys/contrib/device-tree/Bindings/net/can/ |
H A D | ifi_canfd.txt | 1 IFI CANFD controller 5 - compatible: Should be "ifi,canfd-1.0" 12 compatible = "ifi,canfd-1.0";
|
/freebsd/sbin/dhclient/ |
H A D | dhclient.c | 131 struct interface_info *ifi; variable 254 if (ifam->ifam_index != ifi->index) in routehandler() 271 for (l = ifi->client->active; l != NULL; l = l->next) in routehandler() 295 if (ifm->ifm_index != ifi->index) in routehandler() 299 ifi->name); in routehandler() 302 linkstat = interface_link_status(ifi->name); in routehandler() 303 if (linkstat != ifi->linkstat) { in routehandler() 304 debug("%s link state %s -> %s", ifi->name, in routehandler() 305 ifi->linkstat ? "up" : "down", in routehandler() 307 ifi->linkstat = linkstat; in routehandler() [all …]
|
H A D | clparse.c | 124 if (!ifi->client) { in read_client_conf() 125 ifi->client = malloc(sizeof(struct client_state)); in read_client_conf() 126 if (!ifi->client) in read_client_conf() 128 memset(ifi->client, 0, sizeof(*(ifi->client))); in read_client_conf() 130 if (!ifi->client->config) { in read_client_conf() 138 ifi->client->config = config; in read_client_conf() 442 if (!strcmp(ifi->name, name)) in interface_or_dummy() 443 return (ifi); in interface_or_dummy()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | vlan_full.c | 638 struct ifinfomsg *ifi; in vlan_read_ifnames() local 643 if (len < sizeof(*ifi)) in vlan_read_ifnames() 646 ifi = NLMSG_DATA(h); in vlan_read_ifnames() 654 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); in vlan_read_ifnames() 684 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, in vlan_read_ifnames() 685 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in vlan_read_ifnames() 686 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in vlan_read_ifnames() 687 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in vlan_read_ifnames() 688 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in vlan_read_ifnames()
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_macsec_linux.c | 62 int ifi; member 694 ctx->cb_arg.ifindex = drv->ifi; in do_dump() 768 msg = msg_prepare(MACSEC_CMD_UPD_RXSA, ctx, drv->ifi); in macsec_drv_set_receive_lowest_pn() 833 msg = msg_prepare(MACSEC_CMD_UPD_TXSA, ctx, drv->ifi); in macsec_drv_set_transmit_next_pn() 887 msg = msg_prepare(MACSEC_CMD_ADD_RXSC, ctx, drv->ifi); in macsec_drv_create_receive_sc() 923 msg = msg_prepare(MACSEC_CMD_DEL_RXSC, ctx, drv->ifi); in macsec_drv_delete_receive_sc() 969 msg = msg_prepare(MACSEC_CMD_ADD_RXSA, ctx, drv->ifi); in macsec_drv_create_receive_sa() 1020 msg = msg_prepare(MACSEC_CMD_DEL_RXSA, ctx, drv->ifi); in macsec_drv_delete_receive_sa() 1098 return set_active_rx_sa(ctx, drv->ifi, mka_sci_u64(&sa->sc->sci), in macsec_drv_enable_receive_sa() 1118 return set_active_rx_sa(ctx, drv->ifi, mka_sci_u64(&sa->sc->sci), in macsec_drv_disable_receive_sa() [all …]
|
H A D | netlink.h | 17 void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf, 19 void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
|
H A D | driver_wext.c | 623 static void wpa_driver_wext_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi, in wpa_driver_wext_event_rtm_newlink() argument 631 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, buf, len)) { in wpa_driver_wext_event_rtm_newlink() 633 ifi->ifi_index); in wpa_driver_wext_event_rtm_newlink() 639 drv->operstate, ifi->ifi_flags, in wpa_driver_wext_event_rtm_newlink() 640 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_wext_event_rtm_newlink() 641 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_wext_event_rtm_newlink() 642 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_wext_event_rtm_newlink() 643 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_wext_event_rtm_newlink() 645 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() 651 if (drv->if_disabled && (ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | InlineFunction.cpp | 1587 static void AddAlignmentAssumptions(CallBase &CB, InlineFunctionInfo &IFI) { in AddAlignmentAssumptions() argument 1588 if (!PreserveAlignmentAssumptions || !IFI.GetAssumptionCache) in AddAlignmentAssumptions() 1591 AssumptionCache *AC = &IFI.GetAssumptionCache(*CB.getCaller()); in AddAlignmentAssumptions() 1626 InlineFunctionInfo &IFI, in HandleByValArgumentInit() argument 1652 InlineFunctionInfo &IFI, in HandleByValArgument() argument 1668 IFI.GetAssumptionCache ? &IFI.GetAssumptionCache(*Caller) : nullptr; in HandleByValArgument() 1693 IFI.StaticAllocas.push_back(NewAlloca); in HandleByValArgument() 2139 llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI, in InlineFunction() argument 2150 // If IFI has any state in it, zap it before we fill it in. in InlineFunction() 2151 IFI.reset(); in InlineFunction() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | ModuleDepCollector.cpp | 602 [&](const serialization::InputFileInfo &IFI, bool IsSystem) { in handleTopLevelModule() argument 608 if (StringRef(IFI.Filename).ends_with("__inferred_module.map")) { in handleTopLevelModule() 612 MDC.addFileDep(MD, IFI.Filename); in handleTopLevelModule() 622 [&](const serialization::InputFileInfo &IFI, bool IsSystem) { in handleTopLevelModule() argument 623 if (!(IFI.TopLevel && IFI.ModuleMap)) in handleTopLevelModule() 625 if (StringRef(IFI.FilenameAsRequested) in handleTopLevelModule() 628 MD.ModuleMapFileDeps.emplace_back(IFI.FilenameAsRequested); in handleTopLevelModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ModuleInliner.cpp | 210 InlineFunctionInfo IFI( in run() local 216 InlineFunction(*CB, IFI, /*MergeAttributes=*/true, in run() 230 if (!IFI.InlinedCallSites.empty()) { in run() 234 for (CallBase *ICB : reverse(IFI.InlinedCallSites)) { in run()
|
H A D | AlwaysInliner.cpp | 64 InlineFunctionInfo IFI(GetAssumptionCache, &PSI, in AlwaysInlineImpl() local 68 InlineResult Res = InlineFunction(*CB, IFI, /*MergeAttributes=*/true, in AlwaysInlineImpl()
|
H A D | Inliner.cpp | 382 InlineFunctionInfo IFI( in run() local 388 InlineFunction(*CB, IFI, /*MergeAttributes=*/true, in run() 403 if (!IFI.InlinedCallSites.empty()) { in run() 407 for (CallBase *ICB : reverse(IFI.InlinedCallSites)) { in run()
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_io.c | 719 interface_info_t ifi; in interface_enumerate() local 721 ifi.action = IFS_EXISTS; in interface_enumerate() 722 for (ifi.ep = ep_list; ifi.ep != NULL; ifi.ep = ifi.ep->elink) in interface_enumerate() 723 (*receiver)(data, &ifi); in interface_enumerate() 1676 interface_info_t ifi; in update_interfaces() local 1881 ifi.action = IFS_EXISTS; in update_interfaces() 1882 ifi.ep = ep; in update_interfaces() 1884 (*receiver)(data, &ifi); in update_interfaces() 1911 ifi.action = IFS_CREATED; in update_interfaces() 1912 ifi.ep = ep; in update_interfaces() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_table_algo.c | 2077 struct ifidx *ifi; in ifidx_find() local 2079 ifi = bsearch(key, ti->state, ti->data, sizeof(struct ifidx), in ifidx_find() 2082 return (ifi); in ifidx_find() 2089 struct ifidx *ifi; in ta_lookup_ifidx() local 2091 ifi = ifidx_find(ti, key); in ta_lookup_ifidx() 2093 if (ifi != NULL) { in ta_lookup_ifidx() 2094 *val = ifi->value; in ta_lookup_ifidx() 2234 struct ifidx *ifi; in ta_add_ifidx() local 2260 ifi = ifidx_find(ti, &iif->ifindex); in ta_add_ifidx() 2261 ifi->value = ife->value; in ta_add_ifidx() [all …]
|