Home
last modified time | relevance | path

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

123456

/external/chromium-trace/catapult/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/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/iproute2/testsuite/tests/ip/route/
Dadd_default_route.t13 ts_ip "$0" "Add default route via 1.1.1.2" route add default via 1.1.1.2
15 ts_ip "$0" "Show IPv4 default route" -4 route show default
19 ts_ip "$0" "Add another IPv4 route dst 2.2.2.0/24" -4 route add 2.2.2.0/24 dev $DEV
20 ts_ip "$0" "Show IPv4 default route" -4 route show default
25 ts_ip "$0" "Add default route via dead:beef::2" route add default via dead:beef::2
26 ts_ip "$0" "Show IPv6 default route" -6 route show default
30 ts_ip "$0" "Add another IPv6 route dst cafe:babe::/64" -6 route add cafe:babe::/64 dev $DEV
31 ts_ip "$0" "Show IPv6 default route" -6 route show default
/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/catapult/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/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnection.java77 private final Route route; field in Connection
95 public Connection(ConnectionPool pool, Route route) { in Connection() argument
97 this.route = route; in Connection()
158 Proxy proxy = route.getProxy(); in connect()
159 Address address = route.getAddress(); in connect()
161 if (route.address.getSslSocketFactory() == null in connect()
196 Platform.get().connectSocket(socket, route.getSocketAddress(), connectTimeout); in connectSocket()
198 if (route.address.getSslSocketFactory() != null) { in connectSocket()
204 framedConnection = new FramedConnection.Builder(route.address.uriHost, true, socket) in connectSocket()
214 if (route.requiresTunnel()) { in connectTls()
[all …]
/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/v1/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/
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 …]
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()
/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
/external/nist-sip/java/gov/nist/javax/sip/parser/
DRouteParser.java47 public RouteParser(String route) { in RouteParser() argument
48 super(route); in RouteParser()
70 Route route = new Route(); in parse() local
71 super.parse(route); in parse()
72 routeList.add(route); in parse()

123456