Searched refs:ifname (Results 1 - 25 of 310) sorted by relevance

1234567891011>>

/freebsd-head/libexec/bootpd/
H A Dgetether.h4 extern int getether(char *ifname, char *eaptr);
/freebsd-head/tools/tools/npe/npestats/
H A Dnpestats.h46 void (*setifname)(struct npestatfoo *, const char *ifname);
49 struct npestatfoo *npestats_new(const char *ifname, const char *fmtstring);
/freebsd-head/contrib/wpa/src/common/
H A Dwpa_helpers.h13 int wpa_command(const char *ifname, const char *cmd);
14 int wpa_command_resp(const char *ifname, const char *cmd,
16 int get_wpa_status(const char *ifname, const char *field, char *obuf,
19 struct wpa_ctrl * open_wpa_mon(const char *ifname);
20 int wait_ip_addr(const char *ifname, int timeout);
27 int add_network(const char *ifname);
28 int set_network(const char *ifname, int id, const char *field,
30 int set_network_quoted(const char *ifname, int id, const char *field,
32 int add_cred(const char *ifname);
33 int set_cred(const char *ifname, in
[all...]
H A Dwpa_helpers.c22 static struct wpa_ctrl * wpa_open_ctrl(const char *ifname) argument
27 os_snprintf(buf, sizeof(buf), "%s%s", wpas_ctrl_path, ifname);
35 int wpa_command(const char *ifname, const char *cmd) argument
41 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd);
42 ctrl = wpa_open_ctrl(ifname);
61 int wpa_command_resp(const char *ifname, const char *cmd, argument
67 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd);
68 ctrl = wpa_open_ctrl(ifname);
83 open_wpa_mon(const char *ifname) argument
163 get_wpa_status(const char *ifname, const char *field, char *obuf, size_t obuf_size) argument
212 wait_ip_addr(const char *ifname, int timeout) argument
240 add_network(const char *ifname) argument
250 set_network(const char *ifname, int id, const char *field, const char *value) argument
259 set_network_quoted(const char *ifname, int id, const char *field, const char *value) argument
269 add_cred(const char *ifname) argument
279 set_cred(const char *ifname, int id, const char *field, const char *value) argument
287 set_cred_quoted(const char *ifname, int id, const char *field, const char *value) argument
[all...]
/freebsd-head/tests/sys/netinet6/frag6/
H A Dfrag6_18.sh33 local jname ifname
35 ifname=$2
40 case "${ifname}" in
41 "") echo "ERROR: ifname is empty"; return ;;
45 ifconfig ${ifname} -vnet ${jname}
/freebsd-head/tools/tools/ath/athaggrstats/
H A Dathaggrstats.h46 void (*setifname)(struct athaggrstatfoo *, const char *ifname);
53 struct athaggrstatfoo *athaggrstats_new(const char *ifname,
/freebsd-head/tools/tools/mwl/mwlstats/
H A Dmwlstats.h46 void (*setifname)(struct mwlstatfoo *, const char *ifname);
51 struct mwlstatfoo *mwlstats_new(const char *ifname, const char *fmtstring);
/freebsd-head/contrib/ipfilter/lib/
H A Dprintactiveaddr.c18 printactiveaddress(v, fmt, addr, ifname)
20 char *fmt, *ifname;
30 printaddr(AF_INET6, FRI_NORMAL, ifname, 0,
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 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 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 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/contrib/wpa/src/ap/
H A Dvlan_util.h22 int iface_exists(const char *ifname);
28 void vlan_newlink(const char *ifname, struct hostapd_data *hapd);
29 void vlan_dellink(const char *ifname, struct hostapd_data *hapd);
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/tools/tools/ath/athstats/
H A Dathstats.h46 void (*setifname)(struct athstatfoo *, const char *ifname);
53 struct athstatfoo *athstats_new(const char *ifname, const char *fmtstring);
/freebsd-head/tools/tools/net80211/wlanstats/
H A Dwlanstats.h46 void (*setifname)(struct wlanstatfoo *, const char *ifname);
55 struct wlanstatfoo *wlanstats_new(const char *ifname, const char *fmtstring);
/freebsd-head/tools/tools/net80211/wlanwds/
H A Dwlanwds.c80 char ifname[IFNAMSIZ]; /* vap interface name */ member in struct:wds
92 static void wds_discovery(const char *ifname,
94 static void wds_destroy(const char *ifname);
96 static int wds_vap_create(const char *ifname, uint8_t macaddr[ETHER_ADDR_LEN],
98 static int wds_vap_destroy(const char *ifname);
190 getparent(const char *ifname, char parent[IFNAMSIZ+1]) argument
196 snprintf(oid, sizeof(oid), "net.wlan.%s.%%parent", ifname+4);
215 checkifnet(const char *ifname, int complain) argument
220 if (getparent(ifname, parent) < 0) {
223 "%s: no pointer to parent interface: %m", ifname);
239 iswdsvap(int s, const char *ifname) argument
255 getbssid(int s, const char *ifname, uint8_t bssid[IEEE80211_ADDR_LEN]) argument
278 getlladdr(const char *ifname, uint8_t macaddr[ETHER_ADDR_LEN]) argument
340 char ifname[IFNAMSIZ+1]; local
445 wds_discovery(const char *ifname, const uint8_t bssid[IEEE80211_ADDR_LEN]) argument
504 wds_destroy(const char *ifname) argument
593 wds_vap_destroy(const char *ifname) argument
[all...]
/freebsd-head/contrib/wpa/src/fst/
H A Dfst_ctrl_iface.h40 int fst_parse_attach_command(const char *cmd, char *ifname, size_t ifname_size,
42 int fst_parse_detach_command(const char *cmd, char *ifname, size_t ifname_size);
43 int fst_iface_detach(const char *ifname);
/freebsd-head/contrib/wpa/src/drivers/
H A Ddriver_wired_common.c33 static int driver_wired_get_ifflags(const char *ifname, int *flags) argument
45 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
58 static int driver_wired_set_ifflags(const char *ifname, int flags) argument
70 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
83 static int driver_wired_multi(const char *ifname, const u8 *addr, int add) argument
99 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
191 static int driver_wired_get_ifstatus(const char *ifname, int *status) argument
203 os_strlcpy(ifmr.ifm_name, ifname, IFNAMSIZ);
220 const char *ifname, void *ctx)
224 os_strlcpy(common->ifname, ifnam
219 driver_wired_init_common(struct driver_wired_common_data *common, const char *ifname, void *ctx) argument
[all...]
H A Ddriver_openbsd.c21 char ifname[IFNAMSIZ + 1]; member in struct:openbsd_driver_data
36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name));
72 wpa_driver_openbsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, argument
83 os_strlcpy(keyavail.i_name, drv->ifname, sizeof(keyavail.i_name));
95 wpa_driver_openbsd_init(void *ctx, const char *ifname) argument
108 os_strlcpy(drv->ifname, ifname, sizeof(drv->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);
/freebsd-head/contrib/wpa/wpa_supplicant/binder/fi/w1/wpa_supplicant/
H A DISupplicant.aidl46 * @param ifname Name of the network interface, e.g., wlan0
48 void RemoveInterface(in @utf8InCpp String ifname);
51 * Gets a binder object for the interface corresponding to ifname
54 * @param ifname Name of the network interface, e.g., wlan0
58 IIface GetInterface(in @utf8InCpp String ifname);
/freebsd-head/usr.sbin/rtsold/
H A Dcap_llflags.c64 llflags_get(const char *ifname, int *flagsp) argument
79 if (strcmp(ifa->ifa_name, ifname) != 0)
89 if (strlcpy(ifr6.ifr_name, ifname, sizeof(ifr6.ifr_name)) >=
115 cap_llflags_get(cap_channel_t *cap, const char *ifname, int *flagsp) argument
123 nvlist_add_string(nvl, "ifname", ifname);
136 return (llflags_get(ifname, flagsp));
145 const char *ifname; local
150 ifname = nvlist_get_string(nvlin, "ifname");
[all...]

Completed in 416 milliseconds

1234567891011>>