Home
last modified time | relevance | path

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

12345678

/external/libnl/lib/route/
Droute_obj.c282 struct rtnl_route *route = (struct rtnl_route *) obj; in route_dump_stats() local
286 if (route->ce_mask & ROUTE_ATTR_CACHEINFO) { in route_dump_stats()
287 struct rtnl_rtcacheinfo *ci = &route->rt_cacheinfo; in route_dump_stats()
300 struct rtnl_route *route = (struct rtnl_route *) obj; in route_keygen() local
314 if (route->rt_dst) in route_keygen()
315 addr = route->rt_dst; in route_keygen()
326 rkey->rt_family = route->rt_family; in route_keygen()
327 rkey->rt_tos = route->rt_tos; in route_keygen()
328 rkey->rt_table = route->rt_table; in route_keygen()
329 rkey->rt_prio = route->rt_prio; in route_keygen()
[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()
133 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument
138 if ((err = rtnl_route_build_add_request(route, flags, &msg)) < 0) in rtnl_route_add()
155 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument
160 if ((err = rtnl_route_build_del_request(route, flags, &msg)) < 0) in rtnl_route_delete()
/external/libnl/include/
DMakefile.am34 netlink/route/action.h \
35 netlink/route/act/mirred.h \
36 netlink/route/cls/ematch/cmp.h \
37 netlink/route/cls/ematch/meta.h \
38 netlink/route/cls/ematch/nbyte.h \
39 netlink/route/cls/ematch/text.h \
40 netlink/route/cls/basic.h \
41 netlink/route/cls/cgroup.h \
42 netlink/route/cls/ematch.h \
43 netlink/route/cls/fw.h \
[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/ltp/testcases/network/stress/route/
D00_Descriptions.txt2 Verify the kernel is not crashed when the destination of an IPv4 route
3 is changed frequently by route command
6 Verify the kernel is not crashed when the destination of an IPv4 route
10 Verify the kernel is not crashed when the gateway of an IPv4 route is
11 changed frequently by route command
14 Verify the kernel is not crashed when the gateway of an IPv4 route is
18 Verify the kernel is not crashed when the interface of an IPv4 route is
19 changed frequently by route command
22 Verify the kernel is not crashed when the interface of an IPv4 route is
26 Verify the kernel is not crashed when the IPv4 route is modified by
[all …]
/external/libnl/src/
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-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 …]
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 …]
/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/ltp/runtest/
Dnet_stress.interfaces10 if4-route-adddel if-route-adddel
11 if4-route-addlarge if-route-addlarge
17 if6-route-adddel if-route-adddel -6
18 if6-route-addlarge if-route-addlarge -6
/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/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java68 private final Route route; field in RealConnection
88 public RealConnection(Route route) { in RealConnection() argument
89 this.route = route; in RealConnection()
98 Proxy proxy = route.getProxy(); in connect()
99 Address address = route.getAddress(); in connect()
101 if (route.getAddress().getSslSocketFactory() == null in connect()
141 Platform.get().connectSocket(rawSocket, route.getSocketAddress(), connectTimeout); in connectSocket()
143 throw new ConnectException("Failed to connect to " + route.getSocketAddress()); in connectSocket()
148 if (route.getAddress().getSslSocketFactory() != null) { in connectSocket()
159 .socket(socket, route.getAddress().url().host(), source, sink) in connectSocket()
[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()
DSingleClientConnManager.java184 final HttpRoute route, in requestConnection() argument
196 route, state); in requestConnection()
212 public ManagedClientConnection getConnection(HttpRoute route, Object state) {
214 if (route == null) {
220 log.debug("Get connection for route " + route);
236 !tracker.toRoute().equals(route));
271 managedConn = new ConnAdapter(uniquePoolEntry, route);
463 protected ConnAdapter(PoolEntry entry, HttpRoute route) {
466 entry.route = route;
/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/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/ltp/testcases/network/stress/interface/
Dif-route-adddel21 TCID=if-route-adddel
62 rt_cmd) route -A $inet add ${new_rt}${opt_rt} dev $iface ;;
63 ip_cmd) ip route add ${new_rt}${opt_rt} dev $iface ;;
71 rt_cmd) route -A $inet del ${new_rt}${opt_rt} dev $iface ;;
72 ip_cmd) ip route del ${new_rt}${opt_rt} dev $iface ;;
92 tst_check_cmds route
/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()

12345678