summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-06 20:35:16 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-06 20:35:16 -0400
commite6cec2f2553a4187a09d92f3a79c0cc0b5049b79 (patch)
tree24b2e9b9c53d2628d48857695cdd2b29d55c9e31 /src/common.h
parentc68c67ce7d88dcfc9db29e572d60e1c43ddb2519 (diff)
downloadudpastcp-e6cec2f2553a4187a09d92f3a79c0cc0b5049b79.tar.xz
udpastcp-e6cec2f2553a4187a09d92f3a79c0cc0b5049b79.zip
Add IPv4 support.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index f78b2ba..5800581 100644
--- a/src/common.h
+++ b/src/common.h
@@ -3,3 +3,5 @@
#else
#define DBG(...)
#endif
+
+#define IN_ADDR_PORT(addr) (((struct sockaddr_in *)addr)->sin_port)