Searched defs:ifname (Results 1 - 25 of 209) sorted by relevance

123456789

/freebsd-head/tools/tools/ath/common/
H A Dctrl.h43 char *ifname; member in struct:ath_driver_req
47 extern int ath_driver_req_open(struct ath_driver_req *req, const char *ifname);
H A Dctrl.c88 ath_driver_req_open(struct ath_driver_req *req, const char *ifname) argument
101 req->ifname = strdup(ifname);
116 free(req->ifname);
118 req->ifname = NULL;
148 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name));
169 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name));
191 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name));
/freebsd-head/contrib/ipfilter/lib/
H A Dgetifname.c29 char *ifname; variable
39 ifname = strdup(qif.qf_name);
40 if ((ifname != NULL) && (*ifname == '\0')) {
41 free(ifname); variable
44 return ifname;
/freebsd-head/share/examples/libifconfig/
H A Difdestroy.c42 char *ifname; local
52 ifname = strdup(argv[1]);
54 printf("Interface name: %s\n", ifname);
62 if (ifconfig_destroy_interface(lifh, ifname) == 0) {
63 printf("Successfully destroyed interface '%s'.", ifname);
66 free(ifname);
88 free(ifname);
H A Difcreate.c42 char *ifname, *ifactualname; local
52 ifname = strdup(argv[1]);
54 printf("Requested interface name: %s\n", ifname);
62 if (ifconfig_create_interface(lifh, ifname, &ifactualname) == 0) {
66 free(ifname);
93 free(ifname);
H A Dsetdescription.c43 char *ifname, *ifdescr, *curdescr; local
53 ifname = strdup(argv[1]);
57 printf("Interface name: %s\n", ifname);
65 if (ifconfig_get_description(lifh, ifname, &curdescr) == 0) {
71 if (ifconfig_set_description(lifh, ifname, ifdescr) == 0) {
89 free(ifname);
92 ifname = NULL;
H A Dsetmtu.c43 char *ifname, *ptr; local
54 ifname = strdup(argv[1]);
57 printf("Interface name: %s\n", ifname);
66 if (ifconfig_set_mtu(lifh, ifname, mtu) == 0) {
67 printf("Successfully changed MTU of %s to %d\n", ifname, mtu);
70 free(ifname);
96 free(ifname);
H A Difchangevlan.c44 char *ifname, *parentif; local
56 ifname = strdup(argv[1]);
64 printf("Interface: %s\nNew VLAN tag: %i\n", ifname, vlantag);
72 if (ifconfig_set_vlantag(lifh, ifname, parentif, vlantag) == 0) {
76 free(ifname);
106 free(ifname);
/freebsd-head/lib/libc/net/
H A Dif_indextoname.c50 * char *if_indextoname(unsigned int ifindex, char *ifname);
52 * The ifname argument must point to a buffer of at least IF_NAMESIZE
64 if_indextoname(unsigned int ifindex, char *ifname) argument
81 ifname = NULL;
84 strncpy(ifname, ifa->ifa_name, IFNAMSIZ);
89 return(ifname);
H A Dif_nametoindex.c57 * unsigned int if_nametoindex(const char *ifname);
66 if_nametoindex(const char *ifname) argument
76 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
92 strcmp(ifa->ifa_name, ifname) == 0) {
/freebsd-head/contrib/wpa/src/ap/
H A Dvlan_ifconfig.c66 int iface_exists(const char *ifname) argument
68 return if_nametoindex(ifname);
H A Dvlan_init.c32 vlan->ifname);
36 if (!iface_exists(vlan->ifname))
37 ret = hostapd_vlan_if_add(hapd, vlan->ifname);
46 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */
57 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname);
60 if (hostapd_vlan_if_remove(hapd, vlan->ifname))
61 wpa_printf(MSG_ERROR, "Removal of %s failed", vlan->ifname);
77 return hostapd_vlan_if_remove(hapd, vlan->ifname);
89 vlan->ifname, strerror(errno));
93 vlan_newlink(vlan->ifname, hap
189 char ifname[IFNAMSIZ + 1], *pos; local
[all...]
/freebsd-head/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c72 char ifname[IFNAMSIZ]; local
77 netcfg_rump_makeshmif("bus1", ifname);
78 netcfg_rump_if(ifname, "1.0.0.1", "255.255.255.0");
107 char ifname[IFNAMSIZ]; local
115 netcfg_rump_makeshmif("bus1", ifname);
116 netcfg_rump_if(ifname, "1.0.0.2", "255.255.255.0");
/freebsd-head/usr.bin/netstat/
H A Dbpf.c110 bpf_stats(char *ifname) argument
152 if (ifname && strcmp(ifname, d->bd_ifname) != 0)
/freebsd-head/contrib/wpa/wpa_supplicant/binder/
H A Dsupplicant.cpp21 android::String16 driver, ifname, confname, bridge_ifname; local
24 if (!params.getString(android::String16("Ifname"), &ifname))
38 wpa_global_, android::String8(ifname).string()) != NULL)
50 iface.ifname = os_strdup(android::String8(ifname).string());
78 os_free((void *)iface.ifname);
84 android::binder::Status Supplicant::RemoveInterface(const std::string &ifname) argument
88 wpa_s = wpa_supplicant_get_iface(wpa_global_, ifname.c_str());
103 const std::string &ifname,
108 wpa_s = wpa_supplicant_get_iface(wpa_global_, ifname
102 GetInterface( const std::string &ifname, android::sp<fi::w1::wpa_supplicant::IIface> *aidl_return) argument
[all...]
/freebsd-head/contrib/wpa/src/drivers/
H A Ddriver_wired_common.h14 char ifname[IFNAMSIZ + 1]; member in struct:driver_wired_common_data
31 const char *ifname, void *ctx);
/freebsd-head/tools/tools/ath/ath_prom_read/
H A Dath_prom_read.c56 fprintf(stderr, " %s [-i ifname] -d <dumpfile>\n", progname);
87 const char *ifname; local
94 ifname = getenv("ATH");
95 if (!ifname)
96 ifname = ATH_DEFAULT;
105 ifname = optarg;
119 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
/freebsd-head/tools/tools/npe/npestats/
H A Dmain.c74 const char *ifname; local
77 ifname = getenv("NPE");
78 if (ifname == NULL)
79 ifname = "npe0";
80 wf = npestats_new(ifname, getfmt("default"));
96 errx(-1, "usage: %s [-a] [-i ifname] [-l] [-o fmt] [interval]\n", argv[0]);
/freebsd-head/tools/tools/ath/athaggrstats/
H A Dmain.c87 const char *ifname; local
90 ifname = getenv("ATH");
91 if (ifname == NULL)
92 ifname = ATH_DEFAULT;
93 wf = athaggrstats_new(ifname, getfmt("default"));
112 errx(-1, "usage: %s [-a] [-i ifname] [-l] [-o fmt] [-z] [interval]\n", argv[0]);
/freebsd-head/tools/tools/ath/athstats/
H A Dmain.c92 const char *ifname; local
95 ifname = getenv("ATH");
96 if (ifname == NULL)
97 ifname = ATH_DEFAULT;
98 wf = athstats_new(ifname, getfmt("default"));
117 errx(-1, "usage: %s [-a] [-i ifname] [-l] [-o fmt] [-z] [interval]\n", argv[0]);
/freebsd-head/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Drumpnfsd.c63 char ifname[IFNAMSIZ], ifname_ro[IFNAMSIZ]; local
133 netcfg_rump_makeshmif(ethername, ifname);
134 netcfg_rump_if(ifname, serveraddr, netmask);
/freebsd-head/stand/libsa/
H A Dglobals.c29 char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */ variable
/freebsd-head/contrib/wpa/src/fst/
H A Dfst_iface.c15 struct fst_iface * fst_iface_create(struct fst_group *g, const char *ifname, argument
25 ifname);
32 os_strlcpy(i->ifname, ifname, sizeof(i->ifname));
/freebsd-head/usr.sbin/rtsold/
H A Dcap_llflags.c63 llflags_get(const char *ifname, int *flagsp) argument
78 if (strcmp(ifa->ifa_name, ifname) != 0)
88 if (strlcpy(ifr6.ifr_name, ifname, sizeof(ifr6.ifr_name)) >=
114 cap_llflags_get(cap_channel_t *cap, const char *ifname, int *flagsp) argument
122 nvlist_add_string(nvl, "ifname", ifname);
135 return (llflags_get(ifname, flagsp));
144 const char *ifname; local
149 ifname = nvlist_get_string(nvlin, "ifname");
[all...]
/freebsd-head/tools/regression/netinet/msocket_ifnet_remove/
H A Dmsocket_ifnet_remove.c131 ifconfig_inet(char *ifname, int ifunit, char *ip, char *netmask) argument
144 snprintf(ifra.ifra_name, sizeof(ifra.ifra_name), "%s%d", ifname,
158 warn("ifconfig_inet: ioctl(%s%d, SIOCAIFADDR, %s)", ifname,

Completed in 329 milliseconds

123456789