/freebsd/libexec/rc/ |
H A D | pccard_ether | 36 eval ifx_routes=\$static_routes_${ifn} 53 eval ifx_routes=\$static_routes_${ifn} 66 autoif $ifn || exit 0 72 ifexists $ifn || exit 1 76 if [ "${uif}" = "${ifn}" ]; then 83 /etc/rc.d/netif quietstart $ifn 87 if [ -n "`ifconfig_getargs $ifn`" ]; then 88 if ! dhcpif $ifn; then 98 if [ -n "`ifconfig_getargs $ifn`" ]; then 99 if ! dhcpif $ifn; then [all …]
|
H A D | network.subr | 34 # ifn_start ifn 40 local ifn cfg 41 ifn="$1" 44 [ -z "$ifn" ] && err 1 "ifn_start called without an interface" 46 ifscript_up ${ifn} && cfg=0 47 ifconfig_up ${ifn} && cfg=0 48 if ! noafif $ifn; then 49 afexists inet6 && ipv6_up ${ifn} && cfg=0 50 afexists inet && ipv4_up ${ifn} && cfg=0 52 childif_create ${ifn} && cfg=0 [all …]
|
/freebsd/libexec/rc/rc.d/ |
H A D | netif | 186 for ifn in $_cooked_list; do 187 case ${ifn#epair} in 192 $ifn) _tmp_list="$_tmp_list ${ifn}a ${ifn}b" ;; 193 *) _tmp_list="$_tmp_list ${ifn}" ;; 204 for ifn in ${_cooked_list# }; do 205 # Skip if ifn does not exist. 208 if ! ${IFCONFIG_CMD} $ifn > /dev/null 2>&1; then 209 warn "$ifn doe [all...] |
H A D | dhclient | 11 ifn="$2" 16 pidfile="/var/run/dhclient/${name}.${ifn}.pid" 24 if [ -z "${rc_force}" ] && ! dhcpif $ifn; then 26 msg="'$ifn' is not a DHCP-enabled interface" 41 specific=$(get_if_var $ifn dhclient_flags_IF) 46 background_dhclient=$(get_if_var $ifn background_dhclient_IF $background_dhclient) 51 dhclient_arpwait=$(get_if_var $ifn dhclient_arpwait_IF $dhclient_arpwait) 60 rc_flags="${rc_flags} ${ifn}" 69 if [ -z $ifn ] ; then
|
H A D | hostapd | 17 if [ -n "$ifn" ]; then 18 ifconfig ${ifn} down 20 ifconfig ${ifn} up 24 ifn="$2" 25 if [ -z "$ifn" ]; then 31 conf_file="/etc/${name}-${ifn}.conf" 32 pidfile="/var/run/${name}-${ifn}.pid"
|
H A D | wpa_supplicant | 16 ifn="$2" 17 if [ -z "$ifn" ]; then 21 if is_wired_interface ${ifn} ; then 31 pidfile="/var/run/${name}/${ifn}.pid" 32 command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile"
|
H A D | natd | 23 for ifn in ${dhcp_list}; do 25 ${ifn})
|
/freebsd/tests/sys/fs/tarfs/ |
H A D | tarsum.c | 36 tarsum(FILE *in, const char *ifn, FILE *out, const char *ofn) in tarsum() argument 56 err(1, "%s", ifn); in tarsum() 60 errx(1, "%s: Short read", ifn); in tarsum() 91 const char *ifn, *ofn = NULL; in main() local 110 ifn = "stdin"; in main() 113 ifn = *argv; in main() 114 if ((in = fopen(ifn, "rb")) == NULL) in main() 115 err(1, "%s", ifn); in main() 126 tarsum(in, ifn, out, ofn); in main()
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_hx.c | 56 hex_readip(mb_t *mb, char **ifn, int *dir) in hex_readip() argument 68 if (ifn) in hex_readip() 69 *ifn = NULL; in hex_readip() 95 if (ifn) in hex_readip() 96 *ifn = strdup(u); in hex_readip() 103 } else if (ifn) in hex_readip() 104 *ifn = t; in hex_readip()
|
H A D | ipft_tx.c | 112 text_readip(mb_t *mb, char **ifn, int *dir) in text_readip() argument 121 *ifn = NULL; in text_readip() 133 *ifn = NULL; in text_readip() 135 if (!parseline(line, (ip_t *)buf, ifn, dir)) { in text_readip() 156 parseline(char *line, ip_t *ip, char **ifn, int *out) in parseline() argument 163 if (*ifn) in parseline() 164 free(*ifn); in parseline() 187 return (parseipv6(cpp, (ip6_t *)ip, ifn, out)); in parseline() 200 *ifn = strdup(*cpp++); in parseline() 331 parseipv6(char **cpp, ip6_t *ip6, char **ifn, int *out) in parseipv6() argument [all …]
|
H A D | ipft_pc.c | 199 ipcap_readip(mb_t *mb, char **ifn, int *dir) in ipcap_readip() argument 210 ifn = ifn; /* gcc -Wextra */ in ipcap_readip()
|
/freebsd/sys/netinet/ |
H A D | sctp_bsd_addr.c | 144 sctp_is_desired_interface_type(struct ifnet *ifn) in sctp_is_desired_interface_type() argument 149 switch (ifn->if_type) { in sctp_is_desired_interface_type() 194 struct ifnet *ifn; in sctp_init_ifns_for_vrf() local 204 CK_STAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_link) { in sctp_init_ifns_for_vrf() 205 if (sctp_is_desired_interface_type(ifn) == 0) { in sctp_init_ifns_for_vrf() 209 CK_STAILQ_FOREACH(ifa, &ifn->if_addrhead, ifa_link) { in sctp_init_ifns_for_vrf() 249 (void *)ifn, in sctp_init_ifns_for_vrf() 250 ifn->if_index, in sctp_init_ifns_for_vrf() 251 ifn->if_type, in sctp_init_ifns_for_vrf() 252 ifn->if_xname, in sctp_init_ifns_for_vrf()
|
H A D | sctp_os_bsd.h | 201 #define SCTP_IFN_IS_IFT_LOOP(ifn) ((ifn)->ifn_type == IFT_LOOP) argument 305 #define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((ifn != NULL) ? ((struct ifnet *)ifn)->if_mt… argument
|
H A D | sctp_pcb.h | 484 struct sctp_ifn *sctp_find_ifn(void *ifn, uint32_t ifn_index); 492 void *ifn, uint32_t ifn_index, uint32_t ifn_type, 501 void *ifn, uint32_t ifn_index);
|
/freebsd/contrib/libpcap/ |
H A D | fad-glifc.c | 84 struct lifnum ifn; in pcapint_findalldevs_interfaces() local 120 ifn.lifn_family = AF_UNSPEC; in pcapint_findalldevs_interfaces() 121 ifn.lifn_flags = 0; in pcapint_findalldevs_interfaces() 122 ifn.lifn_count = 0; in pcapint_findalldevs_interfaces() 123 if (ioctl(fd4, SIOCGLIFNUM, (char *)&ifn) < 0) { in pcapint_findalldevs_interfaces() 134 buf_size = ifn.lifn_count * sizeof (struct lifreq); in pcapint_findalldevs_interfaces()
|
/freebsd/sbin/nvmecontrol/ |
H A D | passthru.c | 60 const char *ifn; member 81 .ifn = "", 126 ARG("input-file", 'i', arg_path, opt, ifn, 170 if (*opt.ifn && (ifd = open(opt.ifn, O_RDONLY)) == -1) { in passthru() 171 warn("open %s", opt.ifn); in passthru() 195 *opt.ifn ? opt.ifn : "stdin", in passthru()
|
/freebsd/sys/netpfil/pf/ |
H A D | if_pflog.c | 220 struct ifnet *ifn; in pflog_packet() local 226 ifn = V_pflogifs[rm->logif]; in pflog_packet() 227 if (ifn == NULL || !bpf_peers_present(ifn->if_bpf)) in pflog_packet() 274 if_inc_counter(ifn, IFCOUNTER_OPACKETS, 1); in pflog_packet() 275 if_inc_counter(ifn, IFCOUNTER_OBYTES, pd->m->m_pkthdr.len); in pflog_packet() 276 bpf_mtap2(ifn->if_bpf, &hdr, PFLOG_HDRLEN, pd->m); in pflog_packet()
|
/freebsd/sys/contrib/zstd/examples/ |
H A D | multiple_streaming_compression.c | 113 const char* const ifn = argv[argNb]; in main() local 114 size_t const ifnSize = strlen(ifn); in main() 122 strcat(ofnBuffer, ifn); in main() 124 compressFile_orDie(ress, ifn, ofnBuffer); in main()
|
/freebsd/usr.bin/uniq/ |
H A D | uniq.c | 87 const char *errstr, *ifn, *ofn; in main() local 143 ifn = "stdin"; in main() 147 ifp = file(ifn = argv[0], "r"); in main() 150 err(1, "unable to limit rights for %s", ifn); in main() 180 err(1, "%s", ifn); in main() 237 err(1, "%s", ifn); in main()
|
/freebsd/sbin/ifconfig/ |
H A D | ifbridge.c | 544 setbridge_ifpriority(if_ctx *ctx, const char *ifn, const char *pri) in setbridge_ifpriority() argument 554 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifpriority() 562 setbridge_ifpathcost(if_ctx *ctx, const char *ifn, const char *cost) in setbridge_ifpathcost() argument 572 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifpathcost() 580 setbridge_ifmaxaddr(if_ctx *ctx, const char *ifn, const char *arg) in setbridge_ifmaxaddr() argument 590 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifmaxaddr()
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 139 create_elf_from_binary(struct elfcopy *ecp, int ifd, const char *ifn) in create_elf_from_binary() argument 219 if ((sym_basename = strdup(ifn)) == NULL) in create_elf_from_binary()
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | directive-if.mk | 108 .ifn 0
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | c-lang | 26 >0 regex \^#[[:space:]]*(if\|ifn)def 30 >0 regex \^#[[:space:]]*(if\|ifn)def
|
/freebsd/sbin/ipfw/ |
H A D | nat.c | 81 set_addr_dynamic(const char *ifn, struct nat44_cfg_nat *n) in set_addr_dynamic() argument 126 if (strlen(ifn) == sdl->sdl_nlen && in set_addr_dynamic() 127 strncmp(ifn, sdl->sdl_data, sdl->sdl_nlen) == 0) { in set_addr_dynamic() 134 errx(1, "unknown interface name %s", ifn); in set_addr_dynamic() 168 strncpy(n->if_name, ifn, IF_NAMESIZE); in set_addr_dynamic()
|
/freebsd/contrib/unifdef/ |
H A D | unifdef.c | 396 processinout(const char *ifn, const char *ofn) in processinout() argument 400 if (ifn == NULL || strcmp(ifn, "-") == 0) { in processinout() 405 filename = ifn; in processinout() 406 linefile = ifn; in processinout() 407 input = fopen(ifn, "rb"); in processinout() 409 err(2, "can't open %s", ifn); in processinout()
|