Home
last modified time | relevance | path

Searched refs:link_cache (Results 1 – 25 of 57) sorted by relevance

123

/external/libnl/tests/
Dtest-create-bridge.c8 int create_bridge(struct nl_sock *sk, struct nl_cache *link_cache, const char *name) { in create_bridge() argument
30 struct nl_cache *link_cache; in main() local
40 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
45 if ((err = create_bridge(sk, link_cache, TEST_BRIDGE_NAME)) < 0) { in main()
50 nl_cache_refill(sk, link_cache); in main()
52 link = rtnl_link_get_by_name(link_cache, TEST_BRIDGE_NAME); in main()
53 struct rtnl_link *ltap = rtnl_link_get_by_name(link_cache, TEST_INTERFACE_NAME); in main()
76 nl_cache_free(link_cache); in main()
Dtest-create-vlan.c8 struct nl_cache *link_cache; in main() local
18 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
23 if (!(master_index = rtnl_link_name2i(link_cache, "eth0"))) { in main()
Dtest-create-macvlan.c8 struct nl_cache *link_cache; in main() local
19 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main()
24 if (!(master_index = rtnl_link_name2i(link_cache, "eth0"))) { in main()
Dtest-create-ip6tnl.c6 struct nl_cache *link_cache; in main() local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
24 if_index = rtnl_link_name2i(link_cache, "ens33"); in main()
Dtest-create-ipip.c6 struct nl_cache *link_cache; in main() local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
Dtest-create-sit.c6 struct nl_cache *link_cache; in main() local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
Dtest-create-ipvti.c6 struct nl_cache *link_cache; in main() local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
24 if_index = rtnl_link_name2i(link_cache, "ens33"); in main()
Dtest-create-ipgre.c6 struct nl_cache *link_cache; in main() local
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache); in main()
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
/external/libnl/lib/route/
Dnexthop.c109 struct nl_cache *link_cache; in nh_dump_line() local
112 link_cache = nl_cache_mngt_require_safe("route/link"); in nh_dump_line()
121 if (link_cache) { in nh_dump_line()
123 rtnl_link_i2name(link_cache, in nh_dump_line()
132 if (link_cache) in nh_dump_line()
133 nl_cache_put(link_cache); in nh_dump_line()
138 struct nl_cache *link_cache; in nh_dump_details() local
141 link_cache = nl_cache_mngt_require_safe("route/link"); in nh_dump_details()
150 if (link_cache) { in nh_dump_details()
152 rtnl_link_i2name(link_cache, in nh_dump_details()
[all …]
/external/libnl/src/
Dnl-addr-list.c54 struct nl_cache *link_cache; in env_dump() local
68 link_cache = nl_cache_mngt_require_safe("route/link"); in env_dump()
69 if (link_cache) in env_dump()
71 rtnl_link_i2name(link_cache, in env_dump()
97 if (link_cache) in env_dump()
98 nl_cache_put(link_cache); in env_dump()
118 struct nl_cache *link_cache, *addr_cache; in main() local
128 link_cache = nl_cli_link_alloc_cache(sock); in main()
178 case 'd': nl_cli_addr_parse_dev(addr, link_cache, optarg); break; in main()
Dnl-link-enslave.c19 struct nl_cache *link_cache; in main() local
30 link_cache = nl_cli_link_alloc_cache(sock); in main()
32 if (!(master = rtnl_link_get_by_name(link_cache, argv[1]))) { in main()
37 if (!(slave = rtnl_link_get_by_name(link_cache, argv[2]))) { in main()
Dnl-class-list.c66 struct nl_cache *link_cache; in main() local
71 link_cache = nl_cli_link_alloc_cache(sock); in main()
104 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; in main()
114 nl_cache_foreach(link_cache, dump_class, class); in main()
Dnl-route-list.c53 struct nl_cache *link_cache, *route_cache; in main() local
63 link_cache = nl_cli_link_alloc_cache(sock); in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
Dnl-route-add.c17 static struct nl_cache *link_cache, *route_cache; variable
64 link_cache = nl_cli_link_alloc_cache(sock); in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
Dnl-cls-list.c70 struct nl_cache *link_cache; in main() local
75 link_cache = nl_cli_link_alloc_cache(sock); in main()
112 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; in main()
126 nl_cache_foreach(link_cache, dump_link, cls); in main()
Dnl-link-name2ifindex.c24 struct nl_cache *link_cache; in main() local
32 link_cache = nl_cli_link_alloc_cache(sock); in main()
34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1]))) in main()
Dnl-link-release.c19 struct nl_cache *link_cache; in main() local
30 link_cache = nl_cli_link_alloc_cache(sock); in main()
32 if (!(slave = rtnl_link_get_by_name(link_cache, argv[1]))) { in main()
Dnl-link-ifindex2name.c24 struct nl_cache *link_cache; in main() local
33 link_cache = nl_cli_link_alloc_cache(sock); in main()
37 if (!rtnl_link_i2name(link_cache, ifindex, name, sizeof(name))) in main()
Dnl-cls-delete.c92 struct nl_cache *link_cache; in main() local
97 link_cache = nl_cli_link_alloc_cache(sock); in main()
135 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; in main()
149 nl_cache_foreach(link_cache, delete_link, cls); in main()
Dnl-route-delete.c86 struct nl_cache *link_cache, *route_cache; in main() local
92 link_cache = nl_cli_link_alloc_cache(sock); in main()
142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
Dnl-neigh-list.c40 struct nl_cache *link_cache, *neigh_cache; in main() local
48 link_cache = nl_cli_link_alloc_cache(sock); in main()
80 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break; in main()
Dnl-neigh-add.c48 struct nl_cache *link_cache; in main() local
57 link_cache = nl_cli_link_alloc_cache(sock); in main()
92 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break; in main()
Dnl-link-list.c39 struct nl_cache *link_cache; in main() local
92 link_cache = nl_cli_link_alloc_cache_family(sock, in main()
95 nl_cache_dump_filter(link_cache, &params, OBJ_CAST(link)); in main()
/external/libnl/lib/netfilter/
Dlog_msg_obj.c76 struct nl_cache *link_cache; in log_msg_dump() local
79 link_cache = nl_cache_mngt_require_safe("route/link"); in log_msg_dump()
87 if (link_cache) in log_msg_dump()
89 rtnl_link_i2name(link_cache, in log_msg_dump()
97 if (link_cache) in log_msg_dump()
99 rtnl_link_i2name(link_cache, in log_msg_dump()
107 if (link_cache) in log_msg_dump()
109 rtnl_link_i2name(link_cache, in log_msg_dump()
117 if (link_cache) in log_msg_dump()
119 rtnl_link_i2name(link_cache, in log_msg_dump()
[all …]
Dqueue_msg_obj.c66 struct nl_cache *link_cache; in nfnl_queue_msg_dump() local
69 link_cache = nl_cache_mngt_require_safe("route/link"); in nfnl_queue_msg_dump()
77 if (link_cache) in nfnl_queue_msg_dump()
79 rtnl_link_i2name(link_cache, in nfnl_queue_msg_dump()
87 if (link_cache) in nfnl_queue_msg_dump()
89 rtnl_link_i2name(link_cache, in nfnl_queue_msg_dump()
97 if (link_cache) in nfnl_queue_msg_dump()
99 rtnl_link_i2name(link_cache, in nfnl_queue_msg_dump()
107 if (link_cache) in nfnl_queue_msg_dump()
109 rtnl_link_i2name(link_cache, in nfnl_queue_msg_dump()
[all …]

123