MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / AddIPAddress

Method AddIPAddress

src/netcfg/proxy-netcfg-device.cpp:95–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95void Device::AddIPAddress(const std::string &ip_address,
96 const unsigned int prefix,
97 const std::string &gateway,
98 bool ipv6) const
99{
100 GVariant *r = proxy->Call(prxtgt,
101 "AddIPAddress",
102 g_variant_new("(susb)",
103 ip_address.c_str(),
104 prefix,
105 gateway.c_str(),
106 ipv6));
107 if (r)
108 {
109 g_variant_unref(r);
110 }
111}
112
113
114void Device::AddNetworks(const std::vector<Network> &networks) const

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected