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

1234567891011>>

/external/ltp/testcases/network/stress/ns-tools/
H A Dinitialize_if70 ifname=`get_ifname $host_type $link_num` || exit 1
73 command="ifconfig $ifname down mtu 1500 ; ip route flush dev $ifname ; ip addr flush dev $ifname ; ifconfig $ifname up"
76 ( ifconfig $ifname down && \
77 ip link set mtu 1500 dev $ifname && \
78 ip route flush dev $ifname && \
79 ip addr flush dev $ifname && \
80 ifconfig $ifname u
[all...]
H A Dadd_ipv6addr81 ifname=`get_ifname $host_type $link_num` || exit 1
84 ifconfig ${ifname} up ; ifconfig ${ifname} add ${addr}/${netmask}
87 ret=`$LTP_RSH $RHOST '( PATH=/sbin:/usr/sbin:$PATH ; ifconfig '${ifname}' up && ifconfig '${ifname}' add '${addr}/${netmask}' ) >/dev/null 2>&1; echo $?'`
91 echo "Cannot assign $addr to $ifname" >&2
H A Dset_ipv4addr82 ifname=`get_ifname $host_type $link_num` || exit 1
85 ifconfig $ifname up
86 ifconfig $ifname $addr netmask $netmask broadcast $broadcast
89 ret=`$LTP_RSH $RHOST '( PATH=/sbin:/usr/sbin:$PATH ; ifconfig '$ifname' up && ifconfig '$ifname $addr' netmask '$netmask' broadcast '$broadcast' ) >/dev/null 2>&1; echo $?'`
93 echo "Cannot set $addr to $ifname" >&2
/external/android-clat/
H A Dmtu.h22 int getifmtu(const char *ifname);
H A Dsetif.h21 int add_address(const char *ifname, int family, const void *address, int cidr, const void *broadcast);
22 int if_up(const char *ifname, int mtu);
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
20 int linux_br_get(char *brname, const char *ifname);
21 int linux_master_get(char *master_ifname, const char *ifname);
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...]
/external/wpa_supplicant_8/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
20 int linux_br_get(char *brname, const char *ifname);
21 int linux_master_get(char *master_ifname, const char *ifname);
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
20 int linux_br_get(char *brname, const char *ifname);
21 int linux_master_get(char *master_ifname, const char *ifname);
/external/compiler-rt/test/msan/
H A Dif_indextoname.cc14 char ifname[IF_NAMESIZE + 1]; local
15 assert(0 == __msan_test_shadow(ifname, sizeof(ifname)));
16 if (!if_indextoname(1, ifname)) {
21 assert(strlen(ifname) + 1 <= __msan_test_shadow(ifname, sizeof(ifname)));
/external/wpa_supplicant_8/hostapd/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...]
/external/wpa_supplicant_8/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...]
/external/wpa_supplicant_8/wpa_supplicant/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...]
/external/wpa_supplicant_8/hostapd/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);
/external/wpa_supplicant_8/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);
/external/wpa_supplicant_8/wpa_supplicant/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);
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/
H A Dhidl_manager.cpp44 * Creates a unique key for the network using the provided |ifname| and
46 * This is of the form |ifname|_|network_id|. For ex: "wlan0_1".
48 * @param ifname Name of the corresponding interface.
52 const std::string &ifname, int network_id)
54 return ifname + "_" + std::to_string(network_id);
123 const std::string &ifname, const android::sp<CallbackType> &callback,
129 if (ifname.empty())
132 auto iface_callback_map_iter = callbacks_map.find(ifname);
144 const std::string &ifname, int network_id,
151 if (ifname
51 getNetworkObjectMapKey( const std::string &ifname, int network_id) argument
122 addIfaceCallbackHidlObjectToMap( const std::string &ifname, const android::sp<CallbackType> &callback, const std::function<void(const android::sp<CallbackType> &)> &on_hidl_died_fctor, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
143 addNetworkCallbackHidlObjectToMap( const std::string &ifname, int network_id, const android::sp<CallbackType> &callback, const std::function<void(const android::sp<CallbackType> &)> &on_hidl_died_fctor, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
168 removeAllIfaceCallbackHidlObjectsFromMap( const std::string &ifname, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
221 removeIfaceCallbackHidlObjectFromMap( const std::string &ifname, const android::sp<CallbackType> &callback, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
242 removeNetworkCallbackHidlObjectFromMap( const std::string &ifname, int network_id, const android::sp<CallbackType> &callback, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
268 callWithEachIfaceCallback( const std::string &ifname, const std::function< android::hardware::Return<void>(android::sp<CallbackType>)> &method, const std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
291 callWithEachIfaceCallback_1_1( const std::string &ifname, const std::function< android::hardware::Return<void>(android::sp<CallbackTypeV1_1>)> &method, const std::map<const std::string, std::vector<android::sp<CallbackTypeV1_0>>> &callbacks_map) argument
319 callWithEachNetworkCallback( const std::string &ifname, int network_id, const std::function< android::hardware::Return<void>(android::sp<CallbackType>)> &method, const std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
1450 getP2pIfaceHidlObjectByIfname( const std::string &ifname, android::sp<ISupplicantP2pIface> *iface_object) argument
1473 getStaIfaceHidlObjectByIfname( const std::string &ifname, android::sp<ISupplicantStaIface> *iface_object) argument
1497 getP2pNetworkHidlObjectByIfnameAndNetworkId( const std::string &ifname, int network_id, android::sp<ISupplicantP2pNetwork> *network_object) argument
1526 getStaNetworkHidlObjectByIfnameAndNetworkId( const std::string &ifname, int network_id, android::sp<ISupplicantStaNetwork> *network_object) argument
1574 addP2pIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantP2pIfaceCallback> &callback) argument
1596 addStaIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantStaIfaceCallback> &callback) argument
1619 addP2pNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantP2pNetworkCallback> &callback) argument
1643 addStaNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantStaNetworkCallback> &callback) argument
1680 removeP2pIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantP2pIfaceCallback> &callback) argument
1695 removeStaIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantStaIfaceCallback> &callback) argument
1711 removeP2pNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantP2pNetworkCallback> &callback) argument
1727 removeStaNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantStaNetworkCallback> &callback) argument
1761 callWithEachP2pIfaceCallback( const std::string &ifname, const std::function<Return<void>(android::sp<ISupplicantP2pIfaceCallback>)> &method) argument
1778 callWithEachStaIfaceCallback_1_1( const std::string &ifname, const std::function<Return<void> (android::sp<V1_1::ISupplicantStaIfaceCallback>)> &method) argument
1795 callWithEachStaIfaceCallback( const std::string &ifname, const std::function<Return<void>(android::sp<ISupplicantStaIfaceCallback>)> &method) argument
1813 callWithEachP2pNetworkCallback( const std::string &ifname, int network_id, const std::function< Return<void>(android::sp<ISupplicantP2pNetworkCallback>)> &method) argument
1832 callWithEachStaNetworkCallback( const std::string &ifname, int network_id, const std::function< Return<void>(android::sp<ISupplicantStaNetworkCallback>)> &method) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/
H A Dhidl_manager.cpp44 * Creates a unique key for the network using the provided |ifname| and
46 * This is of the form |ifname|_|network_id|. For ex: "wlan0_1".
48 * @param ifname Name of the corresponding interface.
52 const std::string &ifname, int network_id)
54 return ifname + "_" + std::to_string(network_id);
123 const std::string &ifname, const android::sp<CallbackType> &callback,
129 if (ifname.empty())
132 auto iface_callback_map_iter = callbacks_map.find(ifname);
144 const std::string &ifname, int network_id,
151 if (ifname
51 getNetworkObjectMapKey( const std::string &ifname, int network_id) argument
122 addIfaceCallbackHidlObjectToMap( const std::string &ifname, const android::sp<CallbackType> &callback, const std::function<void(const android::sp<CallbackType> &)> &on_hidl_died_fctor, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
143 addNetworkCallbackHidlObjectToMap( const std::string &ifname, int network_id, const android::sp<CallbackType> &callback, const std::function<void(const android::sp<CallbackType> &)> &on_hidl_died_fctor, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
168 removeAllIfaceCallbackHidlObjectsFromMap( const std::string &ifname, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
221 removeIfaceCallbackHidlObjectFromMap( const std::string &ifname, const android::sp<CallbackType> &callback, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
242 removeNetworkCallbackHidlObjectFromMap( const std::string &ifname, int network_id, const android::sp<CallbackType> &callback, std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
268 callWithEachIfaceCallback( const std::string &ifname, const std::function< android::hardware::Return<void>(android::sp<CallbackType>)> &method, const std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
291 callWithEachNetworkCallback( const std::string &ifname, int network_id, const std::function< android::hardware::Return<void>(android::sp<CallbackType>)> &method, const std::map<const std::string, std::vector<android::sp<CallbackType>>> &callbacks_map) argument
1399 getP2pIfaceHidlObjectByIfname( const std::string &ifname, android::sp<ISupplicantP2pIface> *iface_object) argument
1422 getStaIfaceHidlObjectByIfname( const std::string &ifname, android::sp<ISupplicantStaIface> *iface_object) argument
1446 getP2pNetworkHidlObjectByIfnameAndNetworkId( const std::string &ifname, int network_id, android::sp<ISupplicantP2pNetwork> *network_object) argument
1475 getStaNetworkHidlObjectByIfnameAndNetworkId( const std::string &ifname, int network_id, android::sp<ISupplicantStaNetwork> *network_object) argument
1523 addP2pIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantP2pIfaceCallback> &callback) argument
1545 addStaIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantStaIfaceCallback> &callback) argument
1568 addP2pNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantP2pNetworkCallback> &callback) argument
1592 addStaNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantStaNetworkCallback> &callback) argument
1629 removeP2pIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantP2pIfaceCallback> &callback) argument
1644 removeStaIfaceCallbackHidlObject( const std::string &ifname, const android::sp<ISupplicantStaIfaceCallback> &callback) argument
1660 removeP2pNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantP2pNetworkCallback> &callback) argument
1676 removeStaNetworkCallbackHidlObject( const std::string &ifname, int network_id, const android::sp<ISupplicantStaNetworkCallback> &callback) argument
1710 callWithEachP2pIfaceCallback( const std::string &ifname, const std::function<Return<void>(android::sp<ISupplicantP2pIfaceCallback>)> &method) argument
1727 callWithEachStaIfaceCallback( const std::string &ifname, const std::function<Return<void>(android::sp<ISupplicantStaIfaceCallback>)> &method) argument
1745 callWithEachP2pNetworkCallback( const std::string &ifname, int network_id, const std::function< Return<void>(android::sp<ISupplicantP2pNetworkCallback>)> &method) argument
1764 callWithEachStaNetworkCallback( const std::string &ifname, int network_id, const std::function< Return<void>(android::sp<ISupplicantStaNetworkCallback>)> &method) argument
[all...]
/external/wpa_supplicant_8/hostapd/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);
/external/wpa_supplicant_8/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);
/external/wpa_supplicant_8/wpa_supplicant/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);
/external/dhcpcd-6.8.2/
H A Dif-linux-wext.c62 int if_getssid_wext(const char *ifname, uint8_t *ssid);
65 if_getssid_wext(const char *ifname, uint8_t *ssid) argument
74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name));
87 ifname = ssid;

Completed in 482 milliseconds

1234567891011>>