summaryrefslogtreecommitdiff
path: root/src/python/swig
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/swig')
-rw-r--r--src/python/swig/inet.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/python/swig/inet.i b/src/python/swig/inet.i
index e92b44597..bad5488e6 100644
--- a/src/python/swig/inet.i
+++ b/src/python/swig/inet.i
@@ -42,5 +42,24 @@ struct EthAddr
EthAddr(const uint8_t ea[6]);
EthAddr(const std::string &addr);
};
+
+struct IpAddress
+{
+ IpAddress();
+ IpAddress(const uint32_t __addr);
+};
+
+struct IpNetmask : IpAddress
+{
+ IpNetmask();
+ IpNetmask(const uint32_t __addr, const uint8_t __netmask);
+};
+
+struct IpWithPort : IpAddress
+{
+ IpWithPort();
+ IpWithPort(const uint32_t __addr, const uint16_t __port);
+};
+
}