Searched defs:link_cache (Results 1 - 25 of 58) sorted by relevance

123

/external/libnl/src/
H A Dnl-link-name2ifindex.c24 struct nl_cache *link_cache; local
32 link_cache = nl_cli_link_alloc_cache(sock);
34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1])))
H A Dnl-link-release.c19 struct nl_cache *link_cache; local
30 link_cache = nl_cli_link_alloc_cache(sock);
32 if (!(slave = rtnl_link_get_by_name(link_cache, argv[1]))) {
H A Dnl-link-enslave.c19 struct nl_cache *link_cache; local
30 link_cache = nl_cli_link_alloc_cache(sock);
32 if (!(master = rtnl_link_get_by_name(link_cache, argv[1]))) {
37 if (!(slave = rtnl_link_get_by_name(link_cache, argv[2]))) {
H A Dnl-link-ifindex2name.c24 struct nl_cache *link_cache; local
33 link_cache = nl_cli_link_alloc_cache(sock);
37 if (!rtnl_link_i2name(link_cache, ifindex, name, sizeof(name)))
H A Dnl-neigh-list.c40 struct nl_cache *link_cache, *neigh_cache; local
48 link_cache = nl_cli_link_alloc_cache(sock);
80 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break;
H A Dnl-neightbl-list.c31 struct nl_cache *link_cache, *neightbl_cache; local
39 link_cache = nl_cli_link_alloc_cache(sock);
H A Dnl-rule-list.c37 struct nl_cache *link_cache, *rule_cache; local
45 link_cache = nl_cli_link_alloc_cache(sock);
H A Dnl-link-list.c39 struct nl_cache *link_cache; local
92 link_cache = nl_cli_link_alloc_cache_family(sock,
95 nl_cache_dump_filter(link_cache, &params, OBJ_CAST(link));
H A Dnl-link-stats.c82 struct nl_cache *link_cache; local
87 link_cache = nl_cli_link_alloc_cache(sock);
115 nl_cache_foreach_filter(link_cache, OBJ_CAST(link), dump_stats, argv);
H A Dnl-monitor.c38 struct nl_cache *link_cache; local
95 link_cache = nl_cli_link_alloc_cache(sock);
H A Dnl-neigh-add.c48 struct nl_cache *link_cache; local
57 link_cache = nl_cli_link_alloc_cache(sock);
92 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break;
H A Dnl-route-get.c46 struct nl_cache *link_cache, *route_cache; local
55 link_cache = nl_cli_link_alloc_cache(sock);
H A Dnf-log.c55 struct nl_cache *link_cache; local
119 link_cache = nl_cli_link_alloc_cache(rt_sock);
H A Dnf-queue.c63 struct nl_cache *link_cache; local
119 link_cache = nl_cli_link_alloc_cache(rt_sock);
/external/libnl/tests/
H A Dtest-create-ip6tnl.c6 struct nl_cache *link_cache; local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
24 if_index = rtnl_link_name2i(link_cache, "ens33");
H A Dtest-create-ipgre.c6 struct nl_cache *link_cache; local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
24 if_index = rtnl_link_name2i(link_cache, "eno16777736");
H A Dtest-create-ipip.c6 struct nl_cache *link_cache; local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
24 if_index = rtnl_link_name2i(link_cache, "eno16777736");
H A Dtest-create-ipvti.c6 struct nl_cache *link_cache; local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
24 if_index = rtnl_link_name2i(link_cache, "ens33");
H A Dtest-create-macvlan.c8 struct nl_cache *link_cache; local
19 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) {
24 if (!(master_index = rtnl_link_name2i(link_cache, "eth0"))) {
H A Dtest-create-sit.c6 struct nl_cache *link_cache; local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
24 if_index = rtnl_link_name2i(link_cache, "eno16777736");
H A Dtest-create-vlan.c8 struct nl_cache *link_cache; local
18 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) {
23 if (!(master_index = rtnl_link_name2i(link_cache, "eth0"))) {
H A Dtest-create-bridge.c8 int create_bridge(struct nl_sock *sk, struct nl_cache *link_cache, const char *name) { argument
30 struct nl_cache *link_cache; local
40 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) {
45 if ((err = create_bridge(sk, link_cache, TEST_BRIDGE_NAME)) < 0) {
50 nl_cache_refill(sk, link_cache);
52 link = rtnl_link_get_by_name(link_cache, TEST_BRIDGE_NAME);
53 struct rtnl_link *ltap = rtnl_link_get_by_name(link_cache, TEST_INTERFACE_NAME);
76 nl_cache_free(link_cache);
/external/libnl/src/lib/
H A Dneigh.c56 struct nl_cache *link_cache, char *arg)
60 if (!(ival = rtnl_link_name2i(link_cache, arg)))
55 nl_cli_neigh_parse_dev(struct rtnl_neigh *neigh, struct nl_cache *link_cache, char *arg) argument
H A Daddr.c54 void nl_cli_addr_parse_dev(struct rtnl_addr *addr, struct nl_cache *link_cache, argument
59 if (!(ival = rtnl_link_name2i(link_cache, arg)))
H A Dtc.c21 void nl_cli_tc_parse_dev(struct rtnl_tc *tc, struct nl_cache *link_cache, char *name) argument
25 link = rtnl_link_get_by_name(link_cache, name);

Completed in 173 milliseconds

123