Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 133) sorted by relevance

123456

/external/chromium-trace/trace-viewer/third_party/webapp2/tests/
Drouting_test.py12 route = Route(r'/hello', None)
13 route, args, kwargs = route.match(Request.blank('/hello'))
15 url = route.build(Request.blank('/'), (), {})
18 route = Route(r'/hello/world/', None)
19 route, args, kwargs = route.match(Request.blank('/hello/world/'))
21 url = route.build(Request.blank('/'), (), {})
25 route = Route(r'/<:\d>', None)
26 self.assertEqual(route.match(Request.blank('/1')), (route, ('1',), {}))
27 self.assertEqual(route.match(Request.blank('/2')), (route, ('2',), {}))
29 route = Route(r'/<:\d{2,3}>', None)
[all …]
/external/libnl/lib/route/
Droute_obj.c277 struct rtnl_route *route = (struct rtnl_route *) obj; in route_dump_stats() local
281 if (route->ce_mask & ROUTE_ATTR_CACHEINFO) { in route_dump_stats()
282 struct rtnl_rtcacheinfo *ci = &route->rt_cacheinfo; in route_dump_stats()
294 struct rtnl_route *route = (struct rtnl_route *) obj; in route_dump_env() local
301 nl_af2str(route->rt_family, buf, sizeof(buf))); in route_dump_env()
303 if (route->ce_mask & ROUTE_ATTR_DST) in route_dump_env()
305 nl_addr2str(route->rt_dst, buf, sizeof(buf))); in route_dump_env()
307 if (route->ce_mask & ROUTE_ATTR_SRC) in route_dump_env()
309 nl_addr2str(route->rt_src, buf, sizeof(buf))); in route_dump_env()
311 if (route->ce_mask & ROUTE_ATTR_PREF_SRC) in route_dump_env()
[all …]
Droute.c33 struct rtnl_route *route; in route_msg_parser() local
36 if ((err = rtnl_route_parse(nlh, &route)) < 0) in route_msg_parser()
39 err = pp->pp_cb((struct nl_object *) route, pp); in route_msg_parser()
41 rtnl_route_put(route); in route_msg_parser()
128 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument
133 if ((err = rtnl_route_build_add_request(route, flags, &msg)) < 0) in rtnl_route_add()
150 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument
155 if ((err = rtnl_route_build_del_request(route, flags, &msg)) < 0) in rtnl_route_delete()
/external/libnl/include/
DMakefile.am31 netlink/route/cls/fw.h \
32 netlink/route/cls/police.h \
33 netlink/route/cls/u32.h \
34 netlink/route/link/info-api.h \
35 netlink/route/link/vlan.h \
36 netlink/route/sch/cbq.h \
37 netlink/route/sch/dsmark.h \
38 netlink/route/sch/fifo.h \
39 netlink/route/sch/htb.h \
40 netlink/route/sch/netem.h \
[all …]
/external/libnl/src/
DMakefile.am20 nl-route-add nl-route-delete nl-route-get nl-route-list \
27 genl_ctrl_list_LDADD = -lnl-genl -lnl-route
39 nl_addr_add_LDADD = -lnl-route
41 nl_addr_delete_LDADD = -lnl-route
43 nl_addr_list_LDADD = -lnl-route
46 nl_link_list_LDADD = -lnl-route
48 nl_link_set_LDADD = -lnl-route
50 nl_link_stats_LDADD = -lnl-route
52 nl_link_ifindex2name_LDADD = -lnl-route
54 nl_link_name2ifindex_LDADD = -lnl-route
[all …]
Dnl-route-add.c55 struct rtnl_route *route; in main() local
66 route = nl_cli_route_alloc(); in main()
108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
110 case 't': nl_cli_route_parse_table(route, optarg); break; in main()
111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main()
112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main()
115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main()
[all …]
Dnl-route-list.c54 struct rtnl_route *route; in main() local
64 route = nl_cli_route_alloc(); in main()
108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main()
109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
110 case 't': nl_cli_route_parse_table(route, optarg); break; in main()
111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main()
112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main()
113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main()
115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main()
[all …]
Dnl-route-delete.c63 struct rtnl_route *route = (struct rtnl_route *) obj; in delete_cb() local
73 if ((err = rtnl_route_delete(sock, route, 0)) < 0) in delete_cb()
87 struct rtnl_route *route; in main() local
94 route = nl_cli_route_alloc(); in main()
141 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main()
142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
143 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main()
144 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main()
145 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main()
146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
[all …]
/external/libnl/src/lib/
Droute.c24 struct rtnl_route *route; in nl_cli_route_alloc() local
26 route = rtnl_route_alloc(); in nl_cli_route_alloc()
27 if (!route) in nl_cli_route_alloc()
30 return route; in nl_cli_route_alloc()
47 void nl_cli_route_parse_family(struct rtnl_route *route, char *arg) in nl_cli_route_parse_family() argument
52 rtnl_route_set_family(route, family); in nl_cli_route_parse_family()
55 void nl_cli_route_parse_dst(struct rtnl_route *route, char *arg) in nl_cli_route_parse_dst() argument
60 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_dst()
61 if ((err = rtnl_route_set_dst(route, addr)) < 0) in nl_cli_route_parse_dst()
68 void nl_cli_route_parse_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_src() argument
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DSocketConnector.java65 public ConnectedSocket connectCleartext(int connectTimeout, int readTimeout, Route route) in connectCleartext() argument
67 Socket socket = connectRawSocket(readTimeout, connectTimeout, route); in connectCleartext()
68 return new ConnectedSocket(route, socket); in connectCleartext()
72 int writeTimeout, Request request, Route route, List<ConnectionSpec> connectionSpecs, in connectTls() argument
75 Address address = route.getAddress(); in connectTls()
79 Socket socket = connectRawSocket(readTimeout, connectTimeout, route); in connectTls()
80 if (route.requiresTunnel()) { in connectTls()
81 createTunnel(readTimeout, writeTimeout, request, route, socket); in connectTls()
130 return new ConnectedSocket(route, sslSocket, alpnProtocol, handshake); in connectTls()
147 private Socket connectRawSocket(int soTimeout, int connectTimeout, Route route) in connectRawSocket() argument
[all …]
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DConnPoolByRoute.java157 protected RouteSpecificPool newRouteSpecificPool(HttpRoute route) { in newRouteSpecificPool() argument
158 return new RouteSpecificPool(route, connPerRoute.getMaxForRoute(route)); in newRouteSpecificPool()
186 protected RouteSpecificPool getRoutePool(HttpRoute route, in getRoutePool() argument
192 rospl = routeToPool.get(route); in getRoutePool()
195 rospl = newRouteSpecificPool(route); in getRoutePool()
196 routeToPool.put(route, rospl); in getRoutePool()
208 public int getConnectionsInPool(HttpRoute route) { in getConnectionsInPool() argument
213 RouteSpecificPool rospl = getRoutePool(route, false); in getConnectionsInPool()
223 final HttpRoute route, in requestPoolEntry() argument
243 return getEntryBlocking(route, state, timeout, tunit, aborter); in requestPoolEntry()
[all …]
DRouteSpecificPool.java60 protected final HttpRoute route; field in RouteSpecificPool
85 public RouteSpecificPool(HttpRoute route, int maxEntries) { in RouteSpecificPool() argument
86 this.route = route; in RouteSpecificPool()
100 return route; in getRoute()
190 ("No entry created for this pool. " + route); in freeEntry()
194 ("No entry allocated from this pool. " + route); in freeEntry()
210 if (!route.equals(entry.getPlannedRoute())) { in createdEntry()
213 "\npool: " + route + in createdEntry()
/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/
DMixin.java45 public Object newInstance(int style, String[] classes, int[] route); in newInstance() argument
102 private int[] route; field in Mixin.Generator
139 Route r = route(delegates); in create()
141 route = r.route; in create()
165 …eturn (Mixin)super.create(KEY_FACTORY.newInstance(style, ReflectUtils.getNames( classes ), route)); in create()
171 new MixinEmitter(v, getClassName(), classes, route); in generateClass()
192 return (Class[])route(delegates).classes.clone(); in getClasses()
199 private static Route route(Object[] delegates) { in route() method in Mixin
201 Route route = (Route)ROUTE_CACHE.get(key); in route() local
202 if (route == null) { in route()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnection.java62 private final Route route; field in Connection
80 public Connection(ConnectionPool pool, Route route) { in Connection() argument
82 this.route = route; in Connection()
141 if (route.address.getSslSocketFactory() != null) { in connect()
144 request, route, connectionSpecs, connectionRetryEnabled); in connect()
152 connectedSocket = socketConnector.connectCleartext(connectTimeout, readTimeout, route); in connect()
163 spdyConnection = new SpdyConnection.Builder(route.address.uriHost, true, socket) in connect()
184 List<ConnectionSpec> connectionSpecs = route.address.getConnectionSpecs(); in connectAndSetOwner()
203 return route; in getRoute()
322 + route.address.uriHost + ":" + route.address.uriPort in toString()
[all …]
/external/apache-http/src/org/apache/http/impl/conn/
DAbstractPoolEntry.java86 protected volatile HttpRoute route; field in AbstractPoolEntry
103 HttpRoute route) { in AbstractPoolEntry() argument
110 this.route = route; in AbstractPoolEntry()
141 public void open(HttpRoute route, in open() argument
145 if (route == null) { in open()
166 this.tracker = new RouteTracker(route); in open()
167 final HttpHost proxy = route.getProxyHost(); in open()
171 (proxy != null) ? proxy : route.getTargetHost(), in open()
172 route.getLocalAddress(), in open()
DDefaultHttpRoutePlanner.java94 HttpRoute route = in determineRoute() local
96 if (route != null) in determineRoute()
97 return route; in determineRoute()
118 route = new HttpRoute(target, local, secure); in determineRoute()
120 route = new HttpRoute(target, local, proxy, secure); in determineRoute()
122 return route; in determineRoute()
/external/chromium-trace/trace-viewer/third_party/webapp2/webapp2_extras/
Droutes.py33 for route in self.routes:
34 for r in route.get_routes():
43 for route in self.get_children():
44 for r in route.get_match_routes():
53 for route in self.get_children():
54 for n, r in route.get_build_routes():
156 for route in self.get_routes():
157 setattr(route, self._attr, prefix + getattr(route, self._attr))
337 for route in iter_func():
339 match = route.match(request)
[all …]
/external/dhcpcd/dhcpcd-hooks/
D25-static-routes.conf25 setprop dhcp.${interface}.route${next_set_interface}.dest $1
27 setprop dhcp.${interface}.route${next_set_interface}.via $1
37 setprop dhcp.${interface}.route${next_clear_interface}.dest ""
38 setprop dhcp.${interface}.route${next_clear_interface}.via ""
42 setprop dhcp.${interface}.route${next_clear_interface}.dest ""
43 setprop dhcp.${interface}.route${next_clear_interface}.via ""
/external/apache-http/src/org/apache/http/conn/params/
DConnRouteParams.java140 HttpRoute route = (HttpRoute) in getForcedRoute() local
142 if ((route != null) && NO_ROUTE.equals(route)) { in getForcedRoute()
144 route = null; in getForcedRoute()
146 return route; in getForcedRoute()
161 HttpRoute route) { in setForcedRoute() argument
165 params.setParameter(FORCED_ROUTE, route); in setForcedRoute()
DConnPerRouteBean.java86 public void setMaxForRoute(final HttpRoute route, int max) { in setMaxForRoute() argument
87 if (route == null) { in setMaxForRoute()
95 this.maxPerHostMap.put(route, Integer.valueOf(max)); in setMaxForRoute()
98 public int getMaxForRoute(final HttpRoute route) { in getMaxForRoute() argument
99 if (route == null) { in getMaxForRoute()
103 Integer max = this.maxPerHostMap.get(route); in getMaxForRoute()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/impl/client/
DDefaultRequestDirector.java298 final HttpRoute route) throws ProtocolException { in rewriteRequestURI() argument
302 if (route.getProxyHost() != null && !route.isTunnelled()) { in rewriteRequestURI()
305 HttpHost target = route.getTargetHost(); in rewriteRequestURI()
354 HttpRoute route = roureq.getRoute(); in execute() local
363 route, userToken); in execute()
394 managedConn.open(route, context, params); in execute()
400 establishRoute(route, context); in execute()
413 rewriteRequestURI(wrapper, route); in execute()
419 target = route.getTargetHost(); in execute()
422 HttpHost proxy = route.getProxyHost(); in execute()
[all …]
/external/apache-http/src/org/apache/http/impl/client/
DRoutedRequest.java56 protected final HttpRoute route; field in RoutedRequest
64 public RoutedRequest(final RequestWrapper req, final HttpRoute route) { in RoutedRequest() argument
67 this.route = route; in RoutedRequest()
75 return route; in getRoute()
DDefaultRequestDirector.java265 final HttpRoute route) throws ProtocolException { in rewriteRequestURI() argument
269 if (route.getProxyHost() != null && !route.isTunnelled()) { in rewriteRequestURI()
272 HttpHost target = route.getTargetHost(); in rewriteRequestURI()
318 HttpRoute route = roureq.getRoute(); in execute() local
326 route, userToken); in execute()
366 managedConn.open(route, context, params); in execute()
376 establishRoute(route, context); in execute()
389 rewriteRequestURI(wrapper, route); in execute()
396 target = route.getTargetHost(); in execute()
399 HttpHost proxy = route.getProxyHost(); in execute()
[all …]
/external/ipsec-tools/src/racoon/samples/roadwarrior/client/
Dphase1-down.sh36 route delete default
37 route delete ${REMOTE_ADDR}
38 route add default ${DEFAULT_GW} -ifa ${LOCAL_ADDR}
42 route delete default
43 route delete ${REMOTE_ADDR}
45 route add default gw ${DEFAULT_GW}
Dphase1-up.sh37 route delete default
38 route add default ${DEFAULT_GW} -ifa ${INTERNAL_ADDR4}
39 route add ${REMOTE_ADDR} ${DEFAULT_GW}
44 route delete default
45 route add ${REMOTE_ADDR} gw ${DEFAULT_GW} dev ${if}
46 route add default gw ${DEFAULT_GW} dev ${if}:1

123456