Home
last modified time | relevance | path

Searched refs:router (Results 1 – 25 of 207) sorted by relevance

123456789

/external/pigweed/pw_router/
Dstatic_router_test.cc20 namespace pw::router { namespace
62 StaticRouter router(parser, std::span(routes)); in TEST() local
64 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST()
65 EXPECT_EQ(router.RoutePacket(BasicPacket(2, 0xdddd).data()), in TEST()
72 StaticRouter router(parser, std::span(routes)); in TEST() local
76 EXPECT_EQ(router.RoutePacket(bad_magic.data()), Status::DataLoss()); in TEST()
82 StaticRouter router(parser, std::span(routes)); in TEST() local
84 EXPECT_EQ(router.RoutePacket(BasicPacket(42, 0xdddd).data()), in TEST()
91 StaticRouter router(parser, std::span(routes)); in TEST() local
94 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST()
[all …]
Ddocs.rst9 Common router interfaces
16 ``pw::router::PacketParser``, defined in ``pw_router/packet_parser.h``, which
29 ``pw::router::StaticRouter`` is a router with a static table of address to
30 egress mappings. Routes in a static router never change; packets with the same
49 constexpr pw::router::StaticRouter::Route routes[] = {{1, uart_egress},
51 pw::router::StaticRouter router(hdlc_parser, routes);
56 router.RoutePacket(packet);
/external/autotest/server/site_tests/network_WiFi_RoamFT/
Dnetwork_WiFi_RoamFT.py74 br0 = self.context.router.create_brif()
75 br1 = self.context.router.create_brif()
81 self.context.router.delete_link(self.veth0)
82 self.context.router.delete_link(self.veth1)
86 self.context.router.router.run('ip link add %s type veth peer name '
88 self.context.router.router.run('ifconfig %s up' % self.veth0)
89 self.context.router.router.run('ifconfig %s up' % self.veth1)
90 self.context.router.router.run('ip link set %s master %s' %
92 self.context.router.router.run('ip link set %s master %s' %
140 router_ssid = self.context.router.get_ssid()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dtraceroute.sh165 for ns in host-1 host-2 router-1 router-2
181 create_ns router-1
182 create_ns router-2
185 connect_ns router-2 eth3 - 2000:103::2/64 host-2 eth3 - 2000:103::4/64
189 connect_ns router-1 eth2 - 2000:102::1/64 router-2 eth2 - 2000:102::2/64
190 ip netns exec router-1 ip route add default via 2000:102::2
193 ip netns exec router-1 ip link add name ${brdev} type bridge
194 ip netns exec router-1 ip link set ${brdev} up
195 ip netns exec router-1 ip addr add 2000:101::1/64 dev ${brdev}
197 connect_ns host-1 eth0 - 2000:101::3/64 router-1 eth0 - -
[all …]
/external/perfetto/ui/src/frontend/
Drouter_jsdomtest.ts42 const router = constant
44 expect(router.resolve('')).toBe(mockComponent);
45 expect(router.resolve(null)).toBe(mockComponent);
49 const router = constant
52 expect(router.getRouteFromHash()).toBe('/foobar');
55 expect(router.getRouteFromHash()).toBe('');
60 const router = new Router( constant
70 router.setRouteOnHash('/a');
81 const router = new Router('/', {'/': mockComponent}, dispatch, mockLogging); constant
82 router.setRouteOnHash('foo');
[all …]
/external/openscreen/cast/streaming/
Dsender_packet_router_unittest.cc165 SenderPacketRouter* router() { return &router_; } in router() function in openscreen::cast::__anon1c1f99370111::SenderPacketRouterTest
192 EXPECT_EQ(env()->GetMaxPacketSize(), router()->max_packet_size()); in TEST_F()
203 EXPECT_LE(614400, router()->max_burst_bitrate()); in TEST_F()
204 EXPECT_GE(2147483647, router()->max_burst_bitrate()); in TEST_F()
209 router()->OnSenderCreated(kAudioReceiverSsrc, audio_sender()); in TEST_F()
213 router()->OnSenderDestroyed(kAudioReceiverSsrc); in TEST_F()
218 router()->OnSenderCreated(kAudioReceiverSsrc, audio_sender()); in TEST_F()
224 router()->OnSenderDestroyed(kAudioReceiverSsrc); in TEST_F()
231 router()->OnSenderCreated(kAudioReceiverSsrc, audio_sender()); in TEST_F()
237 router()->OnSenderDestroyed(kAudioReceiverSsrc); in TEST_F()
[all …]
/external/webrtc/call/
Drtp_video_sender_unittest.cc184 RtpVideoSender* router() { return router_.get(); } in router() function in webrtc::__anon2f4ba4b80111::RtpVideoSenderTestFixture
218 test.router()->OnEncodedImage(encoded_image, nullptr, nullptr).error); in TEST()
220 test.router()->SetActive(true); in TEST()
223 test.router()->OnEncodedImage(encoded_image, nullptr, nullptr).error); in TEST()
225 test.router()->SetActive(false); in TEST()
228 test.router()->OnEncodedImage(encoded_image, nullptr, nullptr).error); in TEST()
230 test.router()->SetActive(true); in TEST()
233 test.router()->OnEncodedImage(encoded_image, nullptr, nullptr).error); in TEST()
250 test.router()->SetActive(true); in TEST()
252 test.router() in TEST()
[all …]
/external/autotest/server/cros/network/
Dwifi_test_context_manager.py53 def router(self): member in WiFiTestContextManager
67 return self.pcap_host or self.router
132 return self.router.local_server_address(ap_num)
142 return self.router.get_hostapd_interface(ap_num)
147 return self.router.host
174 router = self.router
176 router = self.pcap_host
177 ap_config.security_config.install_router_credentials(router.host,
178 router.logdir)
185 router.ibss_configure(ap_config)
[all …]
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DInterface.java408 Router router = new RouterImpl(handle); in bind() local
409 bind(handle.getCore(), impl, router); in bind() local
410 router.start(); in bind()
425 RouterImpl router = new RouterImpl(handle); in attachProxy() local
426 P proxy = attachProxy(handle.getCore(), router); in attachProxy()
429 router.setErrorHandler(handlers); in attachProxy()
430 router.start(); in attachProxy()
462 Router router = new RouterImpl(handlerImpl.passHandle()); in buildThreadSafeProxy() local
467 core, new ThreadSafeForwarder(core, new AutoCloseableRouter(core, router))); in buildThreadSafeProxy()
470 router.setErrorHandler(handlers); in buildThreadSafeProxy()
[all …]
/external/autotest/server/site_tests/network_WiFi_CSADisconnect/
Dnetwork_WiFi_CSADisconnect.py29 assoc_params.ssid = self.context.router.get_ssid()
52 self.context.router.send_management_frame_on_ap(
55 self.context.router.deauth_client(self.context.client.wifi_mac)
58 self.context.router.get_ssid())
62 self.context.router.get_ssid(), ('idle'), 30)
87 self.context.router.require_capabilities(
95 self.context.router.deconfig()
/external/iproute2/examples/
Ddhcp-client-script172 local router
176 for router in $1; do
177 LOG route add default gw $router
178 route add default gw $router
187 local router
192 for router in $1; do
193 LOG route del default gw $router
194 route del default gw $router
215 local router
220 for router in $1; do
[all …]
/external/autotest/server/site_tests/network_WiFi_ReconnectInDarkResume/
Dnetwork_WiFi_ReconnectInDarkResume.py37 router = self.context.router
43 router.deconfig_aps()
65 logging.info('Bringing AP %s down.' % router.get_ssid())
66 router.deconfig_aps()
77 logging.info('Bringing AP %s down.' % router.get_ssid())
78 router.deconfig_aps()
/external/autotest/server/site_tests/network_WiFi_ConnectionIdentifier/
Dnetwork_WiFi_ConnectionIdentifier.py73 ssid0 = self.context.router.get_ssid(instance=0)
74 ssid1 = self.context.router.get_ssid(instance=1)
83 self.context.router.deconfig()
91 if (self.context.router.get_ssid(instance=0) == ssid0 or
92 self.context.router.get_ssid(instance=1) == ssid1):
98 self._connect(self.context.router.get_ssid(instance=0),
100 self._connect(self.context.router.get_ssid(instance=1),
/external/autotest/server/site_tests/network_WiFi_RoamEndToEnd/
Dnetwork_WiFi_RoamEndToEnd.py45 self.context.router.require_capabilities(
47 self.context.router.deconfig()
54 ssid = self.context.router.get_ssid(instance=0)
61 ssid = self.context.router.get_ssid(instance=1)
64 self.context.router.deconfig_aps(instance=0)
70 self.context.router.deconfig()
/external/pigweed/pw_router/size_report/
Dstatic_router_with_one_route.cc40 class BasicPacketParser : public pw::router::PacketParser {
58 pw::router::EgressFunction sys_io_egress(+[](pw::ConstByteSpan packet) { in __anone230cf0d0302()
61 constexpr pw::router::StaticRouter::Route routes[] = {{1, sys_io_egress}};
62 pw::router::StaticRouter router(parser, routes);
81 router.RoutePacket(packet_buffer); in main()
/external/autotest/server/site_tests/network_WiFi_RoamSuspendEndToEnd/
Dnetwork_WiFi_RoamSuspendEndToEnd.py46 self.context.router.deconfig_aps(instance=0)
53 self.context.router.require_capabilities(
55 self.context.router.deconfig()
62 ssid = self.context.router.get_ssid(instance=0)
69 ssid = self.context.router.get_ssid(instance=1)
75 self.context.router.deconfig()
/external/ppp/pppd/
Dipxcp.c149 { "ipx-routing", o_int, &ipxcp_wantoptions[0].router,
571 if (ao->router == 0) {
572 ao->router |= BIT(RIP_SAP);
573 wo->router |= BIT(RIP_SAP);
599 if (go->neg_router && to_external(go->router) != RIP_SAP)
642 short external = to_external (go->router);
741 ACKCIPROTO (IPX_ROUTER_PROTOCOL, go->neg_router, go->router);
827 if (no.router & s) /* duplicate NAKs are always bad */
830 if (no.router == 0) /* Reset on first NAK only */
831 try.router = 0;
[all …]
/external/autotest/server/
Dsite_linux_router.py138 def router(self): member in LinuxRouter
300 self.router.run("cat <<EOF >%s\n%s\nEOF\n" %
307 self.router.run('rm %s' % log_file, ignore_status=True)
308 self.router.run('stop wpasupplicant', ignore_status=True)
314 pid = int(self.router.run(start_command).stdout.strip())
346 success = self.router.run(
354 bad_config = self.router.run(
362 early_exit = self.router.run('kill -0 %d' % pid,
446 self.router.get_file(remote_file, local_file)
551 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
[all …]
/external/autotest/server/site_tests/network_WiFi_PMKSACaching/
Dnetwork_WiFi_PMKSACaching.py40 ssid=self.context.router.get_ssid(),
45 mode=mode_n, ssid=self.context.router.get_ssid(),
48 bssid0 = self.context.router.get_hostapd_mac(0)
49 bssid1 = self.context.router.get_hostapd_mac(1)
56 self.context.router.deconfig_aps(instance=1, silent=True)
64 self.context.router.get_wifi_ip(0)),
70 self.context.router.confirm_pmksa_cache_use(instance=0)
/external/autotest/server/site_tests/network_WiFi_ChromeEndToEnd/
Dnetwork_WiFi_ChromeEndToEnd.py37 self.context.router.require_capabilities(
39 self.context.router.deconfig()
47 ssid_1=self.context.router.get_ssid(instance=0),
48 ssid_2=self.context.router.get_ssid(instance=1),
50 self.context.router.deconfig()
/external/autotest/server/site_tests/policy_GlobalNetworkSettingsServer/
Dpolicy_GlobalNetworkSettingsServer.py72 self.context.router.require_capabilities(
74 self.context.router.deconfig()
85 self.context.router.get_ssid(instance=0))
87 self.context.router.get_ssid(instance=1))
100 self.context.router.deconfig_aps(instance=0)
105 self.context.router.deconfig()
/external/autotest/server/site_tests/network_WiFi_Perf/
Dnetwork_WiFi_Perf.py87 self.context.router.host)
89 utils.set_scaling_governors(governor, self.context.router.host)
94 if governor_name != get_current_governor(self.context.router.host):
127 self.context.router.host)
145 ssid=self.context.router.get_ssid(),
149 self.context.router)
159 self.context.client.shill.disconnect(self.context.router.get_ssid())
160 self.context.router.deconfig()
/external/autotest/server/site_tests/network_WiFi_DisconnectReason/
Dnetwork_WiFi_DisconnectReason.py35 self.context.router.require_capabilities(req_caps)
45 alt_assoc_params.ssid = self.context.router.get_ssid(instance=1)
48 assoc_params.ssid = self.context.router.get_ssid(instance=0)
54 self.context.router.deconfig()
56 self.context.router.deauth_client(self.context.client.wifi_mac)
59 self.context.router.send_management_frame_on_ap(
/external/autotest/server/site_tests/network_WiFi_WoWLAN/
Dnetwork_WiFi_WoWLAN.py24 router = self.context.router
29 logging.info('Router WiFi IPv4 = %s', router.wifi_ip)
34 client.add_wake_packet_source(router.wifi_ip)
39 router.send_magic_packet(dut_ip, dut_mac)
/external/autotest/server/site_tests/network_WiFi_CSA/
Dnetwork_WiFi_CSA.py33 self.context.router.require_capabilities(
38 assoc_params.ssid = self.context.router.get_ssid()
46 self.context.router.send_management_frame_on_ap(
56 if self.context.router.detect_client_deauth(client_mac):
71 self.context.router.deconfig()

123456789