aboutsummaryrefslogtreecommitdiff
path: root/src/netaddr.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-10 21:32:45 -0400
committerDeterminant <[email protected]>2019-06-10 21:32:45 -0400
commit299d1a3cf7f7ab2465dccc87dde578044c9b040b (patch)
treeaaf7d58d929fdc564b94dccc6a22576d58bf822f /src/netaddr.cpp
parent66c711cf653b082ae07e1119417dcb3461039c80 (diff)
...
Diffstat (limited to 'src/netaddr.cpp')
-rw-r--r--src/netaddr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netaddr.cpp b/src/netaddr.cpp
index 3c2618a..109a6ac 100644
--- a/src/netaddr.cpp
+++ b/src/netaddr.cpp
@@ -26,6 +26,10 @@ bool netaddr_is_eq(const netaddr_t *a, const netaddr_t *b) {
bool netaddr_is_null(const netaddr_t *self) { return self->is_null(); }
+uint32_t netaddr_get_ip(const netaddr_t *self) { return self->ip; }
+
+uint16_t netaddr_get_port(const netaddr_t *self) { return self->port; }
+
}
#endif