/external/libnl/tests/ |
test-create-vxlan.c | 2 #include <netlink/route/link.h> 3 #include <netlink/route/link/vxlan.h> 7 struct rtnl_link *link; local 18 link = rtnl_link_vxlan_alloc(); 20 rtnl_link_set_name(link, "vxlan128"); 22 if ((err = rtnl_link_vxlan_set_id(link, 128)) < 0) { 32 if ((err = rtnl_link_vxlan_set_group(link, addr)) < 0) { 38 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { 39 nl_perror(err, "Unable to add link"); 43 rtnl_link_put(link); [all...] |
test-create-bridge.c | 2 #include <netlink/route/link.h> 3 #include <netlink/route/link/bridge.h> 9 struct rtnl_link *link; local 12 link = rtnl_link_alloc(); 13 if ((err = rtnl_link_set_type(link, "bridge")) < 0) { 14 rtnl_link_put(link); 17 rtnl_link_set_name(link, name); 19 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { 22 rtnl_link_put(link); 29 struct rtnl_link *link; local [all...] |
test-create-vlan.c | 2 #include <netlink/route/link.h> 3 #include <netlink/route/link/vlan.h> 7 struct rtnl_link *link; local 28 link = rtnl_link_vlan_alloc(); 30 rtnl_link_set_link(link, master_index); 32 rtnl_link_vlan_set_id(link, 10); 34 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { 35 nl_perror(err, "Unable to add link"); 39 rtnl_link_put(link);
|
test-create-ipgre.c | 1 #include <netlink/route/link/ipgre.h> 7 struct rtnl_link *link; local 30 link = rtnl_link_ipgre_alloc(); 31 if(!link) { 32 nl_perror(err, "Unable to allocate link"); 36 rtnl_link_set_name(link, "ipgre-tun"); 37 rtnl_link_ipgre_set_link(link, if_index); 40 rtnl_link_ipgre_set_local(link, addr.s_addr); 43 rtnl_link_ipgre_set_remote(link, addr.s_addr); 45 rtnl_link_ipgre_set_ttl(link, 64) [all...] |
test-create-ipip.c | 1 #include <netlink/route/link/ipip.h> 7 struct rtnl_link *link; local 30 link = rtnl_link_ipip_alloc(); 31 if(!link) { 32 nl_perror(err, "Unable to allocate link"); 36 rtnl_link_set_name(link, "ipip-tun"); 37 rtnl_link_ipip_set_link(link, if_index); 40 rtnl_link_ipip_set_local(link, addr.s_addr); 43 rtnl_link_ipip_set_remote(link, addr.s_addr); 45 rtnl_link_ipip_set_ttl(link, 64) [all...] |
test-create-sit.c | 1 #include <netlink/route/link/sit.h> 7 struct rtnl_link *link; local 30 link = rtnl_link_sit_alloc(); 31 if(!link) { 32 nl_perror(err, "Unable to allocate link"); 36 rtnl_link_set_name(link, "sit-tun"); 37 rtnl_link_sit_set_link(link, if_index); 40 rtnl_link_sit_set_local(link, addr.s_addr); 43 rtnl_link_sit_set_remote(link, addr.s_addr); 45 rtnl_link_sit_set_ttl(link, 64) [all...] |
test-create-ipvti.c | 1 #include <netlink/route/link/ipvti.h> 7 struct rtnl_link *link; local 30 link = rtnl_link_ipvti_alloc(); 31 if(!link) { 32 nl_perror(err, "Unable to allocate link"); 36 rtnl_link_set_name(link, "ipvti-tun"); 37 rtnl_link_ipvti_set_link(link, if_index); 40 rtnl_link_ipvti_set_local(link, addr.s_addr); 43 rtnl_link_ipvti_set_remote(link, addr.s_addr); 45 err = rtnl_link_add(sk, link, NLM_F_CREATE) [all...] |
/external/libnl/lib/route/link/ |
ipgre.c | 2 * lib/route/link/ipgre.c IPGRE Link Info 13 * @ingroup link 15 * ipgre link module 18 * \b Link Type Name: "ipgre" 31 #include <netlink-private/route/link/api.h> 54 uint32_t link; member in struct:ipgre_info 73 static int ipgre_alloc(struct rtnl_link *link) 81 link->l_info = ipgre; 86 static int ipgre_parse(struct rtnl_link *link, struct nlattr *data 328 struct rtnl_link *link; local 364 struct rtnl_link *link; local [all...] |
ipvti.c | 2 * lib/route/link/ipvti.c IPVTI Link Info 13 * @ingroup link 15 * ipvti link module 18 * \b Link Type Name: "ipvti" 31 #include <netlink-private/route/link/api.h> 42 uint32_t link; member in struct:ipvti_info 58 static int ipvti_alloc(struct rtnl_link *link) 66 link->l_info = ipvti; 71 static int ipvti_parse(struct rtnl_link *link, struct nlattr *data 248 struct rtnl_link *link; local 284 struct rtnl_link *link; local [all...] |
ip6tnl.c | 2 * lib/route/link/ip6tnl.c IP6TNL Link Info 13 * @ingroup link 15 * ip6tnl link module 18 * \b Link Type Name: "ip6tnl" 31 #include <netlink-private/route/link/api.h> 52 uint32_t link; member in struct:ip6_tnl_info 71 static int ip6_tnl_alloc(struct rtnl_link *link) 79 link->l_info = ip6_tnl; 84 static int ip6_tnl_parse(struct rtnl_link *link, struct nlattr *data 317 struct rtnl_link *link; local 354 struct rtnl_link *link; local [all...] |
sit.c | 2 * lib/route/link/sit.c SIT Link Info 13 * @ingroup link 15 * sit link module 18 * \b Link Type Name: "sit" 31 #include <netlink-private/route/link/api.h> 50 uint32_t link; member in struct:sit_info 67 static int sit_alloc(struct rtnl_link *link) 75 link->l_info = sit; 80 static int sit_parse(struct rtnl_link *link, struct nlattr *data 291 struct rtnl_link *link; local 328 struct rtnl_link *link; local [all...] |
bridge.c | 2 * lib/route/link/bridge.c AF_BRIDGE link support 13 * @ingroup link 24 #include <netlink/route/link/bridge.h> 25 #include <netlink-private/route/link/api.h> 49 #define IS_BRIDGE_LINK_ASSERT(link) \ 50 if (!rtnl_link_is_bridge(link)) { \ 51 APPBUG("A function was expecting a link object of type bridge."); \ 55 static inline struct bridge_data *bridge_data(struct rtnl_link *link) 57 return rtnl_link_af_data(link, &bridge_ops) 193 struct rtnl_link *link; local 221 struct rtnl_link *link; local [all...] |
/external/iproute2/testsuite/tests/ip/link/ |
new_link.t | 9 ts_ip "$0" "Add $NEW_DEV dummy interface" link add dev $NEW_DEV type dummy 11 ts_ip "$0" "Show $NEW_DEV dummy interface" link show dev $NEW_DEV 15 ts_ip "$0" "Del $NEW_DEV dummy interface" link del dev $NEW_DEV
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
with_tunnels.sh | 10 ip link add "ipip_${SUFFIX}" type ipip ${CONFIG} 11 ip link add "gre_${SUFFIX}" type gre ${CONFIG} 12 ip link add "sit_${SUFFIX}" type sit ${CONFIG} 17 ip link set "ipip_${SUFFIX}" up 18 ip link set "gre_${SUFFIX}" up 19 ip link set "sit_${SUFFIX}" up
|
test_xdp_redirect.sh | 22 ip link del veth1 2> /dev/null 23 ip link del veth2 2> /dev/null 28 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null 40 ip link add veth1 index 111 type veth peer name veth11 41 ip link add veth2 index 222 type veth peer name veth22 43 ip link set veth11 netns ns1 44 ip link set veth22 netns ns2 46 ip link set veth1 up 47 ip link set veth2 up 52 ip netns exec ns1 ip link set dev veth11 u [all...] |
/external/libnl/lib/route/ |
link.c | 2 * lib/route/link.c Links (Interfaces) 14 * @defgroup link Links (Interfaces) 17 * @route_doc{route_link, Link Documentation} 29 #include <netlink/route/link.h> 30 #include <netlink-private/route/link/api.h> 69 static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link, 79 if (!(data = rtnl_link_af_alloc(link, af_ops))) { 87 static int af_free(struct rtnl_link *link, struct rtnl_link_af_ops *ops, 91 ops->ao_free(link, data); 98 static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops 208 struct rtnl_link *link = nl_object_priv(c); local 481 struct rtnl_link *link; local 652 struct rtnl_link *link = (struct rtnl_link *) obj; local 706 struct rtnl_link *link = (struct rtnl_link *) obj; local 768 struct rtnl_link *link = (struct rtnl_link *) obj; local 881 struct rtnl_link *link = (struct rtnl_link *) obj; local 1055 struct rtnl_link *link; local 1088 struct rtnl_link *link; local 1211 struct rtnl_link *link = rtnl_link_get(cache, ifindex); local 1234 struct rtnl_link *link; local 2405 struct rtnl_link *link; local [all...] |
/external/libnl/include/netlink/route/link/ |
api.h | 2 * netlink/route/link/api.h Link Modules API 16 #include <netlink/route/link.h> 18 #warning "You are including a deprecated header file, include <netlink/route/link.h>."
|
info-api.h | 2 * netlink/route/link/info-api.h Link Modules API 16 #include <netlink/route/link.h> 18 #warning "You are including a deprecated header file, include <netlink/route/link.h>."
|
/external/markdown/MarkdownTest/Tests_2004/ |
Yuri-Links-in-Headers.text | 10 # A header with a [link](http://www.link.com) 14 Another with a [link][a] 18 [a]: http://www.link.com/
|
/external/libnl/src/ |
nl-link-stats.c | 2 * src/nl-link-stats.c Retrieve link statistics 13 #include <netlink/cli/link.h> 18 "Usage: nl-link-stats [OPTION]... [LINK] [ListOfStats]\n" 25 "Link Options\n" 26 " -n, --name=NAME link name\n" 45 static void dump_stat(struct rtnl_link *link, int id) 47 uint64_t st = rtnl_link_get_stat(link, id); 50 printf("%s.%s %" PRIu64 "\n", rtnl_link_get_name(link), 56 struct rtnl_link *link = (struct rtnl_link *) obj; local 83 struct rtnl_link *link; local [all...] |
nl-link-list.c | 2 * src/nl-link-dump.c Dump link attributes 13 #include <netlink/cli/link.h> 18 "Usage: nl-link-list [OPTIONS]... \n" 21 " --details Show detailed information of each link\n" 26 " -n, --name=NAME Name of link\n" 28 " --family=NAME Link address family\n" 40 struct rtnl_link *link; local 48 link = nl_cli_link_alloc(); 83 case 'n': nl_cli_link_parse_name(link, optarg); break [all...] |
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/ |
LinkableStub.java | 17 * Stub implementation for {@link ILinkable}. 21 protected final String link; field in class:LinkableStub 25 public LinkableStub(String link, String label, String style) { 26 this.link = link; 32 return link;
|
/external/linux-kselftest/tools/testing/selftests/net/forwarding/ |
mirror_topo_lib.sh | 60 ip link set dev $swp3 up 62 ip link add name br1 type bridge vlan_filtering 1 63 ip link set dev br1 up 65 ip link set dev $swp1 master br1 66 ip link set dev $swp1 up 68 ip link set dev $swp2 master br1 69 ip link set dev $swp2 up 78 ip link set dev $swp1 down 79 ip link set dev $swp2 down 80 ip link del dev br [all...] |
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
LinkTest.java | 22 import io.opencensus.trace.Link.Type; 31 /** Unit tests for {@link Link}. */ 49 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN); local 50 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); 51 assertThat(link.getSpanId()).isEqualTo(spanContext.getSpanId()); 52 assertThat(link.getType()).isEqualTo(Type.CHILD_LINKED_SPAN); 57 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN, attributesMap) local 66 Link link = Link.fromSpanContext(spanContext, Type.PARENT_LINKED_SPAN); local 74 Link link = Link.fromSpanContext(spanContext, Type.PARENT_LINKED_SPAN, attributesMap); local 101 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN, attributesMap); local [all...] |
/external/linux-kselftest/tools/testing/selftests/net/ |
ip6_gre_headroom.sh | 9 ip link add h1 type veth peer name swp1 10 ip link add h3 type veth peer name swp3 12 ip link set dev h1 up 15 ip link add dev vh3 type vrf table 20 16 ip link set dev h3 master vh3 17 ip link set dev vh3 up 18 ip link set dev h3 up 20 ip link set dev swp3 up 24 ip link set dev swp1 up 27 ip link add name er6 type ip6erspan [all...] |