/external/iproute2/lib/ |
libnetlink.c | 30 void rtnl_close(struct rtnl_handle *rth) 32 if (rth->fd >= 0) { 33 close(rth->fd); 34 rth->fd = -1; 38 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, 44 memset(rth, 0, sizeof(*rth)); 46 rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol); 47 if (rth->fd < 0) { 52 if (setsockopt(rth->fd,SOL_SOCKET,SO_SNDBUF,&sndbuf,sizeof(sndbuf)) < 0) [all...] |
ll_map.c | 182 int ll_init_map(struct rtnl_handle *rth) 184 if (rtnl_wilddump_request(rth, AF_UNSPEC, RTM_GETLINK) < 0) { 189 if (rtnl_dump_filter(rth, ll_remember_index, &idxmap, NULL, NULL) < 0) {
|
/dalvik/libcore/xml/src/main/java/org/apache/xalan/transformer/ |
ClonerToResultTree.java | 133 SerializationHandler rth, 143 dtm.dispatchCharactersEvents(node, rth, false); 157 // rth.startElement(ns, localName, dtm.getNodeNameX(node), null); 160 rth.startElement(ns, localName, dtm.getNodeNameX(node)); 167 SerializerUtils.addAttributes(rth, node); 168 SerializerUtils.processNSDecls(rth, node, nodeType, dtm); 173 rth.startCDATA(); 174 dtm.dispatchCharactersEvents(node, rth, false); 175 rth.endCDATA(); 178 SerializerUtils.addAttribute(rth, node) [all...] |
/external/iproute2/include/ |
libnetlink.h | 22 extern int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions); 23 extern int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, int protocol); 24 extern void rtnl_close(struct rtnl_handle *rth); 25 extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type); 26 extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len); 39 extern int rtnl_dump_filter_l(struct rtnl_handle *rth, 41 extern int rtnl_dump_filter(struct rtnl_handle *rth, rtnl_filter_t filter, 50 extern int rtnl_send(struct rtnl_handle *rth, const char *buf, int); 51 extern int rtnl_send_check(struct rtnl_handle *rth, const char *buf, int);
|
ll_map.h | 6 extern int ll_init_map(struct rtnl_handle *rth);
|
/external/iproute2/tc/ |
tc_monitor.c | 69 struct rtnl_handle rth; local 98 if (rtnl_open(&rth, groups) < 0) 101 ll_init_map(&rth); 103 if (rtnl_listen(&rth, accept_tcmsg, (void*)stdout) < 0) { 104 rtnl_close(&rth); 108 rtnl_close(&rth);
|
tc_common.h | 4 extern struct rtnl_handle rth;
|
tc.c | 41 struct rtnl_handle rth; variable in typeref:struct:rtnl_handle 265 if (rtnl_open(&rth, 0) < 0) { 289 rtnl_close(&rth); 348 if (rtnl_open(&rth, 0) < 0) { 354 rtnl_close(&rth);
|
tc_class.c | 133 ll_init_map(&rth); 141 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 286 ll_init_map(&rth); 296 if (rtnl_dump_request(&rth, RTM_GETTCLASS, &t, sizeof(t)) < 0) { 301 if (rtnl_dump_filter(&rth, print_class, stdout, NULL, NULL) < 0) {
|
tc_filter.c | 162 ll_init_map(&rth); 170 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) { 329 ll_init_map(&rth); 339 if (rtnl_dump_request(&rth, RTM_GETTFILTER, &t, sizeof(t)) < 0) { 344 if (rtnl_dump_filter(&rth, print_filter, stdout, NULL, NULL) < 0) {
|
tc_qdisc.c | 180 ll_init_map(&rth); 189 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 311 ll_init_map(&rth); 321 if (rtnl_dump_request(&rth, RTM_GETQDISC, &t, sizeof(t)) < 0) { 326 if (rtnl_dump_filter(&rth, print_qdisc, stdout, NULL, NULL) < 0) {
|
/external/iproute2/genl/ |
ctrl.c | 44 struct rtnl_handle rth; local 63 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { 70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) { 111 rtnl_close(&rth); 286 struct rtnl_handle rth; local 306 if (rtnl_open_byproto(&rth, 0, NETLINK_GENERIC) < 0) { 337 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) { 351 nlh->nlmsg_seq = rth.dump = ++rth.seq; 353 if (rtnl_send(&rth, (const char *) nlh, nlh->nlmsg_len) < 0) 370 struct rtnl_handle rth; local [all...] |
/external/iproute2/ip/ |
xfrm_policy.c | 226 struct rtnl_handle rth; local 337 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) 343 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 346 rtnl_close(&rth); 507 struct rtnl_handle rth; local 581 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) 587 if (rtnl_talk(&rth, &req.n, 0, 0, res_nlbuf, NULL, NULL) < 0) 590 rtnl_close(&rth); 626 struct rtnl_handle *rth = xb->rth; local 687 struct rtnl_handle rth; local 875 struct rtnl_handle rth; local 904 struct rtnl_handle rth; local [all...] |
xfrm_state.c | 232 struct rtnl_handle rth; local 493 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) 499 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 502 rtnl_close(&rth); 509 struct rtnl_handle rth; local 617 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0) 624 if (rtnl_talk(&rth, &req.n, 0, 0, res_n, NULL, NULL) < 0) 632 rtnl_close(&rth); 754 struct rtnl_handle rth; local 793 if (rtnl_open_byproto(&rth, 0, NETLINK_XFRM) < 0 831 struct rtnl_handle *rth = xb->rth; local 881 struct rtnl_handle rth; local 1033 struct rtnl_handle rth; local 1061 struct rtnl_handle rth; local [all...] |
ip.c | 35 struct rtnl_handle rth = { .fd = -1 }; variable in typeref:struct:rtnl_handle 109 if (rtnl_open(&rth, 0) < 0) { 132 rtnl_close(&rth); 239 if (rtnl_open(&rth, 0) < 0) 248 rtnl_close(&rth);
|
rtmon.c | 70 struct rtnl_handle rth; local 156 if (rtnl_open(&rth, groups) < 0) 159 if (rtnl_wilddump_request(&rth, AF_UNSPEC, RTM_GETLINK) < 0) { 166 if (rtnl_dump_filter(&rth, dump_msg, fp, NULL, NULL) < 0) { 173 if (rtnl_listen(&rth, dump_msg, (void*)fp) < 0)
|
ipaddrlabel.c | 47 extern struct rtnl_handle rth; 118 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { 123 if (rtnl_dump_filter(&rth, print_addrlabel, stdout, NULL, NULL) < 0) { 192 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 240 if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) { 245 if (rtnl_dump_filter(&rth, flush_addrlabel, NULL, NULL, NULL) < 0) {
|
ipmonitor.c | 122 rtnl_close(&rth); 189 if (rtnl_open(&rth, groups) < 0) 191 ll_init_map(&rth); 193 if (rtnl_listen(&rth, accept_msg, stdout) < 0)
|
ipneigh.c | 86 if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { 170 ll_init_map(&rth); 177 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 244 fn->nlmsg_seq = ++rth.seq; 372 ll_init_map(&rth); 391 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETNEIGH) < 0) { 396 if (rtnl_dump_filter(&rth, print_neigh, stdout, NULL, NULL) < 0) { 423 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETNEIGH) < 0) { 428 if (rtnl_dump_filter(&rth, print_neigh, stdout, NULL, NULL) < 0) {
|
iprule.c | 29 extern struct rtnl_handle rth; 204 if (rtnl_wilddump_request(&rth, af, RTM_GETRULE) < 0) { 209 if (rtnl_dump_filter(&rth, print_rule, stdout, NULL, NULL) < 0) { 348 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) 396 if (rtnl_wilddump_request(&rth, af, RTM_GETRULE) < 0) { 401 if (rtnl_dump_filter(&rth, flush_rule, NULL, NULL, NULL) < 0) {
|
ip_common.h | 49 extern struct rtnl_handle rth;
|
xfrm_monitor.c | 300 extern struct rtnl_handle rth; 313 rtnl_close(&rth); 369 //ll_init_map(&rth); 371 if (rtnl_open_byproto(&rth, groups, NETLINK_XFRM) < 0) 374 if (rtnl_listen(&rth, xfrm_accept_msg, (void*)stdout) < 0)
|
/external/iproute2/man/man3/ |
libnetlink.3 | 14 int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions) 16 int rtnl_wilddump_request(struct rtnl_handle *rth, int family, int type) 18 int rtnl_send(struct rtnl_handle *rth, char *buf, int len) 20 int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) 22 int rtnl_dump_filter(struct rtnl_handle *rth, 58 .B rth 145 .B rth.
|
/dalvik/libcore/xml/src/main/java/org/apache/xalan/templates/ |
ElemTextLiteral.java | 206 SerializationHandler rth = transformer.getResultTreeHandler(); local 210 rth.processingInstruction(javax.xml.transform.Result.PI_DISABLE_OUTPUT_ESCAPING, ""); 213 rth.characters(m_ch, 0, m_ch.length); 217 rth.processingInstruction(javax.xml.transform.Result.PI_ENABLE_OUTPUT_ESCAPING, "");
|
ElemApplyTemplates.java | 223 final SerializationHandler rth = transformer.getSerializationHandler(); local 224 // ContentHandler chandler = rth.getContentHandler(); 294 // if(rth.m_elemIsPending || rth.m_docPending) 295 // rth.flushPending(true); 299 dtm.dispatchCharactersEvents(child, rth, false);
|