mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-25 05:15:30 +00:00
service/sockets: Add missing bsdcfg socket service
This commit is contained in:
parent
1958d07d7d
commit
165e7645e1
|
@ -109,4 +109,26 @@ BSD::BSD(const char* name) : ServiceFramework(name) {
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BSDCFG::BSDCFG() : ServiceFramework{"bsdcfg"} {
|
||||||
|
// clang-format off
|
||||||
|
static const FunctionInfo functions[] = {
|
||||||
|
{0, nullptr, "SetIfUp"},
|
||||||
|
{1, nullptr, "SetIfUpWithEvent"},
|
||||||
|
{2, nullptr, "CancelIf"},
|
||||||
|
{3, nullptr, "SetIfDown"},
|
||||||
|
{4, nullptr, "GetIfState"},
|
||||||
|
{5, nullptr, "DhcpRenew"},
|
||||||
|
{6, nullptr, "AddStaticArpEntry"},
|
||||||
|
{7, nullptr, "RemoveArpEntry"},
|
||||||
|
{8, nullptr, "LookupArpEntry"},
|
||||||
|
{9, nullptr, "LookupArpEntry2"},
|
||||||
|
{10, nullptr, "ClearArpEntries"},
|
||||||
|
{11, nullptr, "ClearArpEntries2"},
|
||||||
|
{12, nullptr, "PrintArpEntries"},
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Service::Sockets
|
} // namespace Service::Sockets
|
||||||
|
|
|
@ -26,4 +26,9 @@ private:
|
||||||
u32 next_fd = 1;
|
u32 next_fd = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class BSDCFG final : public ServiceFramework<BSDCFG> {
|
||||||
|
public:
|
||||||
|
explicit BSDCFG();
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Service::Sockets
|
} // namespace Service::Sockets
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace Service::Sockets {
|
||||||
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||||
std::make_shared<BSD>("bsd:s")->InstallAsService(service_manager);
|
std::make_shared<BSD>("bsd:s")->InstallAsService(service_manager);
|
||||||
std::make_shared<BSD>("bsd:u")->InstallAsService(service_manager);
|
std::make_shared<BSD>("bsd:u")->InstallAsService(service_manager);
|
||||||
|
std::make_shared<BSDCFG>()->InstallAsService(service_manager);
|
||||||
|
|
||||||
std::make_shared<NSD>("nsd:a")->InstallAsService(service_manager);
|
std::make_shared<NSD>("nsd:a")->InstallAsService(service_manager);
|
||||||
std::make_shared<NSD>("nsd:u")->InstallAsService(service_manager);
|
std::make_shared<NSD>("nsd:u")->InstallAsService(service_manager);
|
||||||
std::make_shared<SFDNSRES>()->InstallAsService(service_manager);
|
std::make_shared<SFDNSRES>()->InstallAsService(service_manager);
|
||||||
|
|
Loading…
Reference in a new issue