/external/libnl/lib/route/ |
D | link.c | 69 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/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/ |
D | rtnetlink.sh | 43 ip link set dev $swp1 up 44 ip link set dev $swp2 up 51 ip link set dev $swp2 down 52 ip link set dev $swp1 down 71 ip link set dev $swp1 addr 00:11:22:33:44:55 82 ip link set dev $swp2 addr 00:11:22:33:44:66 89 ip link set dev $swp2 addr 00:11:22:33:00:66 &>/dev/null 91 ip link set dev $swp2 addr 00:11:22:33:00:66 2>&1 >/dev/null \ 100 ip link set dev $swp2 addr $swp2_mac 101 ip link set dev $swp1 addr $swp1_mac [all …]
|
D | vxlan.sh | 19 ip link set dev $swp1 up 20 ip link set dev $swp2 up 27 ip link set dev $swp2 down 28 ip link set dev $swp1 down 33 ip link set dev $swp1 master br0 35 ip link set dev vxlan0 master br0 38 ip link set dev $swp1 nomaster 40 ip link set dev $swp1 master br0 46 ip link set dev $swp1 master br0 48 ip link set dev vxlan0 master br0 &> /dev/null [all …]
|
D | extack.sh | 21 ip link set dev $swp1 up 22 ip link set dev $swp2 up 29 ip link set dev $swp2 down 30 ip link set dev $swp1 down 37 ip link add name br1 up type bridge vlan_filtering 0 mcast_snooping 0 38 ip link add name vx1 up type vxlan id 1000 \ 42 ip link set dev vx1 master br1 45 ip link set dev $swp1 master br1 48 ip link add name br2 up type bridge vlan_filtering 0 mcast_snooping 0 49 ip link add name vx2 up type vxlan id 2000 \ [all …]
|
/external/libnl/lib/route/link/ |
D | ipgre.c | 54 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 …]
|
D | ip6tnl.c | 52 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 …]
|
D | sit.c | 50 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 …]
|
D | ipip.c | 46 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 …]
|
D | ipvti.c | 42 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 …]
|
D | vxlan.c | 90 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 …]
|
D | bridge.c | 49 #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 …]
|
D | can.c | 72 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 …]
|
D | veth.c | 40 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 …]
|
D | macvlan.c | 54 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 …]
|
D | vlan.c | 66 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 …]
|
D | bonding.c | 34 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 …]
|
/external/linux-kselftest/tools/testing/selftests/net/forwarding/ |
D | vxlan_symmetric.sh | 122 ip link set dev $if_name master $vrf_name 123 ip link set dev $vrf_name up 124 ip link set dev $if_name up 144 ip link set dev $if_name down 170 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 174 ip link set dev br1 address $(mac_get $swp1) 175 ip link set dev br1 up 177 ip link set dev $rp1 up 181 ip link add name vx10 type vxlan id 1010 \ 184 ip link set dev vx10 up [all …]
|
D | vxlan_asymmetric.sh | 112 ip link set dev $if_name master $vrf_name 113 ip link set dev $vrf_name up 114 ip link set dev $if_name up 134 ip link set dev $if_name down 160 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 164 ip link set dev br1 address $(mac_get $swp1) 165 ip link set dev br1 up 167 ip link set dev $rp1 up 171 ip link add name vx10 type vxlan id 1000 \ 174 ip link set dev vx10 up [all …]
|
/external/bcc/examples/networking/vlan_filter/ |
D | test_setup.sh | 18 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/libnl/include/netlink/route/link/ |
D | ipgre.h | 25 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 …]
|
D | ip6tnl.h | 25 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 …]
|
D | sit.h | 25 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/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | LinkTest.java | 49 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/libnl/src/lib/ |
D | link.c | 25 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/linux-kselftest/tools/testing/selftests/net/ |
D | test_vxlan_under_vrf.sh | 49 ip link del veth-hv-1 2>/dev/null || true 50 ip link del veth-tap 2>/dev/null || true 65 ip link add veth-hv-1 type veth peer name veth-hv-2 70 ip link set veth-hv-$hv netns hv-$hv 71 ip -netns hv-$hv link set veth-hv-$hv name veth0 73 ip -netns hv-$hv link add vrf-underlay type vrf table 1 74 ip -netns hv-$hv link set vrf-underlay up 76 ip -netns hv-$hv link set veth0 up 78 ip -netns hv-$hv link add br0 type bridge 79 ip -netns hv-$hv link set br0 up [all …]
|