Searched refs: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-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-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-class-list.c66 struct nl_cache *link_cache; local
71 link_cache = nl_cli_link_alloc_cache(sock);
104 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
114 nl_cache_foreach(link_cache, dump_class, class);
H A Dnl-addr-list.c54 struct nl_cache *link_cache; local
68 link_cache = nl_cache_mngt_require_safe("route/link");
69 if (link_cache)
71 rtnl_link_i2name(link_cache,
97 if (link_cache)
98 nl_cache_put(link_cache);
118 struct nl_cache *link_cache, *addr_cache; local
128 link_cache = nl_cli_link_alloc_cache(sock);
178 case 'd': nl_cli_addr_parse_dev(addr, 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-cls-list.c70 struct nl_cache *link_cache; local
75 link_cache = nl_cli_link_alloc_cache(sock);
112 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
126 nl_cache_foreach(link_cache, dump_link, cls);
H A Dnl-route-add.c17 static struct nl_cache *link_cache, *route_cache; variable in typeref:struct:nl_cache
64 link_cache = nl_cli_link_alloc_cache(sock);
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break;
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break;
H A Dnl-route-list.c53 struct nl_cache *link_cache, *route_cache; local
63 link_cache = nl_cli_link_alloc_cache(sock);
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break;
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break;
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-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-neigh-delete.c69 struct nl_cache *link_cache, *neigh_cache; local
73 link_cache = nl_cli_link_alloc_cache(sock);
110 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break;
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;
/external/libnl/tests/
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);
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-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-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-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-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");
/external/libnl/lib/route/
H A Dnexthop.c109 struct nl_cache *link_cache; local
112 link_cache = nl_cache_mngt_require_safe("route/link");
121 if (link_cache) {
123 rtnl_link_i2name(link_cache,
132 if (link_cache)
133 nl_cache_put(link_cache);
138 struct nl_cache *link_cache; local
141 link_cache = nl_cache_mngt_require_safe("route/link");
150 if (link_cache) {
152 rtnl_link_i2name(link_cache,
[all...]

Completed in 1712 milliseconds

123