Home
last modified time | relevance | path

Searched refs:link (Results 1 – 25 of 3647) sorted by relevance

12345678910>>...146

/external/libnl/lib/route/
Dlink.c69 static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link, in af_lookup_and_alloc() argument
79 if (!(data = rtnl_link_af_alloc(link, af_ops))) { in af_lookup_and_alloc()
87 static int af_free(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_free() argument
91 ops->ao_free(link, data); in af_free()
98 static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_clone() argument
110 static int af_fill(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_fill() argument
123 if ((err = ops->ao_fill_af(link, arg, data)) < 0) in af_fill()
131 static int af_dump_line(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_line() argument
137 ops->ao_dump[NL_DUMP_LINE](link, p, data); in af_dump_line()
142 static int af_dump_details(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_details() argument
[all …]
/external/libnl/lib/route/link/
Dipgre.c54 uint32_t link; member
73 static int ipgre_alloc(struct rtnl_link *link) in ipgre_alloc() argument
81 link->l_info = ipgre; in ipgre_alloc()
86 static int ipgre_parse(struct rtnl_link *link, struct nlattr *data, in ipgre_parse() argument
99 err = ipgre_alloc(link); in ipgre_parse()
103 ipgre = link->l_info; in ipgre_parse()
106 ipgre->link = nla_get_u32(tb[IFLA_GRE_LINK]); in ipgre_parse()
161 static int ipgre_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipgre_put_attrs() argument
163 struct ipgre_info *ipgre = link->l_info; in ipgre_put_attrs()
171 NLA_PUT_U32(msg, IFLA_GRE_LINK, ipgre->link); in ipgre_put_attrs()
[all …]
Dip6tnl.c52 uint32_t link; member
71 static int ip6_tnl_alloc(struct rtnl_link *link) in ip6_tnl_alloc() argument
79 link->l_info = ip6_tnl; in ip6_tnl_alloc()
84 static int ip6_tnl_parse(struct rtnl_link *link, struct nlattr *data, in ip6_tnl_parse() argument
97 err = ip6_tnl_alloc(link); in ip6_tnl_parse()
101 ip6_tnl = link->l_info; in ip6_tnl_parse()
104 ip6_tnl->link = nla_get_u32(tb[IFLA_IPTUN_LINK]); in ip6_tnl_parse()
154 static int ip6_tnl_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ip6_tnl_put_attrs() argument
156 struct ip6_tnl_info *ip6_tnl = link->l_info; in ip6_tnl_put_attrs()
164 NLA_PUT_U32(msg, IFLA_IPTUN_LINK, ip6_tnl->link); in ip6_tnl_put_attrs()
[all …]
Dsit.c50 uint32_t link; member
67 static int sit_alloc(struct rtnl_link *link) in sit_alloc() argument
75 link->l_info = sit; in sit_alloc()
80 static int sit_parse(struct rtnl_link *link, struct nlattr *data, in sit_parse() argument
93 err = sit_alloc(link); in sit_parse()
97 sit = link->l_info; in sit_parse()
100 sit->link = nla_get_u32(tb[IFLA_IPTUN_LINK]); in sit_parse()
145 static int sit_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in sit_put_attrs() argument
147 struct sit_info *sit = link->l_info; in sit_put_attrs()
155 NLA_PUT_U32(msg, IFLA_IPTUN_LINK, sit->link); in sit_put_attrs()
[all …]
Dipip.c46 uint32_t link; member
61 static int ipip_alloc(struct rtnl_link *link) in ipip_alloc() argument
69 link->l_info = ipip; in ipip_alloc()
74 static int ipip_parse(struct rtnl_link *link, struct nlattr *data, in ipip_parse() argument
87 err = ipip_alloc(link); in ipip_parse()
91 ipip = link->l_info; in ipip_parse()
94 ipip->link = nla_get_u32(tb[IFLA_IPTUN_LINK]); in ipip_parse()
129 static int ipip_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipip_put_attrs() argument
131 struct ipip_info *ipip = link->l_info; in ipip_put_attrs()
139 NLA_PUT_U32(msg, IFLA_IPTUN_LINK, ipip->link); in ipip_put_attrs()
[all …]
Dipvti.c42 uint32_t link; member
58 static int ipvti_alloc(struct rtnl_link *link) in ipvti_alloc() argument
66 link->l_info = ipvti; in ipvti_alloc()
71 static int ipvti_parse(struct rtnl_link *link, struct nlattr *data, in ipvti_parse() argument
84 err = ipvti_alloc(link); in ipvti_parse()
88 ipvti = link->l_info; in ipvti_parse()
91 ipvti->link = nla_get_u32(tb[IFLA_VTI_LINK]); in ipvti_parse()
121 static int ipvti_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipvti_put_attrs() argument
123 struct ipvti_info *ipvti = link->l_info; in ipvti_put_attrs()
131 NLA_PUT_U32(msg, IFLA_VTI_LINK, ipvti->link); in ipvti_put_attrs()
[all …]
Dvxlan.c90 static int vxlan_alloc(struct rtnl_link *link) in vxlan_alloc() argument
97 link->l_info = vxi; in vxlan_alloc()
102 static int vxlan_parse(struct rtnl_link *link, struct nlattr *data, in vxlan_parse() argument
114 if ((err = vxlan_alloc(link)) < 0) in vxlan_parse()
117 vxi = link->l_info; in vxlan_parse()
198 static void vxlan_free(struct rtnl_link *link) in vxlan_free() argument
200 struct vxlan_info *vxi = link->l_info; in vxlan_free()
203 link->l_info = NULL; in vxlan_free()
206 static void vxlan_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in vxlan_dump_line() argument
208 struct vxlan_info *vxi = link->l_info; in vxlan_dump_line()
[all …]
Dbridge.c49 #define IS_BRIDGE_LINK_ASSERT(link) \ argument
50 if (!rtnl_link_is_bridge(link)) { \
55 static inline struct bridge_data *bridge_data(struct rtnl_link *link) in bridge_data() argument
57 return rtnl_link_af_data(link, &bridge_ops); in bridge_data()
60 static void *bridge_alloc(struct rtnl_link *link) in bridge_alloc() argument
65 static void *bridge_clone(struct rtnl_link *link, void *data) in bridge_clone() argument
69 if ((bd = bridge_alloc(link))) in bridge_clone()
75 static void bridge_free(struct rtnl_link *link, void *data) in bridge_free() argument
90 static void check_flag(struct rtnl_link *link, struct nlattr *attrs[], in check_flag() argument
94 rtnl_link_bridge_set_flags(link, flag); in check_flag()
[all …]
Dcan.c72 static int can_alloc(struct rtnl_link *link) in can_alloc() argument
80 link->l_info = ci; in can_alloc()
85 static int can_parse(struct rtnl_link *link, struct nlattr *data, in can_parse() argument
97 if ((err = can_alloc(link)) < 0) in can_parse()
100 ci = link->l_info; in can_parse()
153 static void can_free(struct rtnl_link *link) in can_free() argument
155 struct can_info *ci = link->l_info; in can_free()
158 link->l_info = NULL; in can_free()
192 static void can_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in can_dump_line() argument
194 struct can_info *ci = link->l_info; in can_dump_line()
[all …]
Dveth.c40 static int veth_parse(struct rtnl_link *link, struct nlattr *data, in veth_parse() argument
45 struct rtnl_link *peer = link->l_info; in veth_parse()
83 static void veth_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_line() argument
87 static void veth_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_details() argument
89 struct rtnl_link *peer = link->l_info; in veth_dump_details()
117 static int veth_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in veth_put_attrs() argument
119 struct rtnl_link *peer = link->l_info; in veth_put_attrs()
143 static int veth_alloc(struct rtnl_link *link) in veth_alloc() argument
149 if (link->l_info) in veth_alloc()
158 peer->l_info = link; in veth_alloc()
[all …]
Dmacvlan.c54 static int macvlan_alloc(struct rtnl_link *link) in macvlan_alloc() argument
61 link->l_info = mvi; in macvlan_alloc()
66 static int macvlan_parse(struct rtnl_link *link, struct nlattr *data, in macvlan_parse() argument
78 if ((err = macvlan_alloc(link)) < 0) in macvlan_parse()
81 mvi = link->l_info; in macvlan_parse()
98 static void macvlan_free(struct rtnl_link *link) in macvlan_free() argument
100 free(link->l_info); in macvlan_free()
101 link->l_info = NULL; in macvlan_free()
104 static void macvlan_dump(struct rtnl_link *link, struct nl_dump_params *p) in macvlan_dump() argument
107 struct macvlan_info *mvi = link->l_info; in macvlan_dump()
[all …]
Dvlan.c66 static int vlan_alloc(struct rtnl_link *link) in vlan_alloc() argument
73 link->l_info = vi; in vlan_alloc()
78 static int vlan_parse(struct rtnl_link *link, struct nlattr *data, in vlan_parse() argument
90 if ((err = vlan_alloc(link)) < 0) in vlan_parse()
93 vi = link->l_info; in vlan_parse()
169 static void vlan_free(struct rtnl_link *link) in vlan_free() argument
171 struct vlan_info *vi = link->l_info; in vlan_free()
179 link->l_info = NULL; in vlan_free()
182 static void vlan_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in vlan_dump_line() argument
184 struct vlan_info *vi = link->l_info; in vlan_dump_line()
[all …]
Dbonding.c34 struct rtnl_link *link; in rtnl_link_bond_alloc() local
37 if (!(link = rtnl_link_alloc())) in rtnl_link_bond_alloc()
40 if ((err = rtnl_link_set_type(link, "bond")) < 0) { in rtnl_link_bond_alloc()
41 rtnl_link_put(link); in rtnl_link_bond_alloc()
45 return link; in rtnl_link_bond_alloc()
75 struct rtnl_link *link; in rtnl_link_bond_add() local
78 if (!(link = rtnl_link_bond_alloc())) in rtnl_link_bond_add()
85 rtnl_link_set_name(link, name); in rtnl_link_bond_add()
87 err = rtnl_link_add(sock, link, NLM_F_CREATE); in rtnl_link_bond_add()
89 rtnl_link_put(link); in rtnl_link_bond_add()
[all …]
Dinet6.c25 static void *inet6_alloc(struct rtnl_link *link) in inet6_alloc() argument
30 static void *inet6_clone(struct rtnl_link *link, void *data) in inet6_clone() argument
34 if ((i6 = inet6_alloc(link))) in inet6_clone()
40 static void inet6_free(struct rtnl_link *link, void *data) in inet6_free() argument
131 static int inet6_parse_protinfo(struct rtnl_link *link, struct nlattr *attr, in inet6_parse_protinfo() argument
183 rtnl_link_set_stat(link, map_stat_id[i], stat); in inet6_parse_protinfo()
195 rtnl_link_set_stat(link, RTNL_LINK_ICMP6_INMSGS + i - 1, in inet6_parse_protinfo()
263 static void inet6_dump_details(struct rtnl_link *link, in inet6_dump_details() argument
334 static void inet6_dump_stats(struct rtnl_link *link, in inet6_dump_stats() argument
342 nl_dump(p, " %18" PRIu64 " ", link->l_stats[RTNL_LINK_IP6_INPKTS]); in inet6_dump_stats()
[all …]
/external/bcc/examples/networking/vlan_filter/
Dtest_setup.sh18 ip link add veth11 type veth peer name veth13
19 ip link add veth21 type veth peer name veth23
20 ip link set veth11 netns netns11
21 ip link set veth21 netns netns21
22 ip link set veth13 netns netns3
23 ip link set veth23 netns netns3
26 ip link add veth12 type veth peer name veth14
27 ip link add veth22 type veth peer name veth24
28 ip link set veth12 netns netns12
29 ip link set veth22 netns netns22
[all …]
/external/syzkaller/tools/
Dcheck_links.py22 for link in r:
23 links += [(doc, link)]
25 def filter_link((doc, link)): argument
26 if link.startswith('http'):
28 if link.startswith('#'):
34 def fix_link((doc, link)): argument
35 link = link.split('#')[0]
36 link = link.split('?')[0]
37 return (doc, link)
43 def check_link((doc, link)): argument
[all …]
/external/libnl/include/netlink/route/link/
Dipgre.h25 extern int rtnl_link_ipgre_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link);
28 extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags);
29 extern uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link);
31 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
32 extern uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link);
34 extern int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey);
35 extern uint32_t rtnl_link_ipgre_get_ikey(struct rtnl_link *link);
37 extern int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey);
38 extern uint32_t rtnl_link_ipgre_get_okey(struct rtnl_link *link);
[all …]
Dip6tnl.h25 extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link);
28 extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *);
29 extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr);
31 extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *);
32 extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *);
34 extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl);
35 extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link);
37 extern int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos);
38 extern uint8_t rtnl_link_ip6_tnl_get_tos(struct rtnl_link *link);
[all …]
Dsit.h25 extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link);
28 extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr);
29 extern uint32_t rtnl_link_get_sit_local(struct rtnl_link *link);
31 extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr);
32 extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link);
34 extern int rtnl_link_sit_set_ttl(struct rtnl_link *link, uint8_t ttl);
35 extern uint8_t rtnl_link_sit_get_ttl(struct rtnl_link *link);
37 extern int rtnl_link_sit_set_tos(struct rtnl_link *link, uint8_t tos);
38 extern uint8_t rtnl_link_sit_get_tos(struct rtnl_link *link);
[all …]
/external/libnl/doc/
Droute.txt24 The link configuration interface is part of the +NETLINK_ROUTE+ protocol
30 - View and modify per link network configuration settings (e.g.
33 .Naming Convention (network device, link, interface)
44 This section describes the protocol semantics of the netlink based link
51 | Reply to +RTM_GETLINK+ request or notification of link added or updated
53 | Notification of link deleted or disappeared
54 | +RTM_GETLINK+ | Retrieve link configuration and statistics |
55 | +RTM_SETLINK+ | Modify link configuration |
58 See link:core.html#core_msg_types[Netlink Library - Message Types] for more
63 All netlink link messages share a common header (+struct ifinfomsg+) which
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DLinkTest.java49 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN); in fromSpanContext_ChildLink() local
50 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ChildLink()
51 assertThat(link.getSpanId()).isEqualTo(spanContext.getSpanId()); in fromSpanContext_ChildLink()
52 assertThat(link.getType()).isEqualTo(Type.CHILD_LINKED_SPAN); in fromSpanContext_ChildLink()
57 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN, attributesMap); in fromSpanContext_ChildLink_WithAttributes() local
58 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ChildLink_WithAttributes()
59 assertThat(link.getSpanId()).isEqualTo(spanContext.getSpanId()); in fromSpanContext_ChildLink_WithAttributes()
60 assertThat(link.getType()).isEqualTo(Type.CHILD_LINKED_SPAN); in fromSpanContext_ChildLink_WithAttributes()
61 assertThat(link.getAttributes()).isEqualTo(attributesMap); in fromSpanContext_ChildLink_WithAttributes()
66 Link link = Link.fromSpanContext(spanContext, Type.PARENT_LINKED_SPAN); in fromSpanContext_ParentLink() local
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lwt_seg6local.sh64 ip link add veth1 type veth peer name veth2
65 ip link add veth3 type veth peer name veth4
66 ip link add veth5 type veth peer name veth6
67 ip link add veth7 type veth peer name veth8
68 ip link add veth9 type veth peer name veth10
70 ip link set veth1 netns ns1
71 ip link set veth2 netns ns2
72 ip link set veth3 netns ns2
73 ip link set veth4 netns ns3
74 ip link set veth5 netns ns3
[all …]
/external/wayland/tests/
Dlist-test.c44 struct wl_list link; member
53 wl_list_insert(&list, &e.link); in TEST()
54 assert(list.next == &e.link); in TEST()
55 assert(list.prev == &e.link); in TEST()
56 assert(e.link.next == &list); in TEST()
57 assert(e.link.prev == &list); in TEST()
67 wl_list_insert(&list, &e.link); in TEST()
69 wl_list_remove(&e.link); in TEST()
86 wl_list_insert(list.prev, &e1.link); in TEST()
87 wl_list_insert(list.prev, &e2.link); in TEST()
[all …]
/external/libnl/src/lib/
Dlink.c25 struct rtnl_link *link; in nl_cli_link_alloc() local
27 link = rtnl_link_alloc(); in nl_cli_link_alloc()
28 if (!link) in nl_cli_link_alloc()
31 return link; in nl_cli_link_alloc()
53 void nl_cli_link_parse_family(struct rtnl_link *link, char *arg) in nl_cli_link_parse_family() argument
61 rtnl_link_set_family(link, family); in nl_cli_link_parse_family()
64 void nl_cli_link_parse_name(struct rtnl_link *link, char *arg) in nl_cli_link_parse_name() argument
66 rtnl_link_set_name(link, arg); in nl_cli_link_parse_name()
69 void nl_cli_link_parse_mtu(struct rtnl_link *link, char *arg) in nl_cli_link_parse_mtu() argument
72 rtnl_link_set_mtu(link, mtu); in nl_cli_link_parse_mtu()
[all …]
/external/libxml2/result/
Dslashdot.rdf.rdr13 2 1 link 0 0
15 2 15 link 0 0
40 2 1 link 0 0
42 2 15 link 0 0
57 2 1 link 0 0
59 2 15 link 0 0
74 2 1 link 0 0
76 2 15 link 0 0
91 2 1 link 0 0
93 2 15 link 0 0
[all …]

12345678910>>...146