base,dev,python: Rename Net namespace as networking
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::Net became ::networking. Change-Id: I6a77e36c84918174104e507453d53dfe3cb52d35 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45417 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
90aab2f926
commit
06fb0753fe
@@ -179,22 +179,22 @@ init_net(py::module_ &m_native)
|
||||
{
|
||||
py::module_ m = m_native.def_submodule("net");
|
||||
|
||||
py::class_<Net::EthAddr>(m, "EthAddr")
|
||||
py::class_<networking::EthAddr>(m, "EthAddr")
|
||||
.def(py::init<>())
|
||||
.def(py::init<const std::string &>())
|
||||
;
|
||||
|
||||
py::class_<Net::IpAddress>(m, "IpAddress")
|
||||
py::class_<networking::IpAddress>(m, "IpAddress")
|
||||
.def(py::init<>())
|
||||
.def(py::init<uint32_t>())
|
||||
;
|
||||
|
||||
py::class_<Net::IpNetmask, Net::IpAddress>(m, "IpNetmask")
|
||||
py::class_<networking::IpNetmask, networking::IpAddress>(m, "IpNetmask")
|
||||
.def(py::init<>())
|
||||
.def(py::init<uint32_t, uint8_t>())
|
||||
;
|
||||
|
||||
py::class_<Net::IpWithPort, Net::IpAddress>(m, "IpWithPort")
|
||||
py::class_<networking::IpWithPort, networking::IpAddress>(m, "IpWithPort")
|
||||
.def(py::init<>())
|
||||
.def(py::init<uint32_t, uint16_t>())
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user