/aosp_15_r20/external/ot-br-posix/src/agent/ |
H A D | CMakeLists.txt | 29 add_executable(otbr-agent 36 target_link_libraries(otbr-agent PRIVATE 37 $<$<BOOL:${OTBR_BORDER_AGENT}>:otbr-border-agent> 38 $<$<BOOL:${OTBR_BACKBONE_ROUTER}>:otbr-backbone-router> 39 $<$<BOOL:${OTBR_DBUS}>:otbr-dbus-server> 40 $<$<BOOL:${OTBR_MDNS}>:otbr-mdns> 41 $<$<BOOL:${OTBR_OPENWRT}>:otbr-ubus> 42 $<$<BOOL:${OTBR_REST}>:otbr-rest> 49 otbr-sdp-proxy 50 otbr-ncp [all …]
|
/aosp_15_r20/external/ot-br-posix/tests/gtest/ |
H A D | test_mdns_mdnssd.cpp | 35 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_NoError), nullptr); in TEST() 36 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_Unknown), nullptr); in TEST() 37 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_NoSuchName), nullptr); in TEST() 38 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_NoMemory), nullptr); in TEST() 39 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_BadParam), nullptr); in TEST() 40 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_BadReference), nullptr); in TEST() 41 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_BadState), nullptr); in TEST() 42 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_BadFlags), nullptr); in TEST() 43 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_Unsupported), nullptr); in TEST() 44 EXPECT_NE(otbr::Mdns::DNSErrorToString(kDNSServiceErr_NotInitialized), nullptr); in TEST() [all …]
|
H A D | test_dbus_message.cpp | 39 using otbr::DBus::DBusMessageEncode; 40 using otbr::DBus::DBusMessageExtract; 41 using otbr::DBus::DBusMessageToTuple; 42 using otbr::DBus::TupleToDBusMessage; 51 namespace otbr { namespace 60 } // namespace otbr 67 bool operator==(const otbr::DBus::ChannelQuality &aLhs, const otbr::DBus::ChannelQuality &aRhs) in operator ==() 72 bool operator==(const otbr::DBus::ChildInfo &aLhs, const otbr::DBus::ChildInfo &aRhs) in operator ==() 83 bool operator==(const otbr::DBus::NeighborInfo &aLhs, const otbr::DBus::NeighborInfo &aRhs) in operator ==() 94 bool operator==(const otbr::DBus::LeaderData &aLhs, const otbr::DBus::LeaderData &aRhs) in operator ==() [all …]
|
H A D | CMakeLists.txt | 47 add_executable(otbr-gtest-unit 56 target_link_libraries(otbr-gtest-unit 58 otbr-common 59 otbr-ncp 60 otbr-utils 63 gtest_discover_tests(otbr-gtest-unit) 66 add_executable(otbr-gtest-mdns-subscribe 69 target_link_libraries(otbr-gtest-mdns-subscribe 70 otbr-common 71 otbr-mdns [all …]
|
H A D | test_netif.cpp | 183 otbr::Netif netif; in TEST() 207 otbr::Netif netif; in TEST() 230 otbr::Netif netif; in TEST() 251 otbr::Netif netif; in TEST() 261 otbr::Netif netif; in TEST() 284 otbr::Netif netif; in TEST() 303 otbr::Netif netif; in TEST() 336 otbr::Netif netif; in TEST() 339 otbr::Ip6AddressInfo testArray1[] = { in TEST() 344 std::vector<otbr::Ip6AddressInfo> testVec1(testArray1, in TEST() [all …]
|
H A D | test_rcp_host_api.cpp | 43 static void MainloopProcessUntil(otbr::MainloopContext &aMainloop, in MainloopProcessUntil() 60 otbr::MainloopManager::GetInstance().Update(aMainloop); in MainloopProcessUntil() 61 otbr::MainloopManager::GetInstance().Process(aMainloop); in MainloopProcessUntil() 69 otbr::MainloopContext mainloop; in TEST() 70 …otbr::Ncp::ThreadHost::AsyncResultReceiver receiver = [&resultReceived, &error](otError … in TEST() 76 …otbr::Ncp::RcpHost host("wpan0", std::vector<const char *>(), /* aBackboneInterfaceName */ "", /* … in TEST() 137 otbr::MainloopContext mainloop; in TEST() 138 …otbr::Ncp::ThreadHost::AsyncResultReceiver receiver = [&resultReceived, &error](otError … in TEST() 144 …otbr::Ncp::RcpHost host("wpan0", std::vector<const char *>(), /* aBackboneInterfaceName */ "", /* … in TEST() 148 otbr::MainloopManager::GetInstance().RemoveMainloopProcessor( in TEST() [all …]
|
H A D | test_task_runner.cpp | 42 otbr::MainloopContext mainloop; in TEST() 43 otbr::TaskRunner taskRunner; in TEST() 73 otbr::TaskRunner taskRunner; in TEST() 75 otbr::MainloopContext mainloop; in TEST() 102 otbr::TaskRunner taskRunner; in TEST() 114 otbr::MainloopContext mainloop; in TEST() 143 otbr::TaskRunner taskRunner; in TEST() 155 otbr::MainloopContext mainloop; in TEST() 184 otbr::TaskRunner taskRunner; in TEST() 196 otbr::MainloopContext mainloop; in TEST() [all …]
|
/aosp_15_r20/external/ot-br-posix/etc/cmake/ |
H A D | options.cmake | 36 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_BORDER_AGENT=1) 41 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_BACKBONE_ROUTER=1) 46 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_BORDER_ROUTING=1) 51 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_BORDER_ROUTING_COUNTERS=1) 58 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_DBUS_SERVER=1) 63 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_FEATURE_FLAGS=1) 68 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_TELEMETRY_DATA_API=1) 73 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_DUA_ROUTING=1) 78 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_OPENWRT=1) 83 target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_REST_SERVER=1) [all …]
|
/aosp_15_r20/external/ot-br-posix/src/openwrt/controller/ |
H A D | thread.lua | 80 result = conn:call("otbr", "threadstart", {}) 83 result = conn:call("otbr", "threadstop", {}) 86 result = conn:call("otbr", "leave", {}) 89 result = conn:call("otbr", "macfilterclear", {}) 93 result = conn:call("otbr", "macfilteradd", { addr = macfilteradd }) 94 conn:call("otbr", "macfiltersetstate", { state = macfilter }) 100 result = conn:call("otbr", "macfilterremove", { addr = macfilterremove[removeAddrIndex] }) 102 result = conn:call("otbr", "macfilterremove", { addr = macfilterremove }) 104 conn:call("otbr", "macfiltersetstate", { state = macfilter }) 109 conn:call("otbr", "setnetworkname", { networkname = networkname }) [all …]
|
/aosp_15_r20/external/ot-br-posix/src/web/ |
H A D | CMakeLists.txt | 34 set(OTBR_WEB_DATADIR ${CMAKE_INSTALL_FULL_DATADIR}/otbr-web) 36 add_executable(otbr-web 42 target_compile_definitions(otbr-web PRIVATE 46 target_compile_options(otbr-web PRIVATE 50 target_include_directories(otbr-web PRIVATE 55 target_link_libraries(otbr-web PRIVATE 58 otbr-common 59 otbr-utils 67 TARGETS otbr-web 73 add_dependencies(otbr-web otbr-web-frontend) [all …]
|
/aosp_15_r20/external/ot-br-posix/script/ |
H A D | _otbr | 30 OTBR_TOP_BUILDDIR="${BUILD_DIR}/otbr" 42 sudo systemctl stop otbr-web || true 43 sudo systemctl stop otbr-agent || true 44 sudo systemctl disable otbr-web || true 45 sudo systemctl disable otbr-agent || true 46 ! sudo systemctl is-enabled otbr-web 47 ! sudo systemctl is-enabled otbr-agent 49 sudo killall otbr-web otbr-agent || true 149 without WEB_GUI || sudo systemctl enable otbr-web || true 150 sudo systemctl enable otbr-agent || true [all …]
|
H A D | otbr-firewall | 30 # Provides: otbr-firewall 37 # Short-Description: OTBR firewall 38 # Description: This service sets up firewall for OTBR. 59 ipset create -exist otbr-ingress-deny-src hash:net family inet6 60 ipset create -exist otbr-ingress-deny-src-swap hash:net family inet6 61 ipset create -exist otbr-ingress-allow-dst hash:net family inet6 62 ipset create -exist otbr-ingress-allow-dst-swap hash:net family inet6 68 ip6tables -A $OTBR_FORWARD_INGRESS_CHAIN -m set --match-set otbr-ingress-deny-src src -j DROP 69 ip6tables -A $OTBR_FORWARD_INGRESS_CHAIN -m set --match-set otbr-ingress-allow-dst dst -j ACCEPT 85 ipset_destroy_if_exist otbr-ingress-deny-src [all …]
|
H A D | _firewall | 30 FIREWALL_SERVICE=/etc/init.d/otbr-firewall 42 sudo systemctl disable otbr-firewall || true 46 sudo update-rc.d otbr-firewall remove || true 55 sudo cp script/otbr-firewall $FIREWALL_SERVICE 58 sudo systemctl enable otbr-firewall || die 'Failed to enable firewall service!' 59 sudo systemctl start otbr-firewall || die 'Failed to start firewall service!' 68 service otbr-firewall start || die 'Failed to start firewall service' 70 sudo systemctl start otbr-firewall || die 'Failed to start firewall service' 79 service otbr-firewall stop || true 81 sudo systemctl stop otbr-firewall || true
|
H A D | _nat64 | 41 NAT44_SERVICE=/etc/init.d/otbr-nat44 135 # Provides: otbr-nat44 185 sudo systemctl enable otbr-nat44 || die 'Unable to enable nat44 service!' 186 sudo systemctl start otbr-nat44 || die 'Failed to start nat44 service!' 193 sudo systemctl disable otbr-nat44 || true 198 sudo update-rc.d otbr-nat44 remove || true 206 service otbr-nat44 start || die 'Failed to start NAT44!' 208 sudo systemctl start otbr-nat44 || die 'Failed to start NAT44!' 215 service otbr-nat44 stop || true 217 sudo systemctl stop otbr-nat44 || true
|
/aosp_15_r20/external/ot-br-posix/tests/dbus/ |
H A D | test_dbus_client.cpp | 47 using otbr::DBus::ActiveScanResult; 48 using otbr::DBus::ClientError; 49 using otbr::DBus::DeviceRole; 50 using otbr::DBus::EnergyScanResult; 51 using otbr::DBus::ExternalRoute; 52 using otbr::DBus::Ip6Prefix; 53 using otbr::DBus::LinkModeConfig; 54 using otbr::DBus::OnMeshPrefix; 55 using otbr::DBus::SrpServerInfo; 56 using otbr::DBus::ThreadApiDBus; [all …]
|
/aosp_15_r20/external/ot-br-posix/etc/openwrt/openthread-br/ |
H A D | README.md | 61 Start otbr-agent manually: 65 /usr/sbin/otbr-agent -I wpan0 'spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=115200' 68 Edit the service file `/etc/init.d/otbr-agent` if RCP device is not `/dev/ttyACM0` and then start w… 71 service otbr-agent start 74 Note: The service `otbr-agent` require the service `otbr-firewall` to work properly. 76 On startup the services `otbr-firewall` and `otbr-agent` will be automatically started. 81 service otbr-firewall stop 82 service otbr-agent stop 83 uci set otbr-agent.service.thread_if_name=wpan1 84 uci commit otbr-agent [all …]
|
/aosp_15_r20/external/ot-br-posix/ |
H A D | README.md | 1 …[ot-gh-action-docker] [![Build Status][otbr-travis-svg]][otbr-travis] [![Coverage Status][otbr-cod… 18 OpenThread's implementation of a Border Router is called OpenThread Border Router (OTBR). **OTBR is… 20 OTBR includes a number of features, including: 35 [otbr-travis]: https://travis-ci.org/openthread/ot-br-posix 36 [otbr-travis-svg]: https://travis-ci.org/openthread/ot-br-posix.svg?branch=main 37 [otbr-codecov]: https://codecov.io/gh/openthread/ot-br-posix 38 [otbr-codecov-svg]: https://codecov.io/gh/openthread/ot-br-posix/branch/main/graph/badge.svg 44 To run OTBR in a Docker container on any Linux-based system or a Raspberry Pi with either a physica… 46 OTBR also runs directly on supported platforms like the Raspberry Pi. If you're interested in build…
|
H A D | .gitignore | 51 include/otbr-config.h 52 include/otbr-config.h.in 61 src/agent/otbr-agent 62 src/agent/otbr-agent.service 63 src/agent/otbr-agent.init 64 src/agent/otbr-agent.conf 67 src/web/otbr-web 68 src/web/otbr-web.service 69 src/web/otbr-web.init 72 tests/mdns/otbr-test-mdns [all …]
|
/aosp_15_r20/external/openthread/tools/harness-simulation/posix/etc/ |
H A D | server.patch | 5 …without WEB_GUI || systemctl is-active otbr-web || sudo systemctl start otbr-web || die 'Failed to… 6 …systemctl is-active otbr-agent || sudo systemctl start otbr-agent || die 'Failed to start otbr-age… 13 …sudo service otbr-agent status || sudo service otbr-agent start || die 'Failed to start otbr-agent… 14 …without WEB_GUI || sudo service otbr-web status || sudo service otbr-web start || die 'Failed to s…
|
/aosp_15_r20/external/ot-br-posix/src/openwrt/ |
H A D | CMakeLists.txt | 31 configure_file(otbr-agent.init.in otbr-agent.init) 32 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-agent.init 34 RENAME otbr-agent) 36 configure_file(otbr-agent.uci-config.in otbr-agent.uci-config) 37 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-agent.uci-config 39 RENAME otbr-agent) 43 configure_file(otbr-firewall.init.in otbr-firewall.init) 44 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-firewall.init 46 RENAME otbr-firewall)
|
H A D | otbr-firewall.init.in | 35 THREAD_IF_BACKUP_FILE="/tmp/otbr-firewall" 58 ipset_destroy_if_exist otbr-ingress-deny-src 59 ipset_destroy_if_exist otbr-ingress-deny-src-swap 60 ipset_destroy_if_exist otbr-ingress-allow-dst 61 ipset_destroy_if_exist otbr-ingress-allow-dst-swap 69 THREAD_IF_NAME=$(uci -q get otbr-agent.service.thread_if_name) 72 ipset create -exist otbr-ingress-deny-src hash:net family inet6 73 ipset create -exist otbr-ingress-deny-src-swap hash:net family inet6 74 ipset create -exist otbr-ingress-allow-dst hash:net family inet6 75 ipset create -exist otbr-ingress-allow-dst-swap hash:net family inet6 [all …]
|
/aosp_15_r20/external/ot-br-posix/src/mdns/ |
H A D | CMakeLists.txt | 30 add_library(otbr-mdns 34 target_compile_definitions(otbr-mdns PUBLIC 37 target_link_libraries(otbr-mdns 39 otbr-common 41 otbr-utils 48 add_library(otbr-mdns 52 target_compile_definitions(otbr-mdns PUBLIC 55 target_link_libraries(otbr-mdns 57 otbr-common 59 otbr-utils
|
/aosp_15_r20/external/ot-br-posix/src/web/web-service/ |
H A D | wpan_service.cpp | 47 namespace otbr { namespace 61 otbr::Web::OpenThreadClient client(mIfName); in HandleGetQRCodeRequest() 101 otbr::Web::OpenThreadClient client(mIfName); in HandleJoinNetworkRequest() 190 otbr::Psk::Pskc psk; in HandleFormNetworkRequest() 202 otbr::Web::OpenThreadClient client(mIfName); in HandleFormNetworkRequest() 218 …otbr::Utils::Hex2Bytes(root["extPanId"].asString().c_str(), extPanIdBytes, OT_EXTENDED_PANID_LENGT… in HandleFormNetworkRequest() 219 …otbr::Utils::Bytes2Hex(psk.ComputePskc(extPanIdBytes, networkName.c_str(), passphrase.c_str()), OT… in HandleFormNetworkRequest() 258 otbr::Web::OpenThreadClient client(mIfName); in HandleAddPrefixRequest() 297 otbr::Web::OpenThreadClient client(mIfName); in HandleDeletePrefixRequest() 332 otbr::Web::OpenThreadClient client(mIfName); in HandleStatusRequest() [all …]
|
/aosp_15_r20/external/ot-br-posix/src/dbus/server/ |
H A D | CMakeLists.txt | 29 add_custom_target(otbr-dbus-introspect-header ALL 37 add_library(otbr-dbus-server STATIC 45 target_include_directories(otbr-dbus-server PRIVATE 50 add_dependencies(otbr-dbus-server otbr-dbus-introspect-header) 52 target_link_libraries(otbr-dbus-server PUBLIC 53 otbr-dbus-common 54 otbr-proto 58 add_custom_target(otbr-dbus-server-doc ALL
|
/aosp_15_r20/external/ot-br-posix/tools/ |
H A D | steering_data.cpp | 58 VerifyOrExit(strlen(aEui64) == otbr::SteeringData::kSizeJoinerId * 2); in ComputeJoinerId() 59 VerifyOrExit(otbr::Utils::Hex2Bytes(aEui64, aJoinerId, otbr::SteeringData::kSizeJoinerId) == in ComputeJoinerId() 60 otbr::SteeringData::kSizeJoinerId); in ComputeJoinerId() 61 otbr::SteeringData::ComputeJoinerId(aJoinerId, aJoinerId); in ComputeJoinerId() 75 otbr::SteeringData computer; in main() 85 if (strlen(argv[i]) != otbr::SteeringData::kSizeJoinerId * 2) in main() 88 VerifyOrExit(length > 0 && length <= otbr::SteeringData::kMaxSizeOfBloomFilter, in main() 98 uint8_t joinerId[otbr::SteeringData::kSizeJoinerId]; in main()
|