Home
last modified time | relevance | path

Searched refs:routes (Results 1 – 25 of 64) sorted by relevance

123

/external/scapy/scapy/
Droute6.py41 self.routes = []
47 self.routes = read_routes6()
48 if self.routes == []:
54 for net, msk, gw, iface, cset, metric in self.routes:
92 self.routes.append(self.make_route(*args, **kargs))
105 l = [x for x in self.routes if in6_ptop(x[0]) == dst and x[1] == plen]
108 l = [x for x in self.routes if in6_ptop(x[2]) == gw]
114 i=self.routes.index(l[0])
116 del(self.routes[i])
126 for i, route in enumerate(self.routes):
[all …]
Droute.py36 self.routes = read_routes()
40 for net, msk, gw, iface, addr, metric in self.routes:
77 self.routes.append(self.make_route(*args,**kargs))
85 i=self.routes.index(route)
86 del(self.routes[i])
98 for i, route in enumerate(self.routes):
106 self.routes[i] = (the_net,the_msk,gw,iface,the_addr,metric)
108 self.routes[i] = (net,msk,gw,iface,the_addr,metric)
116 for rt in self.routes:
123 self.routes=new_routes
[all …]
/external/perfetto/ui/src/frontend/
Drouter.ts27 private defaultRoute: string, private routes: RouteMap, property in Router
29 if (!(defaultRoute in routes)) {
57 if (!(route in this.routes)) {
70 const newRoute = hashRoute in this.routes ? hashRoute : this.defaultRoute;
80 if (!route || !(route in this.routes)) {
81 return this.routes[this.defaultRoute];
83 return this.routes[route];
/external/scapy/scapy/arch/windows/
D__init__.py794 routes = []
805 routes.append((atol(line[0]), atol(line[1]), "0.0.0.0", iface,
813 routes.append((dst, mask, gw, iface, iface.ip, metric))
814 return routes
817 routes=[]
823 routes.append((atol(line[0]), atol(line[1]), line[2], iface, ip, int(line[4])))
826 return routes
829 routes = []
831 return routes
835 routes = _read_routes_post2008()
[all …]
/external/autotest/client/cros/
Drouting.py93 routes = []
101 routes.append(IPv4Route(interface, destination, gateway, flags, mask))
103 return routes
128 routes = []
136 routes.append(IPv6Route(interface, destination, gateway, flags, prefix))
138 return routes
147 self.routes = parseIPv4Routes(routelist_v4)
153 self.routes += parseIPv6Routes(routelist_v6)
156 return (rr for rr in self.routes if rr.isUsable())
Dnetwork.py37 routes = routing.NetworkRoutes()
39 route = routes.getRouteFor(address)
/external/tcpdump/tests/
Dripv2_auth.out3 RIPv2, Request, length: 44, routes: 2 or less
8 RIPv2, Response, length: 44, routes: 2 or less
13 RIPv2, Request, length: 64, routes: 3 or less
20 RIPv2, Response, length: 64, routes: 3 or less
27 RIPv2, Request, length: 68, routes: 3 or less
35 RIPv2, Response, length: 68, routes: 3 or less
43 RIPv2, Request, length: 80, routes: 4 or less
51 RIPv2, Response, length: 80, routes: 4 or less
59 RIPv2, Request, length: 96, routes: 4 or less
68 RIPv2, Response, length: 96, routes: 4 or less
[all …]
Dbgp-large-community.out9 Updated routes:
17 Updated routes:
25 Updated routes:
33 Updated routes:
41 Updated routes:
Dripv1v2.out3 RIPv1, Request, length: 24, routes: 1
7 RIPv1, Response, length: 24, routes: 1
11 RIPv2, Request, length: 24, routes: 1 or less
15 RIPv2, Response, length: 24, routes: 1 or less
Deigrp1-v.out105 IP Internal routes TLV (0x0102), length: 28
108 IP Internal routes TLV (0x0102), length: 29
111 IP Internal routes TLV (0x0102), length: 28
114 IP Internal routes TLV (0x0102), length: 29
117 IP Internal routes TLV (0x0102), length: 28
120 IP Internal routes TLV (0x0102), length: 29
123 IP Internal routes TLV (0x0102), length: 28
130 IP Internal routes TLV (0x0102), length: 28
133 IP Internal routes TLV (0x0102), length: 29
136 IP Internal routes TLV (0x0102), length: 28
[all …]
Deigrp3-v.out61 IP Internal routes TLV (0x0102), length: 28
72 IP Internal routes TLV (0x0102), length: 28
83 IP Internal routes TLV (0x0102), length: 28
94 IP Internal routes TLV (0x0102), length: 28
105 IP Internal routes TLV (0x0102), length: 28
Dbgp_vpn_rt-oobr.out4 Withdrawn routes: 3 bytes
16 Withdrawn routes: 3 bytes
Deigrp4-v.out29 IP Internal routes TLV (0x0102), length: 28
36 IP Internal routes TLV (0x0102), length: 28
59 IP Internal routes TLV (0x0102), length: 28
Dbgp_pmsi_tunnel-oobr.out4 Withdrawn routes: 3 bytes
/external/scapy/scapy/arch/
Dunix.py54 routes = []
104 routes.append((dest,netmask, gw, netif, ifaddr, metric))
113 routes.append((dest, netmask, gw, guessed_netif, ifaddr, metric))
128 for rtdst,rtmask,_,rtif,rtaddr in routes[:]:
137 routes.append((dest,netmask, gw, gw_if, gw_if_addr, metric))
141 return routes
239 routes = []
333 routes.append((destination, destination_plen, next_hop, dev, cset, metric))
336 return routes
Dlinux.py233 routes = []
242 routes.append((dst, msk, "0.0.0.0", LOOPBACK_NAME, ifaddr, 1))
276 routes.append(tmp_route)
278 routes.append((dst_int, msk_int, gw_str, iff, ifaddr, metric))
281 routes.append((dst_int, msk_int, gw_str, iff, ifaddr, metric))
284 return routes
331 routes = []
363 routes.append((d, dp, nh, dev, cset, metric))
365 return routes
/external/nist-sip/java/gov/nist/javax/sip/stack/
DDefaultRouter.java173 RouteList routes = sipRequest.getRouteHeaders(); in getNextHop() local
192 if (routes != null) { in getNextHop()
196 Route route = (Route) routes.getFirst(); in getNextHop()
264 RouteList routes = req.getRouteHeaders(); in fixStrictRouting() local
265 Route first = (Route) routes.getFirst(); in fixStrictRouting()
267 routes.removeFirst(); in fixStrictRouting()
274 routes.add(route); // as last one in fixStrictRouting()
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/python/kernel_tests/
Dk_feature_routing_function_op_test.py76 routes = route_tensor.eval()
77 print(routes)
81 self.assertAlmostEquals(1.0, routes[0, 0])
83 self.assertAlmostEquals(0.26894142, routes[0, 1])
85 self.assertAlmostEquals(0.73105858, routes[0, 2])
Drouting_function_op_test.py48 routes = route_tensor.eval()
52 self.assertAlmostEquals(1.0, routes[0, 0])
54 self.assertAlmostEquals(0.26894142, routes[0, 1])
56 self.assertAlmostEquals(0.73105858, routes[0, 2])
/external/python/httplib2/tests/
Dtest_http.py172 routes = {
178 with tests.server_route(routes, request_count=2) as uri:
186 with tests.server_route(routes, request_count=2) as uri:
226 routes = {
234 with tests.server_route(routes, request_count=3) as uri:
261 routes = {
269 with tests.server_route(routes, request_count=2) as uri:
307 routes = {
316 with tests.server_route(routes, request_count=7) as uri:
351 routes = {
[all …]
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/core/ops/
Drouting_gradient_op.cc113 const auto routes = routing_tensor.tensor<float, 2>(); in Compute() local
123 out(i, j) = routes(i, j); in Compute()
133 out(i, j) = (right_prob * routes(i, left_child) + in Compute()
134 left_prob * routes(i, right_child)); in Compute()
Dk_feature_gradient_op.cc140 const auto routes = routing_tensor.tensor<float, 2>(); in Compute() local
159 routes_grad(i, j) = routes(i, j); in Compute()
170 routes_grad(i, j) = (right_prob * routes(i, left_child) + in Compute()
171 left_prob * routes(i, right_child)); in Compute()
/external/scapy/test/
Dmock_windows.uts29 """Ensure that mandatory IPv6 routes are present."""
151 routes = _read_routes6_post2008()
152 for r in routes:
154 print(len(routes))
155 assert(len(routes) == 9)
156 assert(check_mandatory_ipv6_routes(routes))
186 routes = _read_routes_post2008()
187 for r in routes:
189 assert len(routes) == 2
191 assert routes[0][5] == 266
[all …]
Dlinux.uts113 print(conf.route.routes)
116 assert(route_alias in conf.route.routes)
123 print(conf.route.routes)
126 assert(route_specific in conf.route.routes)
/external/bcc/tests/python/
Dtest_brb2.py154 ns1_ipdb.routes.add({'dst': self.vm2_rtr_mask, 'gateway': self.vm1_rtr_ip}).commit()
155 ns2_ipdb.routes.add({'dst': self.vm1_rtr_mask, 'gateway': self.vm2_rtr_ip}).commit()

123