Home
last modified time | relevance | path

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

12

/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/lib/
Dlibnetlink.c30 void rtnl_close(struct rtnl_handle *rth) in rtnl_close() argument
32 if (rth->fd >= 0) { in rtnl_close()
33 close(rth->fd); in rtnl_close()
34 rth->fd = -1; in rtnl_close()
38 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, in rtnl_open_byproto() argument
44 memset(rth, 0, sizeof(*rth)); in rtnl_open_byproto()
46 rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol); in rtnl_open_byproto()
47 if (rth->fd < 0) { in rtnl_open_byproto()
52 if (setsockopt(rth->fd,SOL_SOCKET,SO_SNDBUF,&sndbuf,sizeof(sndbuf)) < 0) { in rtnl_open_byproto()
57 if (setsockopt(rth->fd,SOL_SOCKET,SO_RCVBUF,&rcvbuf,sizeof(rcvbuf)) < 0) { in rtnl_open_byproto()
[all …]
Dll_map.c195 int ll_init_map(struct rtnl_handle *rth) in ll_init_map() argument
202 if (rtnl_wilddump_request(rth, AF_UNSPEC, RTM_GETLINK) < 0) { in ll_init_map()
207 if (rtnl_dump_filter(rth, ll_remember_index, NULL) < 0) { in ll_init_map()
/external/iproute2/genl/
Dctrl.c44 struct rtnl_handle rth; in genl_ctrl_resolve_family() local
63 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in genl_ctrl_resolve_family()
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) { in genl_ctrl_resolve_family()
111 rtnl_close(&rth); in genl_ctrl_resolve_family()
286 struct rtnl_handle rth; in ctrl_list() local
306 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { in ctrl_list()
337 if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) { in ctrl_list()
351 nlh->nlmsg_seq = rth.dump = ++rth.seq; in ctrl_list()
353 if (rtnl_send(&rth, nlh, nlh->nlmsg_len) < 0) { in ctrl_list()
358 rtnl_dump_filter(&rth, print_ctrl, stdout); in ctrl_list()
[all …]
/external/iproute2/tc/
Dtc_monitor.c69 struct rtnl_handle rth; in do_tcmonitor() local
98 if (rtnl_open(&rth, groups) < 0) in do_tcmonitor()
101 ll_init_map(&rth); in do_tcmonitor()
103 if (rtnl_listen(&rth, accept_tcmsg, (void*)stdout) < 0) { in do_tcmonitor()
104 rtnl_close(&rth); in do_tcmonitor()
108 rtnl_close(&rth); in do_tcmonitor()
Dtc.c41 struct rtnl_handle rth; variable
265 if (rtnl_open(&rth, 0) < 0) { in batch()
289 rtnl_close(&rth); in batch()
348 if (rtnl_open(&rth, 0) < 0) { in main()
354 rtnl_close(&rth); in main()
Dtc_class.c133 ll_init_map(&rth); in tc_class_modify()
141 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in tc_class_modify()
286 ll_init_map(&rth); in tc_class_list()
296 if (rtnl_dump_request(&rth, RTM_GETTCLASS, &t, sizeof(t)) < 0) { in tc_class_list()
301 if (rtnl_dump_filter(&rth, print_class, stdout) < 0) { in tc_class_list()
Dtc_qdisc.c180 ll_init_map(&rth); in tc_qdisc_modify()
189 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in tc_qdisc_modify()
311 ll_init_map(&rth); in tc_qdisc_list()
321 if (rtnl_dump_request(&rth, RTM_GETQDISC, &t, sizeof(t)) < 0) { in tc_qdisc_list()
326 if (rtnl_dump_filter(&rth, print_qdisc, stdout) < 0) { in tc_qdisc_list()
Dm_action.c463 req.n.nlmsg_seq = rth.dump = ++rth.seq; in tc_action_gd()
467 if (rtnl_talk(&rth, &req.n, 0, 0, ans) < 0) { in tc_action_gd()
512 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) { in tc_action_modify()
570 if (rtnl_dump_request(&rth, event, (void *)&req.t, msg_size) < 0) { in tc_act_list_or_flush()
574 ret = rtnl_dump_filter(&rth, print_action, stdout); in tc_act_list_or_flush()
582 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) { in tc_act_list_or_flush()
Dtc_filter.c162 ll_init_map(&rth); in tc_filter_modify()
170 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) { in tc_filter_modify()
329 ll_init_map(&rth); in tc_filter_list()
339 if (rtnl_dump_request(&rth, RTM_GETTFILTER, &t, sizeof(t)) < 0) { in tc_filter_list()
344 if (rtnl_dump_filter(&rth, print_filter, stdout) < 0) { in tc_filter_list()
/external/iproute2/include/
Dlibnetlink.h23 extern int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions);
24 extern int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, int protocol);
25 extern void rtnl_close(struct rtnl_handle *rth);
26 extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type);
27 extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len);
38 extern int rtnl_dump_filter_l(struct rtnl_handle *rth,
40 extern int rtnl_dump_filter(struct rtnl_handle *rth, rtnl_filter_t filter,
44 extern int rtnl_send(struct rtnl_handle *rth, const void *buf, int);
45 extern int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int);
Dll_map.h6 extern int ll_init_map(struct rtnl_handle *rth);
/external/iproute2/ip/
Dxfrm_policy.c250 struct rtnl_handle rth; in xfrm_policy_modify() local
393 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_policy_modify()
399 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in xfrm_policy_modify()
402 rtnl_close(&rth); in xfrm_policy_modify()
563 struct rtnl_handle rth; in xfrm_policy_get_or_delete() local
656 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_policy_get_or_delete()
676 if (rtnl_talk(&rth, &req.n, 0, 0, res_nlbuf) < 0) in xfrm_policy_get_or_delete()
679 rtnl_close(&rth); in xfrm_policy_get_or_delete()
715 struct rtnl_handle *rth = xb->rth; in xfrm_policy_keep() local
760 new_n->nlmsg_seq = ++rth->seq; in xfrm_policy_keep()
[all …]
Dxfrm_state.c238 struct rtnl_handle rth; in xfrm_state_modify() local
545 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_modify()
551 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in xfrm_state_modify()
554 rtnl_close(&rth); in xfrm_state_modify()
561 struct rtnl_handle rth; in xfrm_state_allocspi() local
681 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_allocspi()
688 if (rtnl_talk(&rth, &req.n, 0, 0, res_n) < 0) in xfrm_state_allocspi()
696 rtnl_close(&rth); in xfrm_state_allocspi()
818 struct rtnl_handle rth; in xfrm_state_get_or_delete() local
871 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) in xfrm_state_get_or_delete()
[all …]
Dipaddrlabel.c47 extern struct rtnl_handle rth;
112 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { in ipaddrlabel_list()
117 if (rtnl_dump_filter(&rth, print_addrlabel, stdout) < 0) { in ipaddrlabel_list()
186 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in ipaddrlabel_modify()
234 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { in ipaddrlabel_flush()
239 if (rtnl_dump_filter(&rth, flush_addrlabel, NULL) < 0) { in ipaddrlabel_flush()
249 ll_init_map(&rth); in do_ipaddrlabel()
Drtmon.c70 struct rtnl_handle rth; in main() local
156 if (rtnl_open(&rth, groups) < 0) in main()
159 if (rtnl_wilddump_request(&rth, AF_UNSPEC, RTM_GETLINK) < 0) { in main()
166 if (rtnl_dump_filter(&rth, dump_msg, fp) < 0) { in main()
173 if (rtnl_listen(&rth, dump_msg, (void*)fp) < 0) in main()
Dip.c37 struct rtnl_handle rth = { .fd = -1 }; variable
119 if (rtnl_open(&rth, 0) < 0) { in batch()
143 rtnl_close(&rth); in batch()
260 if (rtnl_open(&rth, 0) < 0) in main()
269 rtnl_close(&rth); in main()
Dipneigh.c86 if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { in flush_update()
170 ll_init_map(&rth); in ipneigh_modify()
177 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in ipneigh_modify()
245 fn->nlmsg_seq = ++rth.seq; in print_neigh()
377 ll_init_map(&rth); in do_show_or_flush()
396 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETNEIGH) < 0) { in do_show_or_flush()
401 if (rtnl_dump_filter(&rth, print_neigh, stdout) < 0) { in do_show_or_flush()
430 if (rtnl_dump_request(&rth, RTM_GETNEIGH, &ndm, sizeof(struct ndmsg)) < 0) { in do_show_or_flush()
435 if (rtnl_dump_filter(&rth, print_neigh, stdout) < 0) { in do_show_or_flush()
Dipmonitor.c122 rtnl_close(&rth); in do_ipmonitor()
189 if (rtnl_open(&rth, groups) < 0) in do_ipmonitor()
191 ll_init_map(&rth); in do_ipmonitor()
193 if (rtnl_listen(&rth, accept_msg, stdout) < 0) in do_ipmonitor()
Diproute.c119 if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { in flush_update()
323 fn->nlmsg_seq = ++rth.seq; in print_route()
970 ll_init_map(&rth); in iproute_modify()
1017 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in iproute_modify()
1023 static int rtnl_rtcache_request(struct rtnl_handle *rth, int family) in rtnl_rtcache_request() argument
1039 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in rtnl_rtcache_request()
1043 return sendto(rth->fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()
1246 ll_init_map(&rth); in iproute_list_flush_or_save()
1290 if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { in iproute_list_flush_or_save()
1295 if (rtnl_dump_filter(&rth, filter_fn, stdout) < 0) { in iproute_list_flush_or_save()
[all …]
Diprule.c29 extern struct rtnl_handle rth;
223 if (rtnl_wilddump_request(&rth, af, RTM_GETRULE) < 0) { in iprule_list()
228 if (rtnl_dump_filter(&rth, print_rule, stdout) < 0) { in iprule_list()
378 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in iprule_modify()
426 if (rtnl_wilddump_request(&rth, af, RTM_GETRULE) < 0) { in iprule_flush()
431 if (rtnl_dump_filter(&rth, flush_rule, NULL) < 0) { in iprule_flush()
Dxfrm_monitor.c343 extern struct rtnl_handle rth;
356 rtnl_close(&rth); in do_xfrm_monitor()
414 if (rtnl_open_byproto(&rth, groups, NETLINK_XFRM) < 0) in do_xfrm_monitor()
417 if (rtnl_listen(&rth, xfrm_accept_msg, (void*)stdout) < 0) in do_xfrm_monitor()
/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/misc/
Darpd.c61 struct rtnl_handle rth; variable
286 return rtnl_send(&rth, &req, req.n.nlmsg_len) <= 0; in respond_to_kernel()
431 rtnl_wilddump_request(&rth, AF_INET, RTM_GETNEIGH); in load_initial_table()
453 status = recvmsg(rth.fd, &msg, MSG_DONTWAIT); in get_kern_msg()
778 if (rtnl_open(&rth, RTMGRP_NEIGH) < 0) { in main()
782 pset[1].fd = rth.fd; in main()

12