Skip to content

Commit

Permalink
IPV4 and IPV6 enabled by default in builds
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-henry committed Jun 14, 2017
1 parent f6420f1 commit 9e880a3
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 43 deletions.
8 changes: 2 additions & 6 deletions make-bsd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,9 @@ ifeq ($(SDK_PICOTCP),1)
-I$(PICOTCP_DIR)/build/include \
-Isrc/stack_drivers/picotcp
endif
ifeq ($(SDK_IPV4),1)
CXXFLAGS+=-DSDK_IPV4
endif
ifeq ($(SDK_IPV6),1)
CXXFLAGS+=-DSDK_IPV6
endif

CXXFLAGS+=-DSDK_IPV4
CXXFLAGS+=-DSDK_IPV6

##############################################################################
## Files ##
Expand Down
8 changes: 2 additions & 6 deletions make-linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,9 @@ ifeq ($(SDK_PICOTCP),1)
-I$(PICOTCP_DIR)/build/include \
-Isrc/stack_drivers/picotcp
endif
ifeq ($(SDK_IPV4),1)
CXXFLAGS+=-DSDK_IPV4
endif
ifeq ($(SDK_IPV6),1)
CXXFLAGS+=-DSDK_IPV6
endif

CXXFLAGS+=-DSDK_IPV4
CXXFLAGS+=-DSDK_IPV6

##############################################################################
## Files ##
Expand Down
8 changes: 2 additions & 6 deletions make-mac.mk
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,9 @@ ifeq ($(SDK_PICOTCP),1)
-I$(PICOTCP_DIR)/build/include \
-Isrc/stack_drivers/picotcp
endif
ifeq ($(SDK_IPV4),1)
CXXFLAGS+=-DSDK_IPV4
endif
ifeq ($(SDK_IPV6),1)
CXXFLAGS+=-DSDK_IPV6
endif

CXXFLAGS+=-DSDK_IPV4
CXXFLAGS+=-DSDK_IPV6

##############################################################################
## Files ##
Expand Down
25 changes: 13 additions & 12 deletions test/alice.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
nwid c7cd7c9e1b0f52a2
mode client
nwid e5cd7a9e1c0fd272
mode server
test comprehensive

local_path zt1
local_port 4545
local_port6 4646
local_ipv4 10.9.9.50
local_ipv6 fde5:cd7a:9edc:0f12:7399:98b2:5722:9143
local_path zt2
local_port 4444
local_port6 5555
local_ipv4 10.9.9.51
local_ipv6 fde5:cd7a:9e1c:0fd2:7299:93e1:b555:8c83

remote_path zt2
remote_port 4545
remote_port6 4646
remote_ipv4 10.9.9.51
remote_ipv6 fde5:cd72:9e17:0fdb:7e99:1369:4d5b:fe3f
remote_path zt1
remote_port 4444
remote_port6 5555
remote_ipv4 10.9.9.50
remote_ipv6 fde5:cd7a:9e1c:fd2:7299:93c4:fe0:4bb8
25 changes: 13 additions & 12 deletions test/bob.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
nwid c7cd7c9e1b0f52a2
mode server
nwid e5cd7a9e1c0fd272
mode client
test comprehensive

local_path zt2
local_port 4545
local_port6 4646
local_ipv4 10.9.9.51
local_ipv6 fde5:cd72:9e17:0fdb:7e99:1369:4d5b:fe3f
local_path zt1
local_port 4444
local_port6 5555
local_ipv4 10.9.9.50
local_ipv6 fde5:cd7a:9e1c:fd2:7299:93c4:fe0:4bb8

remote_path zt1
remote_port 4545
remote_port6 4646
remote_ipv4 10.9.9.50
remote_ipv6 fde5:cd7a:9edc:0f12:7399:98b2:5722:9143
remote_path zt2
remote_port 4444
remote_port6 5555
remote_ipv4 10.9.9.51
remote_ipv6 fde5:cd7a:9e1c:0fd2:7299:93e1:b555:8c83
2 changes: 1 addition & 1 deletion test/ztproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace ZeroTier {
// If HOST was parsed correctly, establish remote connection
if(host != "")
{
uint16_t dest_port, ipv;x
uint16_t dest_port, ipv;
dest_port = _internal_port;

// Save buffer to TcpConnection's write buffer, we'll forward
Expand Down

0 comments on commit 9e880a3

Please sign in to comment.