Home
last modified time | relevance | path

Searched refs:rth (Results 1 – 25 of 92) sorted by relevance

1234

/external/iproute2/lib/
Dlibnetlink.c129 void rtnl_close(struct rtnl_handle *rth) in rtnl_close() argument
131 if (rth->fd >= 0) { in rtnl_close()
132 close(rth->fd); in rtnl_close()
133 rth->fd = -1; in rtnl_close()
137 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions, in rtnl_open_byproto() argument
144 memset(rth, 0, sizeof(*rth)); in rtnl_open_byproto()
146 rth->proto = protocol; in rtnl_open_byproto()
147 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol); in rtnl_open_byproto()
148 if (rth->fd < 0) { in rtnl_open_byproto()
153 if (setsockopt(rth->fd, SOL_SOCKET, SO_SNDBUF, in rtnl_open_byproto()
[all …]
Dll_map.c204 void ll_init_map(struct rtnl_handle *rth) in ll_init_map() argument
211 if (rtnl_wilddump_request(rth, AF_UNSPEC, RTM_GETLINK) < 0) { in ll_init_map()
216 if (rtnl_dump_filter(rth, ll_remember_index, NULL) < 0) { in ll_init_map()
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
DClonerToResultTree.java133 SerializationHandler rth, in cloneToResultTree() argument
143 dtm.dispatchCharactersEvents(node, rth, false); in cloneToResultTree()
160 rth.startElement(ns, localName, dtm.getNodeNameX(node)); in cloneToResultTree()
167 SerializerUtils.addAttributes(rth, node); in cloneToResultTree()
168 SerializerUtils.processNSDecls(rth, node, nodeType, dtm); in cloneToResultTree()
173 rth.startCDATA(); in cloneToResultTree()
174 dtm.dispatchCharactersEvents(node, rth, false); in cloneToResultTree()
175 rth.endCDATA(); in cloneToResultTree()
178 SerializerUtils.addAttribute(rth, node); in cloneToResultTree()
185 SerializerUtils.processNSDecls(rth,node,DTM.NAMESPACE_NODE,dtm); in cloneToResultTree()
[all …]
/external/iproute2/include/
Dlibnetlink.h40 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions)
43 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions,
47 void rtnl_close(struct rtnl_handle *rth);
48 int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type)
50 int rtnl_wilddump_req_filter(struct rtnl_handle *rth, int fam, int type,
56 int rtnl_wilddump_req_filter_fn(struct rtnl_handle *rth, int fam, int type,
59 int rtnl_wilddump_stats_req_filter(struct rtnl_handle *rth, int fam, int type,
62 int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req,
65 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
88 int rtnl_dump_filter_l(struct rtnl_handle *rth,
[all …]
/external/iproute2/genl/
Dctrl.c44 struct rtnl_handle rth; in genl_ctrl_resolve_family() local
59 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in genl_ctrl_resolve_family()
66 if (rtnl_talk(&rth, nlh, nlh, sizeof(req)) < 0) { in genl_ctrl_resolve_family()
106 rtnl_close(&rth); in genl_ctrl_resolve_family()
288 struct rtnl_handle rth; in ctrl_list() local
303 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in ctrl_list()
334 if (rtnl_talk(&rth, nlh, nlh, sizeof(req)) < 0) { in ctrl_list()
348 nlh->nlmsg_seq = rth.dump = ++rth.seq; in ctrl_list()
350 if (rtnl_send(&rth, nlh, nlh->nlmsg_len) < 0) { in ctrl_list()
355 rtnl_dump_filter(&rth, print_ctrl2, stdout); in ctrl_list()
[all …]
/external/iproute2/ip/
Dxfrm_policy.c246 struct rtnl_handle rth; in xfrm_policy_modify() local
383 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_policy_modify()
389 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in xfrm_policy_modify()
392 rtnl_close(&rth); in xfrm_policy_modify()
556 struct rtnl_handle rth; in xfrm_policy_get_or_delete() local
645 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_policy_get_or_delete()
665 if (rtnl_talk(&rth, &req.n, res_nlbuf, res_size) < 0) in xfrm_policy_get_or_delete()
668 rtnl_close(&rth); in xfrm_policy_get_or_delete()
702 struct rtnl_handle *rth = xb->rth; in xfrm_policy_keep() local
749 new_n->nlmsg_seq = ++rth->seq; in xfrm_policy_keep()
[all …]
Dxfrm_state.c290 struct rtnl_handle rth; in xfrm_state_modify() local
732 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_modify()
738 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in xfrm_state_modify()
741 rtnl_close(&rth); in xfrm_state_modify()
748 struct rtnl_handle rth; in xfrm_state_allocspi() local
863 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_allocspi()
870 if (rtnl_talk(&rth, &req.n, res_n, sizeof(res_buf)) < 0) in xfrm_state_allocspi()
878 rtnl_close(&rth); in xfrm_state_allocspi()
1000 struct rtnl_handle rth; in xfrm_state_get_or_delete() local
1051 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_get_or_delete()
[all …]
Dipaddrlabel.c46 extern struct rtnl_handle rth;
110 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { in ipaddrlabel_list()
115 if (rtnl_dump_filter(&rth, print_addrlabel, stdout) < 0) { in ipaddrlabel_list()
179 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in ipaddrlabel_modify()
227 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { in ipaddrlabel_flush()
232 if (rtnl_dump_filter(&rth, flush_addrlabel, NULL) < 0) { in ipaddrlabel_flush()
Dipnetconf.c191 ll_init_map(&rth); in do_show()
198 if (rtnl_send(&rth, &req.n, req.n.nlmsg_len) < 0) { in do_show()
202 rtnl_listen(&rth, print_netconf, stdout); in do_show()
204 rth.flags = RTNL_HANDLE_F_SUPPRESS_NLERR; in do_show()
206 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETNETCONF) < 0) { in do_show()
210 if (rtnl_dump_filter(&rth, print_netconf2, stdout) < 0) { in do_show()
Drtmon.c76 struct rtnl_handle rth; in main() local
162 if (rtnl_open(&rth, groups) < 0) in main()
165 if (rtnl_wilddump_request(&rth, AF_UNSPEC, RTM_GETLINK) < 0) { in main()
172 if (rtnl_dump_filter(&rth, dump_msg2, fp) < 0) { in main()
179 if (rtnl_listen(&rth, dump_msg, (void *)fp) < 0) in main()
Diptoken.c30 extern struct rtnl_handle rth;
104 if (rtnl_wilddump_request(&rth, af, RTM_GETLINK) < 0) { in iptoken_list()
109 if (rtnl_dump_filter(&rth, print_token, &da) < 0) { in iptoken_list()
169 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in iptoken_set()
177 ll_init_map(&rth); in do_iptoken()
Dip.c43 struct rtnl_handle rth = { .fd = -1 }; variable
140 if (rtnl_open(&rth, 0) < 0) { in batch()
167 rtnl_close(&rth); in batch()
303 if (rtnl_open(&rth, 0) < 0) in main()
312 rtnl_close(&rth); in main()
Dipneigh.c89 if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { in flush_update()
180 ll_init_map(&rth); in ipneigh_modify()
187 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in ipneigh_modify()
265 fn->nlmsg_seq = ++rth.seq; in print_neigh()
429 ll_init_map(&rth); in do_show_or_flush()
450 if (rtnl_dump_request_n(&rth, &req.n) < 0) { in do_show_or_flush()
455 if (rtnl_dump_filter(&rth, print_neigh, stdout) < 0) { in do_show_or_flush()
483 if (rtnl_dump_request_n(&rth, &req.n) < 0) { in do_show_or_flush()
488 if (rtnl_dump_filter(&rth, print_neigh, stdout) < 0) { in do_show_or_flush()
Dipmonitor.c181 rtnl_close(&rth); in do_ipmonitor()
301 if (rtnl_open(&rth, groups) < 0) in do_ipmonitor()
303 if (listen_all_nsid && rtnl_listen_all_nsid(&rth) < 0) in do_ipmonitor()
306 ll_init_map(&rth); in do_ipmonitor()
310 if (rtnl_listen(&rth, accept_msg, stdout) < 0) in do_ipmonitor()
Diplink_xstats.c68 if (rtnl_wilddump_stats_req_filter(&rth, AF_UNSPEC, in iplink_ifla_xstats()
75 if (rtnl_dump_filter(&rth, lu->print_ifla_xstats, stdout) < 0) { in iplink_ifla_xstats()
/external/iproute2/tc/
Dtc_monitor.c74 struct rtnl_handle rth; in do_tcmonitor() local
107 if (rtnl_open(&rth, groups) < 0) in do_tcmonitor()
110 ll_init_map(&rth); in do_tcmonitor()
112 if (rtnl_listen(&rth, accept_tcmsg, (void *)stdout) < 0) { in do_tcmonitor()
113 rtnl_close(&rth); in do_tcmonitor()
117 rtnl_close(&rth); in do_tcmonitor()
Dtc.c48 struct rtnl_handle rth; variable
237 if (rtnl_open(&rth, 0) < 0) { in batch()
261 rtnl_close(&rth); in batch()
332 if (rtnl_open(&rth, 0) < 0) { in main()
344 rtnl_close(&rth); in main()
Dtc_qdisc.c183 ll_init_map(&rth); in tc_qdisc_modify()
193 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in tc_qdisc_modify()
330 ll_init_map(&rth); in tc_qdisc_list()
354 if (rtnl_dump_request_n(&rth, &req.n) < 0) { in tc_qdisc_list()
359 } else if (rtnl_dump_request(&rth, RTM_GETQDISC, &t, sizeof(t)) < 0) { in tc_qdisc_list()
364 if (rtnl_dump_filter(&rth, print_qdisc, stdout) < 0) { in tc_qdisc_list()
Dtc_filter.c188 ll_init_map(&rth); in tc_filter_modify()
197 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) { in tc_filter_modify()
474 ll_init_map(&rth); in tc_filter_get()
487 if (rtnl_talk(&rth, &req.n, &req.n, MAX_MSG) < 0) { in tc_filter_get()
600 ll_init_map(&rth); in tc_filter_list()
614 if (rtnl_dump_request_n(&rth, &req.n) < 0) { in tc_filter_list()
619 if (rtnl_dump_filter(&rth, print_filter, stdout) < 0) { in tc_filter_list()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemTextLiteral.java206 SerializationHandler rth = transformer.getResultTreeHandler(); in execute() local
210 rth.processingInstruction(javax.xml.transform.Result.PI_DISABLE_OUTPUT_ESCAPING, ""); in execute()
213 rth.characters(m_ch, 0, m_ch.length); in execute()
217 rth.processingInstruction(javax.xml.transform.Result.PI_ENABLE_OUTPUT_ESCAPING, ""); in execute()
DElemValueOf.java216 SerializationHandler rth = transformer.getResultTreeHandler(); in execute() local
228 rth.processingInstruction( in execute()
235 expr.executeCharsToContentHandler(xctxt, rth); in execute()
240 rth.processingInstruction( in execute()
/external/iproute2/bridge/
Dbridge.c19 struct rtnl_handle rth = { .fd = -1 }; variable
93 if (rtnl_open(&rth, 0) < 0) { in batch()
118 rtnl_close(&rth); in batch()
198 if (rtnl_open(&rth, 0) < 0) in main()
204 rtnl_close(&rth); in main()
Dmonitor.c84 rtnl_close(&rth); in do_monitor()
136 if (rtnl_open(&rth, groups) < 0) in do_monitor()
138 ll_init_map(&rth); in do_monitor()
140 if (rtnl_listen(&rth, accept_msg, stdout) < 0) in do_monitor()
Dvlan.c136 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in vlan_modify()
344 if (rtnl_wilddump_req_filter(&rth, PF_BRIDGE, RTM_GETLINK, in vlan_show()
362 if (rtnl_dump_filter(&rth, print_vlan, stdout) < 0) { in vlan_show()
370 if (rtnl_wilddump_stats_req_filter(&rth, AF_UNSPEC, in vlan_show()
378 if (rtnl_dump_filter(&rth, print_vlan_stats, stdout) < 0) { in vlan_show()
384 if (rtnl_wilddump_stats_req_filter(&rth, AF_UNSPEC, in vlan_show()
391 if (rtnl_dump_filter(&rth, print_vlan_stats, stdout) < 0) { in vlan_show()
481 ll_init_map(&rth); in do_vlan()
Dmdb.c322 if (rtnl_wilddump_request(&rth, PF_BRIDGE, RTM_GETMDB) < 0) { in mdb_show()
329 if (rtnl_dump_filter(&rth, print_mdb, stdout) < 0) { in mdb_show()
345 if (rtnl_dump_filter(&rth, print_mdb, stdout) < 0) { in mdb_show()
352 if (rtnl_wilddump_request(&rth, PF_BRIDGE, RTM_GETMDB) < 0) { in mdb_show()
362 if (rtnl_dump_filter(&rth, print_mdb, stdout) < 0) { in mdb_show()
443 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in mdb_modify()
451 ll_init_map(&rth); in do_mdb()

1234