/external/libnl/tests/ |
D | test-create-bridge.c | 8 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()
|
D | test-create-vlan.c | 8 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()
|
D | test-create-macvlan.c | 8 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()
|
D | test-create-ip6tnl.c | 6 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()
|
D | test-create-ipvti.c | 6 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()
|
D | test-create-sit.c | 6 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()
|
D | test-create-ipip.c | 6 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()
|
D | test-create-ipgre.c | 6 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/ |
D | nexthop.c | 109 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/ |
D | nl-addr-list.c | 54 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()
|
D | nl-link-enslave.c | 19 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()
|
D | nl-class-list.c | 66 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()
|
D | nl-route-list.c | 53 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()
|
D | nl-cls-list.c | 70 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()
|
D | nl-route-add.c | 17 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()
|
D | nl-link-name2ifindex.c | 24 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()
|
D | nl-link-ifindex2name.c | 24 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()
|
D | nl-link-release.c | 19 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()
|
D | nl-cls-delete.c | 92 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()
|
D | nl-route-delete.c | 86 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()
|
D | nl-neigh-list.c | 40 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()
|
D | nl-neigh-add.c | 48 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()
|
D | nl-link-list.c | 39 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, ¶ms, OBJ_CAST(link)); in main()
|
/external/libnl/lib/netfilter/ |
D | log_msg_obj.c | 76 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 …]
|
D | queue_msg_obj.c | 66 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 …]
|