diff --git a/Linux_Workspace.vpw b/Linux_Workspace.vpw
index 80f082f2..904cb107 100644
--- a/Linux_Workspace.vpw
+++ b/Linux_Workspace.vpw
@@ -8,6 +8,7 @@
+
diff --git a/Projects/LRF_Server/Debug/server.conf b/Projects/LRF_Server/Debug/server.conf
new file mode 100644
index 00000000..cabb54c6
--- /dev/null
+++ b/Projects/LRF_Server/Debug/server.conf
@@ -0,0 +1,94 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "localhost";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ DUMP_TH_ON_DISK = false;
+ MASTER_ROLE = true;
+ SUNBIT_ENABLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 64;
+ TH_FLIP = 16;
+ TH_GOOD_POINTS = 8;
+ TH_GENERATED_BY_PRU = false;
+ TH_SPIKE_SIZE = 1;
+ CAN_BUS_ENABLE = true;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 768;
+ CAN_TGZ_ID = 769;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+ BASE_SHIFT = 0;
+ MIRROR_SHIFT = 0;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ ENABLE_DEFENDER = false;
+ DETECTOR_WIDTH = 1000;
+ ENABLED_LRF = 255;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/xml";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.103";
+ LCU_IP_PORT = 80;
+ };
+ DEFENDER_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/json";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ CEP_IP_ADDRESS = "192.168.200.103";
+ CEP_IP_PORT = 80;
+ LOCATION_LON = 35.0938962;
+ LOCATION_LAT = 32.904208;
+ USE_SSL = false;
+ ACCESS_URL = "/defender-eps/rest/simple-event/notify";
+ };
+};
+PROTOCOL :
+{
+};
+GENERAL :
+{
+};
+SSDP :
+ {
+ DEVICE_TYPE = "urn:schemas-upnp-org:device:InternetGatewayDevice:1";
+ SERVER_STRING = "3DLRF-M";
+ DEVICE_FRIENDLY_NAME = "3D Lidar Master Device";
+ DEVICE_UUID = "47035424-731b-4d83-98c5-c4310993bbb3";
+ MANUFACTURER = "Dr.Frucht Systems";
+ MANUFACTURER_URL = "http://www.smartsecsystems.com";
+ MODEL_NAME = "3DLRF-280-M";
+ DEVICE_SERIAL_NUMBER = "1.0.12";
+ PRESENTATION_URL = "http://%%s/";
+ ICONS :
+ {
+ ICON_0 :
+ {
+ FORMAT = "png";
+ WIDTH = 32;
+ HEIGHT = 32;
+ DEPTH = 32;
+ URL = "http://%%s/favicon-32x32.png";
+ };
+ };
+ SERVICES :
+ {
+ };
+ };
diff --git a/Projects/LRF_Server/LRF_Server.vpj b/Projects/LRF_Server/LRF_Server.vpj
index 4e52fa02..27b82ad8 100644
--- a/Projects/LRF_Server/LRF_Server.vpj
+++ b/Projects/LRF_Server/LRF_Server.vpj
@@ -261,6 +261,7 @@
+
@@ -312,6 +313,7 @@
+
diff --git a/Projects/LRF_Server/makefile b/Projects/LRF_Server/makefile
index 4500c6d9..834e48cd 100644
--- a/Projects/LRF_Server/makefile
+++ b/Projects/LRF_Server/makefile
@@ -45,8 +45,8 @@ COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
$(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
$(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
- $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \
- $(OUTDIR)/xmlParser.o
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
OBJ=$(COMMON_OBJ) $(CFG_OBJ)
ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
@@ -70,8 +70,8 @@ ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
$(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
$(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
- $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \
- $(OUTDIR)/xmlParser.o
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" "-DDEBUG" -O0 -g3 -ggdb -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O0 -g3 -ggdb -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -o "$(OUTFILE)" $(ALL_OBJ)
@@ -89,6 +89,9 @@ $(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp
$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp
$(COMPILE)
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp
+ $(COMPILE)
+
$(OUTDIR)/%.o : ../../lib/hardware/soc/%.cpp
$(COMPILE)
@@ -131,6 +134,9 @@ $(OUTDIR)/%.o : ../../lib/alg/lgs/%.c
$(OUTDIR)/%.o : ../../lib/data/protocol/%.c
$(COMPILE)
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.c
+ $(COMPILE)
+
$(OUTDIR)/%.o : ../../lib/hardware/soc/%.c
$(COMPILE)
@@ -213,8 +219,8 @@ COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
$(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
$(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
- $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \
- $(OUTDIR)/xmlParser.o
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
OBJ=$(COMMON_OBJ) $(CFG_OBJ)
ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
@@ -238,8 +244,8 @@ ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
$(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
$(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
- $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \
- $(OUTDIR)/xmlParser.o
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O3 -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -s -o "$(OUTFILE)" $(ALL_OBJ)
@@ -257,6 +263,9 @@ $(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp
$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp
$(COMPILE)
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp
+ $(COMPILE)
+
$(OUTDIR)/%.o : ../../lib/hardware/soc/%.cpp
$(COMPILE)
@@ -299,6 +308,9 @@ $(OUTDIR)/%.o : ../../lib/alg/lgs/%.c
$(OUTDIR)/%.o : ../../lib/data/protocol/%.c
$(COMPILE)
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.c
+ $(COMPILE)
+
$(OUTDIR)/%.o : ../../lib/hardware/soc/%.c
$(COMPILE)
diff --git a/Projects/LRF_Slave/Debug/3DLRF.conf b/Projects/LRF_Slave/Debug/3DLRF.conf
new file mode 100644
index 00000000..fcb205b1
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/3DLRF.conf
@@ -0,0 +1,61 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "192.168.200.107";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ MASTER_ROLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = false;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ VERTICAL_MOTOR_CTRL = false;
+ HORIZONTAL_MOTOR_CTRL = false;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 16;
+ TH_FLIP = 8;
+ TH_GOOD_POINTS = 6;
+ CAN_BUS_ENABLE = false;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 512;
+ CAN_TGZ_ID = 513;
+ TGZ_DIV = 1;
+ TGZ_RATIO = 64;
+ TGZ_PRF = 35;
+ TH_GENERATED_BY_PRU = false;
+ DUMP_TH_ON_DISK = false;
+ TH_SPIKE_SIZE = 1;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+ SUNBIT_ENABLE = false;
+ BASE_SHIFT = 0;
+ MIRROR_SHIFT = 0;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ DETECTOR_WIDTH = 200;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ SCANNER_NAME = "LRF_LIBERMAN_MASTER";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.125";
+ LCU_IP_PORT = 80;
+ CURL_POST_CONTENT_TYPE = "application/xml";
+ };
+ ENABLED_LRF = 255;
+ ENABLE_DEFENDER = true;
+ DEFENDER_CONNECTION :
+ {
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ CEP_IP_ADDRESS = "192.168.200.125";
+ CEP_IP_PORT = 80;
+ CURL_POST_CONTENT_TYPE = "application/json";
+ };
+};
diff --git a/Projects/LRF_Slave/Debug/3DLRF.conf.backup b/Projects/LRF_Slave/Debug/3DLRF.conf.backup
new file mode 100644
index 00000000..35635847
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/3DLRF.conf.backup
@@ -0,0 +1,48 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "192.168.200.108";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ MASTER_ROLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 16;
+ TH_FLIP = 8;
+ TH_GOOD_POINTS = 6;
+ CAN_BUS_ENABLE = false;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 512;
+ CAN_TGZ_ID = 513;
+ TGZ_DIV = 1;
+ TGZ_RATIO = 64;
+ TGZ_PRF = 35;
+ TH_GENERATED_BY_PRU = false;
+ DUMP_TH_ON_DISK = false;
+ TH_SPIKE_SIZE = 5;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+ SUNBIT_ENABLE = false;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ DETECTOR_WIDTH = 200;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ SCANNER_NAME = "LRF_LIBERMAN_MASTER";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.204";
+ LCU_IP_PORT = 80;
+ };
+};
diff --git a/Projects/LRF_Slave/Debug/PRU_0_0.bin b/Projects/LRF_Slave/Debug/PRU_0_0.bin
new file mode 100644
index 00000000..219c9b3d
Binary files /dev/null and b/Projects/LRF_Slave/Debug/PRU_0_0.bin differ
diff --git a/Projects/LRF_Slave/Debug/PRU_0_1.bin b/Projects/LRF_Slave/Debug/PRU_0_1.bin
new file mode 100644
index 00000000..9c92ac17
Binary files /dev/null and b/Projects/LRF_Slave/Debug/PRU_0_1.bin differ
diff --git a/Projects/LRF_Slave/Debug/PRU_1_0.bin b/Projects/LRF_Slave/Debug/PRU_1_0.bin
new file mode 100644
index 00000000..f6f6fc8e
Binary files /dev/null and b/Projects/LRF_Slave/Debug/PRU_1_0.bin differ
diff --git a/Projects/LRF_Slave/Debug/PRU_1_1.bin b/Projects/LRF_Slave/Debug/PRU_1_1.bin
new file mode 100644
index 00000000..a6c7f5f0
Binary files /dev/null and b/Projects/LRF_Slave/Debug/PRU_1_1.bin differ
diff --git a/Projects/LRF_Slave/Debug/TGD.conf b/Projects/LRF_Slave/Debug/TGD.conf
new file mode 100644
index 00000000..c830ea72
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/TGD.conf
@@ -0,0 +1,44 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "192.168.0.108";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ MASTER_ROLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 64;
+ TH_FLIP = 16;
+ TH_GOOD_POINTS = 6;
+ CAN_BUS_ENABLE = true;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 768;
+ CAN_TGZ_ID = 769;
+ TH_GENERATED_BY_PRU = true;
+ DUMP_TH_ON_DISK = true;
+ TH_SPIKE_SIZE = 0;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+};
+SAFESHORE_CONNECTION :
+{
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.0.100";
+ LCU_IP_PORT = 80;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ DETECTOR_WIDTH = 200;
+ DETECTOR_SST = 0;
+};
diff --git a/Projects/LRF_Slave/Debug/default.conf b/Projects/LRF_Slave/Debug/default.conf
new file mode 100644
index 00000000..57009d5e
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/default.conf
@@ -0,0 +1,65 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "localhost";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ DUMP_TH_ON_DISK = false;
+ MASTER_ROLE = true;
+ SUNBIT_ENABLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 64;
+ TH_FLIP = 16;
+ TH_GOOD_POINTS = 8;
+ TH_GENERATED_BY_PRU = false;
+ TH_SPIKE_SIZE = 1;
+ CAN_BUS_ENABLE = true;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 768;
+ CAN_TGZ_ID = 769;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+ BASE_SHIFT = 0;
+ MIRROR_SHIFT = 0;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ ENABLE_DEFENDER = false;
+ DETECTOR_WIDTH = 1000;
+ ENABLED_LRF = 255;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/xml";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.103";
+ LCU_IP_PORT = 80;
+ };
+ DEFENDER_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/json";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ CEP_IP_ADDRESS = "192.168.200.103";
+ CEP_IP_PORT = 80;
+ LOCATION_LON = 35.0938962;
+ LOCATION_LAT = 32.904208;
+ USE_SSL = false;
+ ACCESS_URL = "/defender-eps/rest/simple-event/notify";
+ };
+};
+PROTOCOL :
+{
+};
diff --git a/Projects/LRF_Slave/Debug/example.conf b/Projects/LRF_Slave/Debug/example.conf
new file mode 100644
index 00000000..35c8be7a
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/example.conf
@@ -0,0 +1,37 @@
+SAFESHORE_CONNECTION :
+{
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.0.101";
+ LCU_IP_PORT = 80;
+};
+HARDWARE_MANAGER :
+{
+ HW_ROLE = true;
+ HW_LRF_ENABLED = false;
+ HW_SIMULATION_ENABLED = false;
+ HW_SIMULATION_FREQ = 12000;
+ HW_VERTICAL_MOTOR_CTRL = true;
+ HW_HORIZONTAL_MOTOR_CTRL = true;
+ HW_MOTORS_AUTOSTART = false;
+ HW_VERTICAL_ENC_FREQ = 57600;
+ HW_HORIZONTAL_ENC_FREQ = 4000;
+ HW_LRF_PULSES_INTERLEAVE = 4;
+ HW_TH_GENERATED_BY_PRU = true;
+ HW_TH_OFFSET = 32;
+ HW_TH_ORDER = 3;
+ HW_TH_DELTA = 12;
+ HW_TH_FLIP = 16;
+ HW_TH_GOOD_POINTS = 8;
+ HW_CAN_BUS_ENABLE = true;
+ HW_CAN_BUS_ID = 1;
+ HW_CAN_MY_ID = 512;
+ HW_CAN_TGZ_ID = 513;
+ HW_TGZ_DIV = 1;
+ HW_TGZ_PRF = 35000;
+};
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "192.168.0.108";
+ NW_LISTEN_PORT = 2222;
+};
diff --git a/Projects/LRF_Slave/Debug/halt.bin b/Projects/LRF_Slave/Debug/halt.bin
new file mode 100644
index 00000000..0f5aef94
Binary files /dev/null and b/Projects/LRF_Slave/Debug/halt.bin differ
diff --git a/Projects/LRF_Slave/Debug/json b/Projects/LRF_Slave/Debug/json
new file mode 100644
index 00000000..fa3284c4
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/json
@@ -0,0 +1 @@
+{"id": 1,"category": "STATUS","severity": "very-low","receivedTS": "2019-04-04T11:39:21.906Z","lastChangeTS": "2019-04-04T11:39:21.906Z","startTime": "2019-04-04T11:39:21.906Z","endTime": "2019-04-04T11:39:21.906Z", "location": {"point": [ 32.878, 35.999 ], "heading": 128, "area": [] }, "radius": 0, "data": [ {"description": "Status Message", "created": "2019-04-04T11:39:21.904Z", "source": { "providerId": "DFSL_3D_LIDAR", "sensorNodeId" : "MASTER_SENSOR", "sensorId": "LRF_3D_001" }, "name": "DFSL_STATUS_DATA", "type": "EventLidarStatus", "eventId": "cfea99b97c919c83cf84fba71cb6f9dc", "payload": [{ "status": "Operational" }] } ]}
\ No newline at end of file
diff --git a/Projects/LRF_Slave/Debug/server.conf b/Projects/LRF_Slave/Debug/server.conf
new file mode 100644
index 00000000..cabb54c6
--- /dev/null
+++ b/Projects/LRF_Slave/Debug/server.conf
@@ -0,0 +1,94 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "localhost";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ DUMP_TH_ON_DISK = false;
+ MASTER_ROLE = true;
+ SUNBIT_ENABLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 64;
+ TH_FLIP = 16;
+ TH_GOOD_POINTS = 8;
+ TH_GENERATED_BY_PRU = false;
+ TH_SPIKE_SIZE = 1;
+ CAN_BUS_ENABLE = true;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 768;
+ CAN_TGZ_ID = 769;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+ BASE_SHIFT = 0;
+ MIRROR_SHIFT = 0;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ ENABLE_DEFENDER = false;
+ DETECTOR_WIDTH = 1000;
+ ENABLED_LRF = 255;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/xml";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.103";
+ LCU_IP_PORT = 80;
+ };
+ DEFENDER_CONNECTION :
+ {
+ CURL_POST_CONTENT_TYPE = "application/json";
+ SCANNER_NAME = "LRF_3D_001";
+ SCANNER_DIMENTIONS = 3;
+ CEP_IP_ADDRESS = "192.168.200.103";
+ CEP_IP_PORT = 80;
+ LOCATION_LON = 35.0938962;
+ LOCATION_LAT = 32.904208;
+ USE_SSL = false;
+ ACCESS_URL = "/defender-eps/rest/simple-event/notify";
+ };
+};
+PROTOCOL :
+{
+};
+GENERAL :
+{
+};
+SSDP :
+ {
+ DEVICE_TYPE = "urn:schemas-upnp-org:device:InternetGatewayDevice:1";
+ SERVER_STRING = "3DLRF-M";
+ DEVICE_FRIENDLY_NAME = "3D Lidar Master Device";
+ DEVICE_UUID = "47035424-731b-4d83-98c5-c4310993bbb3";
+ MANUFACTURER = "Dr.Frucht Systems";
+ MANUFACTURER_URL = "http://www.smartsecsystems.com";
+ MODEL_NAME = "3DLRF-280-M";
+ DEVICE_SERIAL_NUMBER = "1.0.12";
+ PRESENTATION_URL = "http://%%s/";
+ ICONS :
+ {
+ ICON_0 :
+ {
+ FORMAT = "png";
+ WIDTH = 32;
+ HEIGHT = 32;
+ DEPTH = 32;
+ URL = "http://%%s/favicon-32x32.png";
+ };
+ };
+ SERVICES :
+ {
+ };
+ };
diff --git a/Projects/LRF_Slave/LRF_Slave.vpj b/Projects/LRF_Slave/LRF_Slave.vpj
new file mode 100644
index 00000000..27b82ad8
--- /dev/null
+++ b/Projects/LRF_Slave/LRF_Slave.vpj
@@ -0,0 +1,336 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Projects/LRF_Slave/LRF_Slave.vpw b/Projects/LRF_Slave/LRF_Slave.vpw
new file mode 100644
index 00000000..c68d182b
--- /dev/null
+++ b/Projects/LRF_Slave/LRF_Slave.vpw
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/Projects/LRF_Slave/Release/3DLRF.conf b/Projects/LRF_Slave/Release/3DLRF.conf
new file mode 100644
index 00000000..e42f440a
--- /dev/null
+++ b/Projects/LRF_Slave/Release/3DLRF.conf
@@ -0,0 +1,47 @@
+NETWORK_SERVER :
+{
+ NW_HOSTNAME_IP = "192.168.200.108";
+ NW_LISTEN_PORT = 2222;
+};
+HARDWARE_MANAGER :
+{
+ MASTER_ROLE = true;
+ LRF_ENABLED = true;
+ SIG_SYM_ENABLE = false;
+ MOTORS_AUTOSTART = true;
+ VERTICAL_ENC_FREQ = 57600;
+ HORIZONTAL_ENC_FREQ = 4000;
+ VERTICAL_MOTOR_CTRL = true;
+ HORIZONTAL_MOTOR_CTRL = true;
+ LRF_PULSES_INTERLEAVE = 4;
+ TH_OFFSET = 32;
+ TH_ORDER = 3;
+ TH_DELTA = 16;
+ TH_FLIP = 8;
+ TH_GOOD_POINTS = 6;
+ CAN_BUS_ENABLE = false;
+ CAN_BUS_ID = 1;
+ CAN_MY_ID = 512;
+ CAN_TGZ_ID = 513;
+ TGZ_DIV = 1;
+ TGZ_RATIO = 64;
+ TGZ_PRF = 35;
+ TH_GENERATED_BY_PRU = false;
+ DUMP_TH_ON_DISK = false;
+ TH_SPIKE_SIZE = 2;
+ TGZ_MIRROR_SPEED = 14400;
+ TGZ_BASE_SPEED = 250;
+};
+KERNEL :
+{
+ ENABLE_SAFE_SHORE = false;
+ DETECTOR_WIDTH = 200;
+ DETECTOR_SST = 0;
+ SAFESHORE_CONNECTION :
+ {
+ SCANNER_NAME = "LRF_LIBERMANDELLO";
+ SCANNER_DIMENTIONS = 3;
+ LCU_IP_ADDRESS = "192.168.200.204";
+ LCU_IP_PORT = 80;
+ };
+};
diff --git a/Projects/LRF_Slave/Release/PRU_0_0.bin b/Projects/LRF_Slave/Release/PRU_0_0.bin
new file mode 100644
index 00000000..219c9b3d
Binary files /dev/null and b/Projects/LRF_Slave/Release/PRU_0_0.bin differ
diff --git a/Projects/LRF_Slave/Release/PRU_0_1.bin b/Projects/LRF_Slave/Release/PRU_0_1.bin
new file mode 100644
index 00000000..9c92ac17
Binary files /dev/null and b/Projects/LRF_Slave/Release/PRU_0_1.bin differ
diff --git a/Projects/LRF_Slave/Release/PRU_1_0.bin b/Projects/LRF_Slave/Release/PRU_1_0.bin
new file mode 100644
index 00000000..f6f6fc8e
Binary files /dev/null and b/Projects/LRF_Slave/Release/PRU_1_0.bin differ
diff --git a/Projects/LRF_Slave/Release/PRU_1_1.bin b/Projects/LRF_Slave/Release/PRU_1_1.bin
new file mode 100644
index 00000000..a6c7f5f0
Binary files /dev/null and b/Projects/LRF_Slave/Release/PRU_1_1.bin differ
diff --git a/Projects/LRF_Slave/Release/halt.bin b/Projects/LRF_Slave/Release/halt.bin
new file mode 100644
index 00000000..0f5aef94
Binary files /dev/null and b/Projects/LRF_Slave/Release/halt.bin differ
diff --git a/Projects/LRF_Slave/build b/Projects/LRF_Slave/build
new file mode 100755
index 00000000..d8dd813c
--- /dev/null
+++ b/Projects/LRF_Slave/build
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+
+#make clean -e "CFG=Debug"
+#make -e "CFG=Debug"
+
+
+make clean -e "CFG=Release"
+#make -e "CFG=Release"
diff --git a/Projects/LRF_Slave/makefile b/Projects/LRF_Slave/makefile
new file mode 100644
index 00000000..834e48cd
--- /dev/null
+++ b/Projects/LRF_Slave/makefile
@@ -0,0 +1,363 @@
+# SlickEdit generated file. Do not edit this file except in designated areas.
+
+# Make command to use for dependencies
+MAKE=make
+RM=rm
+MKDIR=mkdir
+
+# -----Begin user-editable area-----
+
+# -----End user-editable area-----
+
+# If no configuration is specified, "Debug" will be used
+ifndef CFG
+CFG=Debug
+endif
+
+#
+# Configuration: Debug
+#
+ifeq "$(CFG)" "Debug"
+OUTDIR=Debug
+OUTFILE=$(OUTDIR)/LRF_Server
+CFG_INC=
+CFG_LIB=
+CFG_OBJ=
+COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
+ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
+ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \
+ $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \
+ $(OUTDIR)/basicMemoryOperation.o $(OUTDIR)/basicObject.o \
+ $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \
+ $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \
+ $(OUTDIR)/basicTransport.o $(OUTDIR)/can_lib.o $(OUTDIR)/canbus.o \
+ $(OUTDIR)/classSOC.o $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \
+ $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/detector.o \
+ $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \
+ $(OUTDIR)/json_writer.o $(OUTDIR)/LRF_ClientHandler.o \
+ $(OUTDIR)/LRF_DefenderHandler.o $(OUTDIR)/LRF_Detector.o \
+ $(OUTDIR)/LRF_HardwareManager.o $(OUTDIR)/LRF_Kernel.o \
+ $(OUTDIR)/LRF_SafeShoreHandler.o $(OUTDIR)/LRF_Server.o \
+ $(OUTDIR)/LRF_targetTracker.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \
+ $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \
+ $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/protocol.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolHTTP.o \
+ $(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
+ $(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
+OBJ=$(COMMON_OBJ) $(CFG_OBJ)
+ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
+ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
+ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \
+ $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \
+ $(OUTDIR)/basicMemoryOperation.o $(OUTDIR)/basicObject.o \
+ $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \
+ $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \
+ $(OUTDIR)/basicTransport.o $(OUTDIR)/can_lib.o $(OUTDIR)/canbus.o \
+ $(OUTDIR)/classSOC.o $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \
+ $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/detector.o \
+ $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \
+ $(OUTDIR)/json_writer.o $(OUTDIR)/LRF_ClientHandler.o \
+ $(OUTDIR)/LRF_DefenderHandler.o $(OUTDIR)/LRF_Detector.o \
+ $(OUTDIR)/LRF_HardwareManager.o $(OUTDIR)/LRF_Kernel.o \
+ $(OUTDIR)/LRF_SafeShoreHandler.o $(OUTDIR)/LRF_Server.o \
+ $(OUTDIR)/LRF_targetTracker.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \
+ $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \
+ $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/protocol.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolHTTP.o \
+ $(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
+ $(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
+
+COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" "-DDEBUG" -O0 -g3 -ggdb -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
+LINK=g++ -O0 -g3 -ggdb -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -o "$(OUTFILE)" $(ALL_OBJ)
+
+# Pattern rules
+$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pwmss/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/base/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/can/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pru/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/App/3dSERVER/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/object/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/net/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/json/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/transport/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pwmss/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/lgs/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/protocol/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/base/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/can/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/generic/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pru/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/App/3dSERVER/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/object/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/net/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/curl/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/json/%.c
+ $(COMPILE)
+
+# Build rules
+all: $(OUTFILE)
+
+$(OUTFILE): $(OUTDIR) $(OBJ)
+ $(LINK)
+
+$(OUTDIR):
+ $(MKDIR) -p "$(OUTDIR)"
+
+# Rebuild this project
+rebuild: cleanall all
+
+# Clean this project
+clean:
+ $(RM) -f $(OUTFILE)
+ $(RM) -f $(OBJ)
+
+# Clean this project and all dependencies
+cleanall: clean
+endif
+
+#
+# Configuration: Release
+#
+ifeq "$(CFG)" "Release"
+OUTDIR=Release
+OUTFILE=$(OUTDIR)/LRF_Server
+CFG_INC=
+CFG_LIB=
+CFG_OBJ=
+COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
+ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
+ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \
+ $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \
+ $(OUTDIR)/basicMemoryOperation.o $(OUTDIR)/basicObject.o \
+ $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \
+ $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \
+ $(OUTDIR)/basicTransport.o $(OUTDIR)/can_lib.o $(OUTDIR)/canbus.o \
+ $(OUTDIR)/classSOC.o $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \
+ $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/detector.o \
+ $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \
+ $(OUTDIR)/json_writer.o $(OUTDIR)/LRF_ClientHandler.o \
+ $(OUTDIR)/LRF_DefenderHandler.o $(OUTDIR)/LRF_Detector.o \
+ $(OUTDIR)/LRF_HardwareManager.o $(OUTDIR)/LRF_Kernel.o \
+ $(OUTDIR)/LRF_SafeShoreHandler.o $(OUTDIR)/LRF_Server.o \
+ $(OUTDIR)/LRF_targetTracker.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \
+ $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \
+ $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/protocol.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolHTTP.o \
+ $(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
+ $(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
+OBJ=$(COMMON_OBJ) $(CFG_OBJ)
+ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
+ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \
+ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \
+ $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \
+ $(OUTDIR)/basicMemoryOperation.o $(OUTDIR)/basicObject.o \
+ $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \
+ $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \
+ $(OUTDIR)/basicTransport.o $(OUTDIR)/can_lib.o $(OUTDIR)/canbus.o \
+ $(OUTDIR)/classSOC.o $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \
+ $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/detector.o \
+ $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \
+ $(OUTDIR)/json_writer.o $(OUTDIR)/LRF_ClientHandler.o \
+ $(OUTDIR)/LRF_DefenderHandler.o $(OUTDIR)/LRF_Detector.o \
+ $(OUTDIR)/LRF_HardwareManager.o $(OUTDIR)/LRF_Kernel.o \
+ $(OUTDIR)/LRF_SafeShoreHandler.o $(OUTDIR)/LRF_Server.o \
+ $(OUTDIR)/LRF_targetTracker.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \
+ $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \
+ $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/protocol.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolHTTP.o \
+ $(OUTDIR)/protocolLGS.o $(OUTDIR)/protocolRGoose.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolTGZ.o \
+ $(OUTDIR)/pru_ss.o $(OUTDIR)/pwm_ss.o $(OUTDIR)/serverPort.o \
+ $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
+ $(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
+
+COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
+LINK=g++ -O3 -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -s -o "$(OUTFILE)" $(ALL_OBJ)
+
+# Pattern rules
+$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pwmss/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/base/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/can/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pru/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/App/3dSERVER/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/object/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/net/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/json/%.cpp
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/transport/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pwmss/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/lgs/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/protocol/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/ssdp/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/base/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/can/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/alg/generic/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/hardware/soc/modules/pru/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/App/3dSERVER/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/components/object/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/net/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/curl/%.c
+ $(COMPILE)
+
+$(OUTDIR)/%.o : ../../lib/data/json/%.c
+ $(COMPILE)
+
+# Build rules
+all: $(OUTFILE)
+
+$(OUTFILE): $(OUTDIR) $(OBJ)
+ $(LINK)
+
+$(OUTDIR):
+ $(MKDIR) -p "$(OUTDIR)"
+
+# Rebuild this project
+rebuild: cleanall all
+
+# Clean this project
+clean:
+ $(RM) -f $(OUTFILE)
+ $(RM) -f $(OBJ)
+
+# Clean this project and all dependencies
+cleanall: clean
+endif
diff --git a/lib/App/3dSERVER/LRF_Server.cpp b/lib/App/3dSERVER/LRF_Server.cpp
index 3f7a43bc..5004b179 100644
--- a/lib/App/3dSERVER/LRF_Server.cpp
+++ b/lib/App/3dSERVER/LRF_Server.cpp
@@ -73,10 +73,13 @@ bool gSignal_Handler_Enabled = true;
#define LOG( X ) m_pLog->Log( "main", 0, X )
#define LOG_ERROR( X ) m_pLog->Log( "main", 0, _LOG_ERROR, X )
-LRF_Kernel *Kernel = NULL;
-LRF_HardwareManager *HWManager = NULL;
-basicLogCollection *m_pLog = NULL;
-networkServer *NetworkManager = NULL;
+LRF_Kernel *Kernel = NULL;
+LRF_HardwareManager *HWManager = NULL;
+basicLogCollection *m_pLog = NULL;
+networkServer *NetworkManager = NULL;
+ssdpAnnouncer *NetworkAnnouncer = NULL;
+basicSettingsProvider *SettingsProvider = NULL;
+config_setting_t *Settings = NULL;
void (*old_kill_handler_9)(int);
void (*old_kill_handler_15)(int);
@@ -290,6 +293,8 @@ int main( int argc, char *argv[] ){
gsCFG_DB_PASSWORD = (CSTR) "NoGud4U@";
};
+ SettingsProvider = basicSettingsProvider::getInstance( DCF_NAME );
+ Settings = SettingsProvider->getSubNode( NULL, "GENERAL" );
// Demonizing or not
if( WBG ){
printf( "Dr Frucht Systems LRF Server ver. %s\n", VERSION_NUMBER );
@@ -389,6 +394,11 @@ int main( int argc, char *argv[] ){
return -1;
};
+ NetworkAnnouncer = new ssdpAnnouncer();
+ if( NetworkAnnouncer != NULL ) {
+ NetworkAnnouncer->init();
+ };
+
// Start Loop of Restarted Kernel
do{
diff --git a/lib/App/3dSERVER/LRF_Server.h b/lib/App/3dSERVER/LRF_Server.h
index 0d66879b..6fd9a4e5 100644
--- a/lib/App/3dSERVER/LRF_Server.h
+++ b/lib/App/3dSERVER/LRF_Server.h
@@ -24,6 +24,7 @@
#include "../../components/base/basicMemoryOperation.h"
#include "../../components/object/objectFileLoggingService.h"
#include "../../data/net/netServer.h"
+#include "../../data/ssdp/ssdpAnnouncer.h"
//#include "../../data/mysql/database_class.h"
//#include "../include/device/general/am437x_prmcm.h"
#include "LRF_Kernel.h"
diff --git a/lib/data/net/netServer.h b/lib/data/net/netServer.h
index 9ada9ce0..ff4f1390 100644
--- a/lib/data/net/netServer.h
+++ b/lib/data/net/netServer.h
@@ -63,32 +63,34 @@ void signal_void_handler( int SIG );
class networkServer: public basicThread, public basicEventHandler{
private:
- basicLogCollection *m_pLog;
- vectorNetHandlers m_vHandlersPool;
- basicEngine *m_pDetectorKernel;
- config_setting_t *m_pSettings;
- struct sockaddr *MainSocketAddress;
- CSTR m_pHostName;
- uint16_t m_nPortNumber;
+ basicLogCollection * m_pLog;
+ vectorNetHandlers m_vHandlersPool;
+ basicEngine * m_pDetectorKernel;
+ config_setting_t * m_pSettings;
+ struct sockaddr * MainSocketAddress;
+ CSTR m_pHostName;
+ uint16_t m_nPortNumber;
#ifdef __linux__
- int MainSocket;
+ int MainSocket;
#else
- SOCKET MainSocket;
+ SOCKET MainSocket;
#endif
- U8 m_bConnectionType;
+ U8 m_bConnectionType;
protected:
- void m_fThreadProc( void );
+ void m_fThreadProc( void );
public:
explicit networkServer( config_setting_t *Settings = NULL );
- virtual ~networkServer();
- bool BootUp( void ); // Config By Settings provided in constructor, on fail uses next BootUp
- bool BootUp( U16 Port ); // Uses Default Hostname and Port as parameter, on fail (getlocalhost) uses next Bootup
- bool BootUp( CSTR HOST_NAME, U16 Port ); // Uses parameters
+ virtual ~networkServer();
+ bool BootUp( void ); // Config By Settings provided in constructor, on fail uses next BootUp
+ bool BootUp( U16 Port ); // Uses Default Hostname and Port as parameter, on fail (getlocalhost) uses next Bootup
+ bool BootUp( CSTR HOST_NAME, U16 Port ); // Uses parameters
#ifdef __linux__
- bool BootUp( CSTR UNIX_SOCKET_NAME );
+ bool BootUp( CSTR UNIX_SOCKET_NAME );
#endif
- bool attachEngine( basicEngine *ptr );
- void dispatchEvent( basicEvent *Evt );
+ bool attachEngine( basicEngine *ptr );
+ void dispatchEvent( basicEvent *Evt );
+ CSTR getAddress( void ){ return m_pHostName; };
+ uint16_t getPort( void ){ return m_nPortNumber; };
};
#endif
diff --git a/lib/data/protocol/protocol.cpp b/lib/data/protocol/protocol.cpp
index 712bd55b..a9dd960f 100644
--- a/lib/data/protocol/protocol.cpp
+++ b/lib/data/protocol/protocol.cpp
@@ -47,7 +47,6 @@ CONNECTION_STATUS protocolParser::getConnectionStatus( void ){
return m_eConnectionStatus;
};
bool protocolParser::parse( U8 *Buffer, size_t BufferSize ){
- LOG("P");
if( m_pParserBuffer != NULL ) {
m_mBufferProtectorMutex.lock();
memcpy( m_pParserBuffer+m_nParserDataCount, Buffer, BufferSize );
diff --git a/lib/data/ssdp/ssdpAnnouncer.cpp b/lib/data/ssdp/ssdpAnnouncer.cpp
index 5db6a4bf..153778bc 100644
--- a/lib/data/ssdp/ssdpAnnouncer.cpp
+++ b/lib/data/ssdp/ssdpAnnouncer.cpp
@@ -1181,13 +1181,15 @@ void ssdpAnnouncer::respond(int sd, char *ifname){
#ifdef DEBUG
LOG("Sending XML reply ...");
#endif
- compose_xml( ifname );
- send(sd, head, strlen(head), 0);
- snprintf(mesg, sizeof(mesg), m_pXMLTEMPLATE );
- if (send(sd, mesg, strlen(mesg), 0) < 0){
- sprintf( mesg, "Failed sending file to client: %s", strerror(errno));
- LOG_ERROR(mesg);
- };
+ if( ifname!= NULL && strlen( ifname ) > 0 ) {
+ compose_xml( ifname );
+ send(sd, head, strlen(head), 0);
+ snprintf(mesg, sizeof(mesg), m_pXMLTEMPLATE );
+ if (send(sd, mesg, strlen(mesg), 0) < 0){
+ sprintf( mesg, "Failed sending file to client: %s", strerror(errno));
+ LOG_ERROR(mesg);
+ };
+ }
};
error:
shutdown(sd, SHUT_RDWR);
diff --git a/lib/hardware/soc/general/3DLRF.h b/lib/hardware/soc/general/3DLRF.h
index 10681056..64cb109e 100644
--- a/lib/hardware/soc/general/3DLRF.h
+++ b/lib/hardware/soc/general/3DLRF.h
@@ -39,7 +39,7 @@ typedef enum E_LRF_WORK_MODE{
#define NO_BLACK_TARGETS
//#define SHIFT_50 683
#define TGD
-//#define PRU_SLAVE
+#define PRU_SLAVE
#ifdef ONPC_TOTTAL_SIMULATOR
#define SIMULATE_TARGETS
diff --git a/lib/hardware/socat-1.7.3.4.tar.bz2 b/lib/hardware/socat-1.7.3.4.tar.bz2
new file mode 100644
index 00000000..cc6f49d4
Binary files /dev/null and b/lib/hardware/socat-1.7.3.4.tar.bz2 differ
diff --git a/lib/hardware/socat-1.7.3.4/BUGREPORTS b/lib/hardware/socat-1.7.3.4/BUGREPORTS
new file mode 100644
index 00000000..eaf9cf8a
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/BUGREPORTS
@@ -0,0 +1,18 @@
+
+* If you have found a bug, i.e. socat SIGSEGV'ed, terminated abnormally without
+error message, did not comply to the documentation, or behaves different from
+your expectations, please send the following infos to socat@dest-unreach.org,
+as available:
+. output of "make info" in socat.out (you may remove the hostname in the first
+line to keep your privacy)
+. config.log
+. run your example with "socat -d -d -d -d -D ..." options, and include the log
+output
+. describe what you've done, and why you think socat did wrong
+
+* If you fixed a bug:
+Please do as described in the above paragraph, and include the modified files
+(or a patch file)
+
+* If you have contributions, problems etc: send available info and a
+description to the above address.
diff --git a/lib/hardware/socat-1.7.3.4/CHANGES b/lib/hardware/socat-1.7.3.4/CHANGES
new file mode 100644
index 00000000..3455e011
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/CHANGES
@@ -0,0 +1,1800 @@
+
+####################### V 1.7.3.4:
+
+Corrections:
+ Header of xiotermios_speed() declared parameter unsigned int instead of
+ speed_t, thus compiling failed on MacOS
+ Thanks to Joe Strout and others for reporting this bug.
+ Thanks to Andrew Childs and others for sending a patch.
+
+ Under certain circumstances, termios options of the first address were
+ applied to the second address, resulting in error
+ "Inappropriate ioctl for device"
+ This affected version 1.7.3.3 only.
+ Test: TERMIOS_PH_ALL
+ Thanks to Ivan J. for reporting this issue.
+
+ Socat failed to compile when no poll() system call was found by
+ configure.
+ Thanks to Jason White for sending a patch.
+
+ Due to use of SSL_CTX_clear_mode() Socat failed to compile on old
+ systems with, e.g., OpenSSL-0.9.8. Thanks to Simon Matter and Moritz B.
+ for reporting this problem and sending initial patches.
+
+ getaddrinfo() in IP4-SENDTO and IP6-SENDTO addresses failed with
+ "ai_socktype not supported" when protocol 6 was addressed.
+ The fix removes the possibility to use service names with SCTP.
+ Test: IP_SENDTO_6
+ Thanks to Sören for sending an initial patch.
+
+ Under certain circumstances, Socat printed the "socket ... is at EOF"
+ multiple times.
+ Test: MULTIPLE_EOF
+
+ Newer parts of test.sh used substitutions ${x,,*} or ${x^^*} that are
+ not implemented in older bash versions.
+
+####################### V 1.7.3.3:
+
+Corrections:
+ Makefile.in did not specify dependencies of filan on vsnprintf_r.o
+ and snprinterr.o
+ Added definition of FILAN_OBJS
+ Thanks to Craig Leres, Clayton Shotwell, and Chris Packham for
+ providing patches.
+
+ configure option --enable-msglevel did not work with numbers
+
+ The autoconf mechanism for determining SHIFT_OFFSET did not work when
+ cross compiling.
+ Thanks to Max Freisinger from Gentoo for sending a patch.
+
+ Socat still depended on obsolete gethostbyname() function, thus
+ compiling with MUSL libc failed.
+ Problem reported by Kennedy33.
+
+ The async signal safe diagnostic system used FDs 3 and 4 internally, so
+ use of appropriate fdin or fdout led to failures.
+ Test: DIAG_FDIN
+ Problem reported by Onur Sentürk.
+
+ The socket based mechanism for passing messages and signal information
+ from signal handler to process could reach and kill the wrong process.
+ Introduces functions diag_sock_pair(), diag_fork()
+ Thanks to Darren Zhao for analysing and reporting this problem.
+
+ Option ipv6-join-group did not work because it was applied in the wrong
+ phase
+ Test: UDP6MULTICAST_UNIDIR
+ Thanks to Angus Gratton for sending a patch.
+
+ Setting ispeed and ospeed failed for some serial devices because the
+ two settings were applied with two different get/set cycles, Thanks to
+ Alexandre Fenyo for providing an initial patch.
+ However, the actual fix is part of a conceptual change of the termios
+ module that aims for applying all changes in a single tcsetaddr call.
+ Fixes FreeBSD Bug 198441
+
+ Termios options TAB0,TAB1,TAB2,TAB3, and XTABS did not have an effect.
+ Thanks to Alan Walters for reporting this bug.
+
+ Substituted cumbersom ISPEED_OFFSET mechanism for cfsetispeed() calls
+
+ With TCP6-LISTEN and the other passive IPv6 addresses the range option
+ just failed: due to a bug in the syntax parser and two more bugs in
+ the xiocheckrange_ip6() function.
+ The syntax has now been changed from "[::1/128]" to "[::1]/128"!
+ Thanks Leah Neukirchen for sending an initial fix.
+
+ For name resolution Socat only checked the first character of the host
+ name to decide if it is an IPv4 address. This was not RFC conform. This
+ fix removes the possibility for use of IPv4 addresses with IPv6, e.g.
+ TCP6:127.0.0.1:80
+ Debian issue 695885
+ Thanks to Nicolas Fournil for reporting this issue.
+
+ Print a useful error message when single character options appear to be
+ merged in Socat invocation
+ Test: SOCCAT_OPT_HINT
+
+ Fixed some docu typos.
+ Thanks to Travis Wellman, Thomas , Dan Kenigsberg,
+ Julian Zinn, and Simon Matter
+
+Porting:
+ OpenSSL functions TLS1_client_method() and similar are
+ deprecated. Socat now uses recommended TLS_client_method(). The old
+ functions and dependend option openssl-method can still be
+ used when configuring socat with --enable-openssl-method
+
+ Shell scripts in socat distribution are now headed with:
+ #! /usr/bin/env bash
+ to make them better portable to systems without /bin/bash
+ Thanks to Maya Rashish for sending a patch
+
+ RES_AAONLY, RES_PRIMARY are deprecated. You can still enable them with
+ configure option --enable-res-deprecated.
+
+ New versions of OpenSSL preset SSL_MODE_AUTO_RETRY which may hang socat.
+ Solution: clear SSL_MODE_AUTO_RETRY when it is set.
+
+ Renamed configure.in to configure.ac and set an appropriate symlink for
+ older environments.
+ Related Gentoo bug 426262: Warning on configure.in
+ Thanks to Francesco Turco for reporting that warning.
+
+ Fixed new IPv6 range code for platforms without s6_addr32 component.
+
+Testing:
+ test.sh: Show a warning when phase-1 (insecure phase) of a security
+ test fails
+
+ OpenSSL tests failed on actual Linux distributions. Measures:
+ Increased key lengths from 768 to 1024 bits
+ Added test.sh option -C to delete temp certs from prevsious runs
+ Provide DH-parameter in certificate in PEM
+ OpenSSL s_server option -verify 0 must be omitted
+ OpenSSL authentication method aNULL no longer works
+ Failure of cipher aNULL is not a failure
+ Failure of methods SSL3 and SSL23 is desired
+
+ test.sh depended on ifconfig and netstat utilities which are no longer
+ availabie in some distributions. test.sh now checks for and prefers
+ ip and ss.
+ Thanks to Ruediger Meier for reporting this problem.
+
+ More corrections to test.sh:
+ Language settings could still influence test results
+ netstat was still required
+ Suppress usleep deprecated messag
+ Force use of IPv4 with some certificates
+ Set timeout for UDPxMAXCHILDREN tests
+
+Git:
+ Added missing Config/Makefile.DragonFly-2-8-2,
+ Config/config.DragonFly-2-8-2.h
+ Removed testcert.conf (to be generated by test.sh)
+
+Cosmetics:
+ Simplified handling of missing termios defines.
+
+New features:
+ Permit combined -d options as -dd etc.
+
+####################### V 1.7.3.2:
+
+corrections:
+ SIGSEGV and other signals could lead to a 100% CPU loop
+
+ Failing name resolution could lead to SIGSEGV
+ Thanks to Max for reporting this issue.
+
+ Include for ptrdiff_t
+ Thanks to Jeroen Roovers for reporting this issue.
+
+ Building with --disable-sycls failed due to missing sslcls.h defines
+
+ Socat hung when configured with --disable-sycls.
+
+ Some minor corrections with includes etc.
+
+ Option so-reuseport did not work. Thanks to Some Raghavendra Prabhu
+ for sending a patch.
+
+ Programs invoked with EXEC, nofork, and -u or -U had stdin and stdout
+ incorrectly assigned
+ Test: EXEC_NOFORK_UNIDIR
+ Thanks to David Reiss for reporting this problem.
+
+ Socat exited with status 0 even when a program invoked with SYSTEM or
+ EXEC failed.
+ Tests: SYSTEM_RC EXEC_RC
+ Issue reported by Felix Winkelmann.
+
+ AddressSanitizer reported a few buffer overflows (false positives).
+ Nevertheless fixed Socat source.
+ Issue reported by Hanno Böck.
+
+ Socat did not use option ipv6-join-group.
+ Test: USE_IPV6_JOIN_GROUP
+ Thanks to Linus Lüssing for sending a patch.
+
+ UDP-LISTEN did not honor the max-children option.
+ Test: UDP4MAXCHILDREN UDP6MAXCHILDREN
+ Thanks to Leander Berwers for reporting this issue.
+
+ Options so-rcvtimeo and so-sndtimeo do not work with poll()/select()
+ and therefore were useless.
+ Thanks to Steve Borenstein for reporting this issue.
+
+ Option dhparam was documented as dhparams. Added the alias name
+ dhparams to fix this.
+ Thanks to Alexander Neumann for sending a patch.
+
+ Options shut-down and shut-close did not work.
+ Thanks to Stefan Schimanski for providing a patch.
+
+ There was a bug in printing readline log message caused by a misleading
+ indentation.
+ Thanks to Paul Wouters for reporting.
+
+ The internal vsnprintf_r function looped or crashed on size parameter
+ with hexadecimal output.
+
+ Ignore exit code of child process when it was killed by master due to
+ EOF
+
+ Corrected byte order on read of IPV6_TCLASS value from ancillary
+ message
+
+ Fixed type of the bool element in options. This had bug caused failures
+ e.g. of ignoreeof on big-endian systems when bool was not based on int.
+
+ On systems with predefined bool type whose size differs from int some
+ IPv6 and TCP options (per setsockopt()) failed.
+
+ Length of integral data in ancillary messages varies (TOS: 1 byte,
+ TTL: 4 bytes), the old implementation failed for TTL on big-endian
+ hosts.
+
+ Fixed an issue in options processing: TUN and DNS flags had failed on
+ big-endian systems and the NO- forms had probable never worked.
+
+porting:
+ Type conflict between int and sig_atomic_t between declaration and
+ definition of diag_immediate_type and diag_immediate_exit broke
+ compilation on FreeBSD 10.1 with clang. Thanks to Emanuel Haupt for
+ reporting this bug.
+
+ Socat failed to compile on platforms with OpenSSL without
+ DTLSv1_client_method or DTLSv1_server_method.
+ Thanks to Simon Matter for sending a patch.
+
+ NuttX OS headers do not provide struct ip, thus socat did not compile.
+ Made struct ip subject to configure.
+ Thanks to SP for reporting this issue.
+
+ Socat failed to compile with OpenSSL version 1.0.2d where
+ SSLv3_server_method and SSLv3_client_method are no longer defined.
+ Thanks to Mischa ter Smitten for reporting this issue and providing
+ a patch.
+
+ configure checked for OpenSSL EC_KEY assuming it is a define but it
+ is a type, thus OpenSSL ECDHE ciphers failed even on Linux.
+ Thanks to Andrey Arapov for reporting this bug.
+
+ Changes to make socat compile with OpenSSL 1.1.
+ Thanks to Sebastian Andrzej Siewior e.a. from the Debian team for
+ providing the base patch.
+ Debian Bug#828550
+
+ Make Socat compatible with BoringSSL.
+ Thanks to Matt Braithwaite for providing a patch.
+
+ OpenSSL: Use RAND_status to determine PRNG state
+ Thanks to Adam Langley for providing a patch
+
+ AIX-7 uses an extended O_ACCMODE that does not fit socat's internal
+ requirements. Thanks to Garrick Trowsdale for providing a patch
+
+ LibreSSL support: check for OPENSSL_NO_COMP
+ Thanks to Bernard Spil for providing a patch
+
+testing:
+ socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
+
+ test.sh: stderr; option -v (verbose); FDOUT_ERROR description
+
+ improved proxy.sh - it now also takes hostnames
+
+ A few corrections in test.sh
+
+ DTLS1 test hangs on some distributions. Test is now only performed
+ with OpenSSL 1.0.2 or higher.
+
+ More corrections to test.sh that reveal a mistake with IPV6_TCLASS
+
+docu:
+ Corrected source of socat man page to correctly show man references
+ like socket(2); removed obseolete entries from See Also
+
+ Docu and some comments mentioned addresses SSL-LISTEN and SSL-CONNECT
+ that do not exist (OPENSSL-LISTEN, SSL-L; and OPENNSSL-CONNECT, SSL
+ are correct).
+ Thanks to Zhigang Wang for reporting this issue.
+
+ Fixed a couple of English spelling and grammar mistakes.
+ Thanks to Jakub Wild for sending the patches.
+
+ NOEXPAND() was not resolved 2 times.
+
+ More minor docu corrections
+
+legal:
+ Added contributors to copyright notices. Suggested by Matt Braithwaite.
+
+####################### V 1.7.3.1:
+
+security:
+ Socat security advisory 8
+ A stack overflow in vulnerability was found that can be triggered when
+ command line arguments (complete address specifications, host names,
+ file names) are longer than 512 bytes.
+ Successful exploitation might allow an attacker to execute arbitrary
+ code with the privileges of the socat process.
+ This vulnerability can only be exploited when an attacker is able to
+ inject data into socat's command line.
+ A vulnerable scenario would be a CGI script that reads data from clients
+ and uses (parts of) this data as hostname for a Socat invocation.
+ Test: NESTEDOVFL
+ Credits to Takumi Akiyama for finding and reporting this issue.
+
+ Socat security advisory 7
+ MSVR-1499
+ In the OpenSSL address implementation the hard coded 1024 bit DH p
+ parameter was not prime. The effective cryptographic strength of a key
+ exchange using these parameters was weaker than the one one could get by
+ using a prime p. Moreover, since there is no indication of how these
+ parameters were chosen, the existence of a trapdoor that makes possible
+ for an eavesdropper to recover the shared secret from a key exchange
+ that uses them cannot be ruled out.
+ Futhermore, 1024bit is not considered sufficiently secure.
+ Fix: generated a new 2048bit prime.
+ Thanks to Santiago Zanella-Beguelin and Microsoft Vulnerability
+ Research (MSVR) for finding and reporting this issue.
+
+####################### V 1.7.3.0:
+
+security:
+ Socat security advisory 6
+ CVE-2015-1379: Possible DoS with fork
+ Fixed problems with signal handling caused by use of not async signal
+ safe functions in signal handlers that could freeze socat, allowing
+ denial of service attacks.
+ Many changes in signal handling and the diagnostic messages system were
+ applied to make the code async signal safe but still provide detailled
+ logging from signal handlers:
+ Coded function vsnprintf_r() as async signal safe incomplete substitute
+ of libc vsnprintf()
+ Coded function snprinterr() to replace %m in strings with a system error
+ message
+ Instead of gettimeofday() use clock_gettime() when available
+ Pass Diagnostic messages from signal handler per unix socket to the main
+ program flow
+ Use sigaction() instead of signal() for better control
+ Turn off nested signal handler invocations
+ Thanks to Peter Lobsinger for reporting and explaining this issue.
+
+ Red Hat issue 1019975: add TLS host name checks
+ OpenSSL client checks if the server certificates names in
+ extensions/subjectAltName/DNS or in subject/commonName match the name
+ used to connect or the value of the openssl-commonname option.
+ Test: OPENSSL_CN_CLIENT_SECURITY
+
+ OpenSSL server checks if the client certificates names in
+ extensions/subjectAltNames/DNS or subject/commonName match the value of
+ the openssl-commonname option when it is used.
+ Test: OPENSSL_CN_SERVER_SECURITY
+
+ Red Hat issue 1019964: socat now uses the system certificate store with
+ OPENSSL when neither options cafile nor capath are used
+
+ Red Hat issue 1019972: needs to specify OpenSSL cipher suites
+ Default cipherlist is now "HIGH:-NULL:-PSK:-aNULL" instead of empty to
+ prevent downgrade attacks
+
+new features:
+ OpenSSL addresses set couple of environment variables from values in
+ peer certificate, e.g.:
+ SOCAT_OPENSSL_X509_SUBJECT, SOCAT_OPENSSL_X509_ISSUER,
+ SOCAT_OPENSSL_X509_COMMONNAME,
+ SOCAT_OPENSSL_X509V3_SUBJECTALTNAME_DNS
+ Tests: ENV_OPENSSL_{CLIENT,SERVER}_X509_*
+
+ Added support for methods TLSv1, TLSv1.1, TLSv1.2, and DTLS1
+ Tests: OPENSSL_METHOD_*
+
+ Enabled OpenSSL server side use of ECDHE ciphers. Feature suggested
+ by Andrey Arapov.
+
+ Added a new option termios-rawer for ptys.
+ Thanks to Christian Vogelgsang for pointing me to this requirement
+
+corrections:
+ Bind with ABSTRACT commands used non-abstract namespace (Linux).
+ Test: ABSTRACT_BIND
+ Thanks to Denis Shatov for reporting this bug.
+
+ Fixed return value of nestlex()
+
+ Option ignoreeof on the right address hung.
+ Test: IGNOREEOF_REV
+ Thanks to Franz Fasching for reporting this bug.
+
+ Address SYSTEM, when terminating, shut down its parent addresses,
+ e.g. an SSL connection which the parent assumed to still be active.
+ Test: SYSTEM_SHUTDOWN
+
+ Passive (listening or receiving) addresses with empty port field bound
+ to a random port instead of terminating with error.
+ Test: TCP4_NOPORT
+
+ configure with some combination of disable options produced config
+ files that failed to compile due to missing IPPROTO_TCP.
+ Thanks to Thierry Fournier for report and patch.
+
+ fixed a few minor bugs with OpenSSL in configure and with messages
+
+ Socat did not work in FIPS mode because 1024 instead of 512 bit DH prime
+ is required. Thanks to Zhigang Wang for reporting and sending a patch.
+
+ Christophe Leroy provided a patch that fixes memory leaks reported by
+ valgrind
+
+ Help for filan -L was bad, is now corrected to:
+ "follow symbolic links instead of showing their properties"
+
+ Address options fdin and fdout were silently ignored when not applicable
+ due to -u or -U option. Now these combinations are caught as errors.
+ Test: FDOUT_ERROR
+ Issue reported by Hendrik.
+
+ Added option termios-cfmakeraw that calls cfmakeraw() and is preferred
+ over option raw which is now obsolote. On SysV systems this call is
+ simulated by appropriate setting.
+ Thanks to Youfu Zhang for reporting issue with option raw.
+
+porting:
+ Socat included instead of POSIX
+ Thanks to John Spencer for reporting this issue.
+
+ Version 1.7.2.4 changed the check for gcc in configure.ac; this
+ broke cross compiling. The particular check gets reverted.
+ Thanks to Ross Burton and Danomi Manchego for reporting this issue.
+
+ Debian Bug#764251: Set the build timestamp to a deterministic time:
+ support external BUILD_DATE env var to allow to build reproducable
+ binaries
+
+ Joachim Fenkes provided an new adapted spec file.
+
+ Type bool and macros Min and Max are defined by socat which led to
+ compile errors when they were already provided by build framework.
+ Thanks to Liyu Liu for providing a patch.
+
+ David Arnstein contributed a patch for NetBSD 5.1 including stdbool.h
+ support and appropriate files in Config/
+
+ Lauri Tirkkonen contributed a patch regarding netinet/if_ether.h
+ on Illumos
+
+ Changes for Openindiana: define _XPG4_2, __EXTENSIONS__,
+ _POSIX_PTHREAD_SEMANTICS; and minor changes
+
+ Red Hat issue 1182005: socat 1.7.2.4 build failure missing
+ linux/errqueue.h
+ Socat failed to compile on on PPC due to new requirements for
+ including and a weakness in the conditional code.
+ Thanks to Michel Normand for reporting this issue.
+
+doc:
+ In the man page the PTY example was badly formatted. Thanks to
+ J.F.Sebastian for sending a patch.
+
+ Added missing CVE ids to security issues in CHANGES
+
+testing:
+ Do not distribute testcert.conf with socat source but generate it
+ (and new testcert6.conf) during test.sh run.
+
+####################### V 1.7.2.4:
+
+corrections:
+ LISTEN based addresses applied some address options, e.g. so-keepalive,
+ to the listening file descriptor instead of the connected file
+ descriptor
+ Thanks to Ulises Alonso for reporting this bug
+
+ make failed after configure with non gcc compiler due to missing
+ include. Thanks to Horacio Mijail for reporting this problem
+
+ configure checked for --disable-rawsocket but printed
+ --disable-genericsocket in the help text. Thanks to Ben Gardiner for
+ reporting and patching this bug
+
+ In xioshutdown() a wrong branch was chosen after RECVFROM type addresses.
+ Probably no impact.
+ Thanks to David Binderman for reporting this issue.
+
+ procan could not cleanly format ulimit values longer than 16 decimal
+ digits. Thanks to Frank Dana for providing a patch that increases field
+ width to 24 digits.
+
+ OPENSSL-CONNECT with bind option failed on some systems, eg.FreeBSD, with
+ "Invalid argument"
+ Thanks to Emile den Tex for reporting this bug.
+
+ Changed some variable definitions to make gcc -O2 aliasing checker happy
+ Thanks to Ilya Gordeev for reporting these warnings
+
+ On big endian platforms with type long >32bit the range option applied a
+ bad base address. Thanks to hejia hejia for reporting and fixing this bug.
+
+ Red Hat issue 1022070: missing length check in xiolog_ancillary_socket()
+
+ Red Hat issue 1022063: out-of-range shifts on net mask bits
+
+ Red Hat issue 1022062: strcpy misuse in xiosetsockaddrenv_ip4()
+
+ Red Hat issue 1022048: strncpy hardening: corrected suspicious strncpy()
+ uses
+
+ Red Hat issue 1021958: fixed a bug with faulty buffer/data length
+ calculation in xio-ascii.c:_xiodump()
+
+ Red Hat issue 1021972: fixed a missing NUL termination in return string
+ of sysutils.c:sockaddr_info() for the AF_UNIX case
+
+ fixed some typos and minor issues, including:
+ Red Hat issue 1021967: formatting error in manual page
+
+ UNIX-LISTEN with fork option did not remove the socket file system entry
+ when exiting. Other file system based passive address types had similar
+ issues or failed to apply options umask, user e.a.
+ Thanks to Lorenzo Monti for pointing me to this issue
+
+porting:
+ Red Hat issue 1020203: configure checks fail with some compilers.
+ Use case: clang
+
+ Performed changes for Fedora release 19
+
+ Adapted, improved test.sh script
+
+ Red Hat issue 1021429: getgroupent fails with large number of groups;
+ use getgrouplist() when available instead of sequence of calls to
+ getgrent()
+
+ Red Hat issue 1021948: snprintf API change;
+ Implemented xio_snprintf() function as wrapper that tries to emulate C99
+ behaviour on old glibc systems, and adapted all affected calls
+ appropriately
+
+ Mike Frysinger provided a patch that supports long long for time_t,
+ socklen_t and a few other libc types.
+
+ Artem Mygaiev extended Cedril Priscals Android build script with pty code
+
+ The check for fips.h required stddef.h
+ Thanks to Matt Hilt for reporting this issue and sending a patch
+
+ Check for linux/errqueue.h failed on some systems due to lack of
+ linux/types.h inclusion. Thanks to Michael Vastola for sending a patch.
+
+ autoconf now prefers configure.ac over configure.in
+ Thanks to Michael Vastola for sending a patch.
+
+ type of struct cmsghdr.cmsg is system dependend, determine it with
+ configure; some more print format corrections
+
+docu:
+ libwrap always logs to syslog
+
+ added actual text version of GPLv2
+
+####################### V 1.7.2.3:
+
+security:
+ Socat security advisory 5
+ CVE-2014-0019: socats PROXY-CONNECT address was vulnerable to a buffer
+ overflow with data from command line (see socat-secadv5.txt)
+ Credits to Florian Weimer of the Red Hat Product Security Team
+
+####################### V 1.7.2.2:
+
+security:
+ Socat security advisory 4
+ CVE-2013-3571:
+ after refusing a client connection due to bad source address or source
+ port socat shutdown() the socket but did not close() it, resulting in
+ a file descriptor leak in the listening process, visible with lsof and
+ possibly resulting in EMFILE Too many open files. This issue could be
+ misused for a denial of service attack.
+ Full credits to Catalin Mitrofan for finding and reporting this issue.
+
+####################### V 1.7.2.1:
+
+security:
+ Socat security advisory 3
+ CVE-2012-0219:
+ fixed a possible heap buffer overflow in the readline address. This bug
+ could be exploited when all of the following conditions were met:
+ 1) one of the addresses is READLINE without the noprompt and without the
+ prompt options.
+ 2) the other (almost arbitrary address) reads malicious data (which is
+ then transferred by socat to READLINE).
+ Workaround: when using the READLINE address apply option prompt or
+ noprompt.
+ Full credits to Johan Thillemann for finding and reporting this issue.
+
+####################### V 1.7.2.0:
+
+corrections:
+ when UNIX-LISTEN was applied to an existing file it failed as expected
+ but removed the file. Thanks to Bjoern Bosselmann for reporting this
+ problem
+
+ fixed a bug where socat might crash when connecting to a unix domain
+ socket using address GOPEN. Thanks to Martin Forssen for bug report and
+ patch.
+
+ UDP-LISTEN would alway set SO_REUSEADDR even without fork option and
+ when user set it to 0. Thanks to Michal Svoboda for reporting this bug.
+
+ UNIX-CONNECT did not support half-close. Thanks to Greg Hughes who
+ pointed me to that bug
+
+ TCP-CONNECT with option nonblock reported successful connect even when
+ it was still pending
+
+ address option ioctl-intp failed with "unimplemented type 26". Thanks
+ to Jeremy W. Sherman for reporting and fixing that bug
+
+ socat option -x did not print packet direction, timestamp etc; thanks
+ to Anthony Sharobaiko for sending a patch
+
+ address PTY does not take any parameters but did not report an error
+ when some were given
+
+ Marcus Meissner provided a patch that fixes invalid output and possible
+ process crash when socat prints info about an unnamed unix domain
+ socket
+
+ Michal Soltys reported the following problem and provided an initial
+ patch: when socat was interrupted, e.g. by SIGSTOP, and resumed during
+ data transfer only parts of the data might have been written.
+
+ Option o-nonblock in combination with large transfer block sizes
+ may result in partial writes and/or EAGAIN errors that were not handled
+ properly but resulted in data loss or process termination.
+
+ Fixed a bug that could freeze socat when during assembly of a log
+ message a signal was handled that also printed a log message. socat
+ development had been aware that localtime() is not thread safe but had
+ only expected broken messages, not corrupted stack (glibc 2.11.1,
+ Ubuntu 10.4)
+
+ an internal store for child pids was susceptible to pid reuse which
+ could lead to sporadic data loss when both fork option and exec address
+ were used. Thanks to Tetsuya Sodo for reporting this problem and
+ sending a patch
+
+ OpenSSL server failed with "no shared cipher" when using cipher aNULL.
+ Fixed by providing temporary DH parameters. Thanks to Philip Rowlands
+ for drawing my attention to this issue.
+
+ UDP-LISTEN slept 1s after accepting a connection. This is not required.
+ Thanks to Peter Valdemar Morch for reporting this issue
+
+ fixed a bug that could lead to error or socat crash after a client
+ connection with option retry had been established
+
+ fixed configure.in bug on net/if.h check that caused IF_NAMESIZE to be
+ undefined
+
+ improved dev_t print format definition
+
+porting:
+ Cedril Priscal ported socat to Android (using Googles cross compiler).
+ The port includes the socat_buildscript_for_android.sh script
+
+ added check for component ipi_spec_dst in struct in_pktinfo so
+ compilation does not fail on Cygwin (thanks to Peter Wagemans for
+ reporting this problem)
+
+ build failed on RHEL6 due to presence of fips.h; configure now checks
+ for fipsld too. Thanks to Andreas Gruenbacher for reporting this
+ problem
+
+ check for netinet6/in6.h only when IPv6 is available and enabled
+
+ don't fail to compile when the following defines are missing:
+ IPV6_PKTINFO IPV6_RTHDR IPV6_DSTOPTS IPV6_HOPOPTS IPV6_HOPLIMIT
+ Thanks to Jerry Jacobs for reporting this problem (Mac OS X Lion 10.7)
+
+ check if define __APPLE_USE_RFC_2292 helps to enable IPV6_* (MacOSX
+ Lion 7.1); thanks to Jerry Jacobs to reporting this problem and
+ proposing a solution
+
+ fixed compiler warnings on Mac OS X 64bit. Thanks to Guy Harris for
+ providing the patch.
+
+ corrections for OpenEmbedded, especially termios SHIFT values and
+ ISPEED/OSPEED. Thanks to John Faith for providing the patch
+
+ minor corrections to docu and test.sh resulting from local compilation
+ on Openmoko SHR
+
+ fixed sa_family_t compile error on DragonFly. Thanks to Tony Young for
+ reporting this issue and sending a patch.
+
+ Ubuntu Oneiric: OpenSSL no longer provides SSLv2 functions; libutil.sh
+ is now bsd/libutil.h; compiler warns on vars that is only written to
+
+new features:
+ added option max-children that limits the number of concurrent child
+ processes. Thanks to Sam Liddicott for providing the patch.
+
+ Till Maas added support for tun/tap addresses without IP address
+
+ added an option openssl-compress that allows to disable the compression
+ feature of newer OpenSSL versions. Thanks to Michael Hanselmann for
+ providing this contribution (sponsored by Google Inc.)
+
+docu:
+ minor corrections in docu (thanks to Paggas)
+
+ client process -> child process
+
+####################### V 1.7.1.3:
+
+security:
+ Socat security advisory 2
+ CVE-2010-2799:
+ fixed a stack overflow vulnerability that occurred when command
+ line arguments (whole addresses, host names, file names) were longer
+ than 512 bytes.
+ Note that this could only be exploited when an attacker was able to
+ inject data into socat's command line.
+ Full credits to Felix Gröbert, Google Security Team, for finding and
+ reporting this issue
+
+####################### V 1.7.1.2:
+
+corrections:
+ user-late and group-late, when applied to a pty, affected the system
+ device /dev/ptmx instead of the pty (thanks to Matthew Cloke for
+ pointing me to this bug)
+
+ socats openssl addresses failed with "nonblocking operation did not
+ complete" when the peer performed a renegotiation. Thanks to Benjamin
+ Delpy for reporting this bug.
+
+ info message during socks connect showed bad port number on little
+ endian systems due to wrong byte order (thanks to Peter M. Galbavy for
+ bug report and patch)
+
+ Debian bug 531078: socat execs children with SIGCHLD ignored; corrected
+ to default. Thanks to Martin Dorey for reporting this bug.
+
+porting:
+ building socat on systems that predefined the CFLAGS environment to
+ contain -Wall failed (esp.RedHat). Thanks to Paul Wouters for reporting
+ this problem and to Simon Matter for providing the patch
+
+ support for Solaris 8 and Sun Studio support (thanks to Sebastian
+ Kayser for providing the patches)
+
+ on some 64bit systems a compiler warning "cast from pointer to integer
+ of different size" was issued on some option definitions
+
+ added struct sockaddr_ll to union sockaddr_union to avoid "strict
+ aliasing" warnings (problem reported by Paul Wouters)
+
+docu:
+ minor corrections in docu
+
+####################### V 1.7.1.1:
+
+corrections:
+ corrected the "fixed possible SIGSEGV" fix because SIGSEGV still might
+ occur under those conditions. Thanks to Toni Mattila for first
+ reporting this problem.
+
+ ftruncate64 cut its argument to 32 bits on systems with 32 bit long type
+
+ socat crashed on systems without setenv() (esp. SunOS up to Solaris 9);
+ thanks to Todd Stansell for reporting this bug
+
+ with unidirectional EXEC and SYSTEM a close() operation was performed
+ on a random number which could result in hanging e.a.
+
+ fixed a compile problem caused by size_t/socklen_t mismatch on 64bit
+ systems
+
+ docu mentioned option so-bindtodev but correct name is so-bindtodevice.
+ Thanks to Jim Zimmerman for reporting.
+
+docu changes:
+ added environment variables example to doc/socat-multicast.html
+
+####################### V 1.7.1.0:
+
+new features:
+ address options shut-none, shut-down, and shut-close allow to control
+ socat's half close behaviour
+
+ with address option shut-null socat sends an empty packet to the peer
+ to indicate EOF
+
+ option null-eof changes the behaviour of sockets that receive an empty
+ packet to see EOF instead of ignoring it
+
+ introduced option names substuser-early and su-e, currently equivalent
+ to option substuser (thanks to Mike Perry for providing the patch)
+
+corrections:
+ fixed some typos and improved some comments
+
+####################### V 1.7.0.1:
+
+corrections:
+ fixed possible SIGSEGV in listening addresses when a new connection was
+ reset by peer before the socket addresses could be retrieved. Thanks to
+ Mike Perry for sending a patch.
+
+ fixed a bug, introduced with version 1.7.0.0, that let client
+ connections with option connect-timeout fail when the connections
+ succeeded. Thanks to Bruno De Fraine for reporting this bug.
+
+ option end-close "did not apply" to addresses PTY, SOCKET-CONNECT,
+ and most UNIX-* and ABSTRACT-*
+
+ half close of EXEC and SYSTEM addresses did not work for pipes and
+ sometimes socketpair
+
+ help displayed for some option a wrong type
+
+ under some circumstances shutdown was called multiple times for the
+ same fd
+
+####################### V 1.7.0.0:
+
+new features:
+ new address types SCTP-CONNECT and SCTP-LISTEN implement SCTP stream
+ mode for IPv4 and IPv6; new address options sctp-maxseg and
+ sctp-nodelay (suggested by David A. Madore; thanks to Jonathan Brannan
+ for providing an initial patch)
+
+ new address "INTERFACE" for transparent network interface handling
+ (suggested by Stuart Nicholson)
+
+ added generic socket addresses: SOCKET-CONNECT, SOCKET-LISTEN,
+ SOCKET-SENDTO, SOCKET-RECVFROM, SOCKET-RECV, SOCKET-DATAGRAM allow
+ protocol independent socket handling; all parameters are explicitely
+ specified as numbers or hex data
+
+ added address options ioctl-void, ioctl-int, ioctl-intp, ioctl-string,
+ ioctl-bin for generic ioctl() calls.
+
+ added address options setsockopt-int, setsockopt-bin, and
+ setsockopt-string for generic setsockopt() calls
+
+ option so-type now only affects the socket() and socketpair() calls,
+ not the name resolution. so-type and so-prototype can now be applied to
+ all socket based addresses.
+
+ new address option "escape" allows to break a socat instance even when
+ raw terminal mode prevents ^C etc. (feature suggested by Guido Trotter)
+
+ socat sets environment variables SOCAT_VERSION, SOCAT_PID, SOCAT_PPID
+ for use in executed scripts
+
+ socat sets environment variables SOCAT_SOCKADDR, SOCAT_SOCKPORT,
+ SOCAT_PEERADDR, SOCAT_PEERPORT in LISTEN type addresses (feature
+ suggested by Ed Sawicki)
+
+ socat receives all ancillary messages with each received packet on
+ datagram related addresses. The messages are logged in raw form with
+ debug level, and broken down with info level. note: each type of
+ ancillary message must be enabled by appropriate address options.
+
+ socat provides the contents of ancillary messages received on RECVFROM
+ addresses in appropriate environment variables:
+ SOCAT_TIMESTAMP, SOCAT_IP_DSTADDR, SOCAT_IP_IF, SOCAT_IP_LOCADDR,
+ SOCAT_IP_OPTIONS, SOCAT_IP_TOS, SOCAT_IP_TTL, SOCAT_IPV6_DSTADDR,
+ SOCAT_IPV6_HOPLIMIT, SOCAT_IPV6_TCLASS
+
+ the following address options were added to enable ancillary messages:
+ so-timestamp, ip-pktinfo (not BSD), ip-recvdstaddr (BSD), ip-recverr,
+ ip-recvif (BSD), ip-recvopts, ip-recvtos, ip-recvttl, ipv6-recvdstopts,
+ ipv6-recverr, ipv6-recvhoplimit, ipv6-recvhopopts, ipv6-recvpathmtu,
+ ipv6-recvpktinfo, ipv6-recvrthdr, ipv6-recvtclass
+
+ new address options ipv6-tclass and ipv6-unicast-hops set the related
+ socket options.
+
+ STREAMS (UNIX System V STREAMS) can be configured with the new address
+ options i-pop-all and i-push (thanks to Michal Rysavy for providing a
+ patch)
+
+corrections:
+ some raw IP and UNIX datagram modes failed on BSD systems
+
+ when UDP-LISTEN continued to listen after packet dropped by, e.g.,
+ range option, the old listen socket would not be closed but a new one
+ created. open sockets could accumulate.
+
+ there was a bug in ip*-recv with bind option: it did not bind, and
+ with the first received packet an error occurred:
+ socket_init(): unknown address family 0
+ test: RAWIP4RECVBIND
+
+ RECVFROM addresses with FORK option hung after processing the first
+ packet. test: UDP4RECVFROM_FORK
+
+ corrected a few mistakes that caused compiler warnings on 64bit hosts
+ (thanks to Jonathan Brannan e.a. for providing a patch)
+
+ EXEC and SYSTEM with stderr injected socat messages into the data
+ stream. test: EXECSTDERRLOG
+
+ when the EXEC address got a string with consecutive spaces it created
+ additional empty arguments (thanks to Olivier Hervieu for reporting
+ this bug). test: EXECSPACES
+
+ in ignoreeof polling mode socat also blocked data transfer in the other
+ direction during the 1s wait intervalls (thanks to Jorgen Cederlof for
+ reporting this bug)
+
+ corrected alphabetical order of options (proxy-auth)
+
+ some minor corrections
+
+ improved test.sh script: more stable timing, corrections for BSD
+
+ replaced the select() calls by poll() to cleanly fix the problems with
+ many file descriptors already open
+
+ socat option -lf did not log to file but to stderr
+
+ socat did not compile on Solaris when configured without termios
+ feature (thanks to Pavan Gadi for reporting this bug)
+
+porting:
+ socat compiles and runs on AIX with gcc (thanks to Andi Mather for his
+ help)
+
+ socat compiles and runs on Cygwin (thanks to Jan Just Keijser for his
+ help)
+
+ socat compiles and runs on HP-UX with gcc (thanks to Michal Rysavy for
+ his help)
+
+ socat compiles and runs on MacOS X (thanks to Camillo Lugaresi for his
+ help)
+
+further changes:
+ filan -s prefixes output with FD number if more than one FD
+
+ Makefile now supports datarootdir (thanks to Camillo Lugaresi for
+ providing the patch)
+
+ cleanup in xio-unix.c
+
+####################### V 1.6.0.1:
+
+new features:
+ new make target "gitclean"
+
+ docu source doc/socat.yo released
+
+corrections:
+ exec:...,pty did not kill child process under some circumstances; fixed
+ by correcting typo in xio-progcall.c (thanks to Ralph Forsythe for
+ reporting this problem)
+
+ service name resolution failed due to byte order mistake
+ (thanks to James Sainsbury for reporting this problem)
+
+ socat would hang when invoked with many file descriptors already opened
+ fix: replaced FOPEN_MAX with FD_SETSIZE
+ thanks to Daniel Lucq for reporting this problem.
+
+ fixed bugs where sub processes would become zombies because the master
+ process did not catch SIGCHLD. this affected addresses UDP-LISTEN,
+ UDP-CONNECT, TCP-CONNECT, OPENSSL, PROXY, UNIX-CONNECT, UNIX-CLIENT,
+ ABSTRACT-CONNECT, ABSTRACT-CLIENT, SOCKSA, SOCKS4A
+ (thanks to Fernanda G Weiden for reporting this problem)
+
+ fixed a bug where sub processes would become zombies because the master
+ process caught SIGCHLD but did not wait(). this affected addresses
+ UDP-RECVFROM, IP-RECVFROM, UNIX-RECVFROM, ABSTRACT-RECVFROM
+ (thanks to Evan Borgstrom for reporting this problem)
+
+ corrected option handling with STDIO; usecase: cool-write
+
+ configure --disable-pty also disabled option waitlock
+
+ fixed small bugs on systems with struct ip_mreq without struct ip_mreqn
+ (thanks to Roland Illig for sending a patch)
+
+ corrected name of option intervall to interval (old form still valid
+ for us German speaking guys)
+
+ corrected some print statements and variable names
+
+ make uninstall did not uninstall procan
+
+ fixed lots of weaknesses in test.sh
+
+ corrected some bugs and typos in doc/socat.yo, EXAMPLES, C comments
+
+further changes:
+ procan -c prints C defines important for socat
+
+ added test OPENSSLEOF for OpenSSL half close
+
+####################### V 1.6.0.0:
+
+new features:
+ new addresses IP-DATAGRAM and UDP-DATAGRAM allow versatile broadcast
+ and multicast modes
+
+ new option ip-add-membership for control of multicast group membership
+
+ new address TUN for generation of Linux TUN/TAP pseudo network
+ interfaces (suggested by Mat Caughron); associated options tun-device,
+ tun-name, tun-type; iff-up, iff-promisc, iff-noarp, iff-no-pi etc.
+
+ new addresses ABSTRACT-CONNECT, ABSTRACT-LISTEN, ABSTRACT-SENDTO,
+ ABSTRACT-RECV, and ABSTRACT-RECVFROM for abstract UNIX domain addresses
+ on Linux (requested by Zeeshan Ali); option unix-tightsocklen controls
+ socklen parameter on system calls.
+
+ option end-close for control of connection closing allows FD sharing
+ by sub processes
+
+ range option supports form address:mask with IPv4
+
+ changed behaviour of OPENSSL-LISTEN to require and verify client
+ certificate per default
+
+ options f-setlkw-rd, f-setlkw-wr, f-setlk-rd, f-setlk-wr allow finer
+ grained locking on regular files
+
+ uninstall target in Makefile (lack reported by Zeeshan Ali)
+
+corrections:
+ fixed bug where only first tcpwrap option was applied; fixed bug where
+ tcpwrap IPv6 check always failed (thanks to Rudolf Cejka for reporting
+ and fixing this bug)
+
+ filan (and socat -D) could hang when a socket was involved
+
+ corrected PTYs on HP-UX (and maybe others) using STREAMS (inspired by
+ Roberto Mackun)
+
+ correct bind with udp6-listen (thanks to Jan Horak for reporting this
+ bug)
+
+ corrected filan.c peekbuff[0] which did not compile with Sun Studio Pro
+ (thanks to Leo Zhadanovsky for reporting this problem)
+
+ corrected problem with read data buffered in OpenSSL layer (thanks to
+ Jon Nelson for reporting this bug)
+
+ corrected problem with option readbytes when input stream stayed idle
+ after so many bytes
+
+ fixed a bug where a datagram receiver with option fork could fork two
+ sub processes per packet
+
+further changes:
+ moved documentation to new doc/ subdir
+
+ new documents (kind of mini tutorials) are provided in doc/
+
+####################### V 1.5.0.0:
+
+new features:
+ new datagram modes for udp, rawip, unix domain sockets
+
+ socat option -T specifies inactivity timeout
+
+ rewrote lexical analysis to allow nested socat calls
+
+ addresses tcp, udp, tcp-l, udp-l, and rawip now support IPv4 and IPv6
+
+ socat options -4, -6 and environment variables SOCAT_DEFAULT_LISTEN_IP,
+ SOCAT_PREFERRED_RESOLVE_IP for control of protocol selection
+
+ addresses ssl, ssl-l, socks, proxy now support IPv4 and IPv6
+
+ option protocol-family (pf), esp. for openssl-listen
+
+ range option supports IPv6 - syntax: range=[::1/128]
+
+ option ipv6-v6only (ipv6only)
+
+ new tcp-wrappers options allow-table, deny-table, tcpwrap-etc
+
+ FIPS version of OpenSSL can be integrated - initial patch provided by
+ David Acker. See README.FIPS
+
+ support for resolver options res-debug, aaonly, usevc, primary, igntc,
+ recurse, defnames, stayopen, dnsrch
+
+ options for file attributes on advanced filesystems (ext2, ext3,
+ reiser): secrm, unrm, compr, ext2-sync, immutable, ext2-append, nodump,
+ ext2-noatime, journal-data etc.
+
+ option cool-write controls severeness of write failure (EPIPE,
+ ECONNRESET)
+
+ option o-noatime
+
+ socat option -lh for hostname in log output
+
+ traffic dumping provides packet headers
+
+ configure.in became part of distribution
+
+ socats unpack directory now has full version, e.g. socat-1.5.0.0/
+
+ corrected docu of option verify
+
+corrections:
+ fixed tcpwrappers integration - initial fix provided by Rudolf Cejka
+
+ exec with pipes,stderr produced error
+
+ setuid-early was ignored with many address types
+
+ some minor corrections
+
+####################### V 1.4.3.1:
+
+corrections:
+ PROBLEM: UNIX socket listen accepted only one (or a few) connections.
+ FIX: do not remove listening UNIX socket in child process
+
+ PROBLEM: SIGSEGV when TCP part of SSL connect failed
+ FIX: check ssl pointer before calling SSL_shutdown
+
+ In debug mode, show connect client port even when connect fails
+
+####################### V 1.4.3.0:
+
+new features:
+ socat options -L, -W for application level locking
+
+ options "lockfile", "waitlock" for address level locking
+ (Stefan Luethje)
+
+ option "readbytes" limits read length (Adam Osuchowski)
+
+ option "retry" for unix-connect, unix-listen, tcp6-listen (Dale Dude)
+
+ pty symlink, unix listen socket, and named pipe are per default removed
+ after use; option unlink-close overrides this new behaviour and also
+ controls removal of other socat generated files (Stefan Luethje)
+
+corrections:
+ option "retry" did not work with tcp-listen
+
+ EPIPE condition could result in a 100% CPU loop
+
+further changes:
+ support systems without SHUT_RD etc.
+ handle more size_t types
+ try to find makedepend options with gcc 3 (richard/OpenMacNews)
+
+####################### V 1.4.2.0:
+
+new features:
+ option "connect-timeout" limits wait time for connect operations
+ (requested by Giulio Orsero)
+
+ option "dhparam" for explicit Diffie-Hellman parameter file
+
+corrections:
+ support for OpenSSL DSA certificates (Miika Komu)
+
+ create install directories before copying files (Miika Komu)
+
+ when exiting on signal, return status 128+signum instead of 1
+
+ on EPIPE and ECONNRESET, only issue a warning (Santiago Garcia
+ Mantinan)
+
+ -lu could cause a core dump on long messages
+
+further changes:
+ modifications to simplify using socats features in applications
+
+####################### V 1.4.1.0:
+
+new features:
+ option "wait-slave" blocks open of pty master side until a client
+ connects, "pty-intervall" controls polling
+
+ option -h as synonym to -? for help (contributed by Christian
+ Lademann)
+
+ filan prints formatted time stamps and rdev (disable with -r)
+
+ redirect filan's output, so stdout is not affected (contributed by
+ Luigi Iotti)
+
+ filan option -L to follow symbolic links
+
+ filan shows termios control characters
+
+corrections:
+ proxy address no longer performs unsolicited retries
+
+ filan -f no longer needs read permission to analyze a file (but still
+ needs access permission to directory, of course)
+
+porting:
+ Option dsusp
+ FreeBSD options noopt, nopush, md5sig
+ OpenBSD options sack-disable, signature-enable
+ HP-UX, Solaris options abort-threshold, conn-abort-threshold
+ HP-UX options b900, b3600, b7200
+ Tru64/OSF1 options keepinit, paws, sackena, tsoptena
+
+further corrections:
+ address pty now uses ptmx as default if openpty is also available
+
+####################### V 1.4.0.3:
+
+security:
+ Socat security advisory 1
+ CVE-2004-1484:
+ fix to a syslog() based format string vulnerability that can lead to
+ remote code execution. See advisory socat-adv-1.txt
+
+####################### V 1.4.0.2:
+
+corrections:
+ exec'd write-only addresses get a chance to flush before being killed
+
+ error handler: print notice on error-exit
+
+ filan printed wrong file type information
+
+####################### V 1.4.0.1:
+
+corrections:
+ socks4a constructed invalid header. Problem found, reported, and fixed
+ by Thomas Themel, by Peter Palfrader, and by rik
+
+ with nofork, don't forget to apply some process related options
+ (chroot, setsid, setpgid, ...)
+
+####################### V 1.4.0.0:
+
+new features:
+ simple openssl server (ssl-l), experimental openssl trust
+
+ new options "cafile", "capath", "key", "cert", "egd", and "pseudo" for
+ openssl
+
+ new options "retry", "forever", and "intervall"
+
+ option "fork" for address TCP improves `gender changer´
+
+ options "sigint", "sigquit", and "sighup" control passing of signals to
+ sub process (thanks to David Shea who contributed to this issue)
+
+ readline takes respect to the prompt issued by the peer address
+
+ options "prompt" and "noprompt" allow to override readline's new
+ default behaviour
+
+ readline supports invisible password with option "noecho"
+
+ socat option -lp allows to set hostname in log output
+
+ socat option -lu turns on microsecond resolution in log output
+
+
+corrections:
+ before reading available data, check if writing on other channel is
+ possible
+
+ tcp6, udp6: support hostname specification (not only IP address), and
+ map IP4 names to IP6 addresses
+
+ openssl client checks server certificate per default
+
+ support unidirectional communication with exec/system subprocess
+
+ try to restore original terminal settings when terminating
+
+ test.sh uses tmp dir /tmp/$USER/$$ instead of /tmp/$$
+
+ socks4 failed on platforms where long does not have 32 bits
+ (thanks to Peter Palfrader and Thomas Seyrat)
+
+ hstrerror substitute wrote wrong messages (HP-UX, Solaris)
+
+ proxy error message was truncated when answer contained multiple spaces
+
+
+porting:
+ compiles with AIX xlc, HP-UX cc, Tru64 cc (but might not link)
+
+####################### V 1.3.2.2:
+
+corrections:
+ PROXY CONNECT failed when the status reply from the proxy server
+ contained more than one consecutive spaces. Problem reported by
+ Alexandre Bezroutchko
+
+ do not SIGSEGV when proxy address fails to resolve server name
+
+ udp-listen failed on systems where AF_INET != SOCK_DGRAM (e.g. SunOS).
+ Problem reported by Christoph Schittel
+
+ test.sh only tests available features
+
+ added missing IP and TCP options in filan analyzer
+
+ do not apply stdio address options to both directions when in
+ unidirectional mode
+
+ on systems lacking /dev/*random and egd, provide (weak) entropy from
+ libc random()
+
+
+porting:
+ changes for HP-UX (VREPRINT, h_NETDB_INTERNAL)
+
+ compiles on True64, FreeBSD (again), NetBSD, OpenBSD
+
+ support for long long as st_ino type (Cygwin 1.5)
+
+ compile on systems where pty can not be featured
+
+####################### V 1.3.2.1:
+
+corrections:
+ "final" solution for the ENOCHLD problem
+
+ corrected "make strip"
+
+ default gcc debug/opt is "-O" again
+
+ check for /proc at runtime, even if configure found it
+
+ src.rpm accidently supported SuSE instead of RedHat
+
+####################### V 1.3.2.0:
+
+new features:
+ option "nofork" connects an exec'd script or program directly
+ to the file descriptors of the other address, circumventing the socat
+ transfer engine
+
+ support for files >2GB, using ftruncate64(), lseek64(), stat64()
+
+ filan has new "simple" output style (filan -s)
+
+
+porting:
+ options "binary" and "text" for controlling line termination on Cygwin
+ file system access (hint from Yang Wu-Zhou)
+
+ fix by Yang Wu-Zhou for the Cygwin "No Children" problem
+
+ improved support for OSR: _SVID3; no IS_SOCK, no F_GETOWN (thanks to
+ John DuBois)
+
+ minor corrections to avoid warnings with gcc 3
+
+
+further corrections and minor improvements:
+ configure script is generated with autoconf 2.57 (no longer 2.52)
+
+ configure passes CFLAGS to Makefile
+
+ option -??? for complete list of address options and their short forms
+
+ program name in syslog messages is derived from argv[0]
+
+ SIGHUP now prints notice instead of error
+
+ EIO during read of pty now gives Notice instead of Error, and
+ triggers EOF
+
+ use of hstrerror() for printing resolver error messages
+
+ setgrent() got required endgrent()
+
+####################### V 1.3.1.0:
+
+new features:
+ integration of Wietse Venema's tcpwrapper library (libwrap)
+
+ with "proxy" address, option "resolve" controls if hostname or IP
+ address is sent in request
+
+ option "lowport" establishes limited authorization for TCP and UDP
+ connections
+
+ improvement of .spec file for RPM creation (thanks to Gerd v. Egidy)
+ An accompanying change in the numbering scheme results in an
+ incompatibility with earlier socat RPMs!
+
+
+solved problems and bugs:
+ PROBLEM: socat daemon terminated when the address of a connecting
+ client did not match range option value instead of continue listening
+ SOLVED: in this case, print warning instead of error to keep daemon
+ active
+
+ PROBLEM: tcp-listen with fork sometimes left excessive number of zombie
+ processes
+ SOLVED: dont assume that each exiting child process generates SIGCHLD
+
+ when converting CRNL to CR, socat converted to NL
+
+
+further corrections:
+ configure script now disables features that depend on missing files
+ making it more robust in "unsupported" environments
+
+ server.pem permissions corrected to 600
+
+ "make install" now does not strip; use "make strip; make install"
+ if you like strip (suggested by Peter Bray)
+
+####################### V 1.3.0.1:
+
+solved problems and bugs:
+ PROBLEM: OPENSSL did not apply tcp, ip, and socket options
+ SOLVED: OPENSSL now correctly handles the options list
+
+ PROBLEM: CRNL to NL and CRNL to CR conversions failed when CRNL crossed
+ block boundary
+ SOLVED: these conversions now simply strip all CR's or NL's from input
+ stream
+
+
+porting:
+ SunOS ptys now work on x86, too (thanks to Peter Bray)
+
+ configure looks for freeware libs in /pkgs/lib/ (thanks to Peter Bray)
+
+
+further corrections:
+ added WITH_PROXY value to -V output
+
+ added compile dependencies of WITH_PTY and WITH_PROXY
+
+ -?? did not print option group of proxy options
+
+ corrected syntax for bind option in docu
+
+ corrected an issue with stdio in unidirectional mode
+
+ options socksport and proxyport support service names
+
+ ftp.sh script supports proxy address
+
+ man page no longer installed with execute permissions (thanks to Peter
+ Bray)
+
+ fixed a malloc call bug that could cause SIGSEGV or false "out of
+ memory" errors on EXEC and SYSTEM, depending on program name length and
+ libc.
+
+####################### V 1.3.0.0:
+
+new features:
+ proxy connect with optional proxy authentication
+
+ combined hex and text dump mode, credits to Gregory Margo
+
+ address pty applies options user, group, and perm to device
+
+
+solved problems and bugs:
+ PROBLEM: option reuseport was not applied (BSD, AIX)
+ SOLVED: option reuseport now in phase PASTSOCKET instead of PREBIND,
+ credits to Jean-Baptiste Marchand
+
+ PROBLEM: ignoreeof with stdio was ignored
+ SOLVED: ignoreeof now works correctly with address stdio
+
+ PROBLEM: ftp.sh did not use user supplied password
+ SOLVED: ftp.sh now correctly passes password from command line
+
+ PROBLEM: server.pem had expired
+ SOLVED: new server.pem valid for ten years
+
+ PROBLEM: socks notice printed wrong port on some platforms
+ SOLVED: socks now uses correct byte-order for port number in notice
+
+
+further corrections:
+ option name o_trunc corrected to o-trunc
+
+ combined use of -u and -U is now detected and prevented
+
+ made message system a little more robust against format string attacks
+
+
+####################### V 1.2.0.0:
+
+new features:
+ address pty for putting socat behind a new pseudo terminal that may
+ fake a serial line, modem etc.
+
+ experimental openssl integration
+ (it does not provide any trust between the peers because is does not
+ check certificates!)
+
+ options flock-ex, flock-ex-nb, flock-sh, flock-sh-nb to control all
+ locking mechanism provided by flock()
+
+ options setsid and setpgid now available with all address types
+
+ option ctty (controlling terminal) now available for all TERMIOS
+ addresses
+
+ option truncate (a hybrid of open(.., O_TRUNC) and ftruncate()) is
+ replaced by options o-trunc and ftruncate=offset
+
+ option sourceport now available with TCP and UDP listen addresses to
+ restrict incoming client connections
+
+ unidirectional mode right-to-left (-U)
+
+
+solved problems and bugs:
+ PROBLEM: addresses without required parameters but an option containing
+ a '/' were incorrectly interpreted as implicit GOPEN address
+ SOLVED: if an address does not have ':' separator but contains '/',
+ check if the slash is before the first ',' before assuming
+ implicit GOPEN.
+
+
+porting:
+ ptys under SunOS work now due to use of stream options
+
+
+further corrections:
+ with -d -d -d -d -D, don't print debug info during file analysis
+
+
+####################### V 1.1.0.1:
+
+new features:
+ .spec file for RPM generation
+
+
+solved problems and bugs:
+ PROBLEM: GOPEN on socket did not apply option unlink-late
+ SOLUTION: GOPEN for socket now applies group NAMED, phase PASTOPEN
+ options
+
+ PROBLEM: with unidirectional mode, an unnecessary close timeout was
+ applied
+ SOLUTION: in unidirectional mode, terminate without wait time
+
+ PROBLEM: using GOPEN on a unix domain socket failed for datagram
+ sockets
+ SOLUTION: when connect() fails with EPROTOTYPE, use a datagram socket
+
+
+further corrections:
+
+ open() flag options had names starting with "o_", now corrected to "o-"
+
+ in docu, *-listen addresses were called *_listen
+
+ address unix now called unix-connect because it does not handle unix
+ datagram sockets
+
+ in test.sh, apply global command line options with all tests
+
+
+####################### V 1.1.0.0:
+
+new features:
+ regular man page and html doc - thanks to kromJx for prototype
+
+ new address type "readline", utilizing GNU readline and history libs
+
+ address option "history-file" for readline
+
+ new option "dash" to "exec" address that allows to start login shells
+
+ syslog facility can be set per command line option
+
+ new address option "tcp-quickack", found in Linux 2.4
+
+ option -g prevents option group checking
+
+ filan and procan can print usage
+
+ procan prints rlimit infos
+
+
+solved problems and bugs:
+ PROBLEM: raw IP socket SIGSEGV'ed when it had been shut down.
+ SOLVED: set eof flag of channel on shutdown.
+
+ PROBLEM: if channel 2 uses a single non-socket FD in bidirectional mode
+ and has data available while channel 1 reaches EOF, the data is
+ lost.
+ SOLVED: during one loop run, first handle all data transfers and
+ _afterwards_ handle EOF.
+
+ PROBLEM: despite to option NONBLOCK, the connect() call blocked
+ SOLVED: option NONBLOCK is now applied in phase FD instead of LATE
+
+ PROBLEM: UNLINK options issued error when file did not exist,
+ terminating socat
+ SOLVED: failure of unlink() is only warning if errno==ENOENT
+
+ PROBLEM: TCP6-LISTEN required numeric port specification
+ SOLVED: now uses common TCP service resolver
+
+ PROBLEM: with PIPE, wrong FDs were shown for data transfer loop
+ SOLVED: retrieval of FDs now pays respect to PIPE pecularities
+
+ PROBLEM: using address EXEC against an address with IGNOREEOF, socat
+ never terminated
+ SOLVED: corrected EOF handling of sigchld
+
+
+porting:
+ MacOS and old AIX versions now have pty
+
+ flock() now available on Linux (configure check was wrong)
+
+ named pipe were generated using mknod(), which requires root under BSD
+ now they are generated using mkfifo
+
+
+further corrections:
+ lots of address options that were "forgotten" at runtime are now
+ available
+
+ option BINDTODEVICE now also called SO-BINDTODEVICE, IF
+
+ "make install" now installs binaries with ownership 0:0
+
+
+####################### V 1.0.4.2:
+
+solved problems and bugs:
+ PROBLEM: EOF of one stream caused close of other stream, giving it no
+ chance to go down regularly
+ SOLVED: EOF of one stream now causes shutdown of write part of other
+ stream
+
+ PROBLEM: sending mail via socks address to qmail showed that crlf
+ option does not work
+ SOLVED: socks address applies PH_LATE options
+
+ PROBLEM: in debug mode, no info about socat and platform was issued
+ SOLVED: print socat version and uname output in debug mode
+
+ PROBLEM: invoking socat with -t and no following parameters caused
+ SIGSEGV
+ SOLVED: -t and -b now check next argv entry
+
+ PROBLEM: when opening of logfile (-lf) failed, no error was reported
+ and no further messages were printed
+ SOLVED: check result of fopen and print error message if it failed
+
+new features:
+ address type UDP-LISTEN now supports option fork: it internally applies
+ socket option SO_REUSEADDR so a new UDP socket can bind to port after
+ `accepting´ a connection (child processes might live forever though)
+ (suggestion from Damjan Lango)
+
+
+####################### V 1.0.4.1:
+
+solved problems and bugs:
+ PROB: assert in libc caused an endless recursion
+ SOLVED: no longer catch SIGABRT
+
+ PROB: socat printed wrong verbose prefix for "right to left" packets
+ SOLVED: new parameter for xiotransfer() passes correct prefix
+
+new features:
+ in debug mode, socat prints its command line arguments
+ in verbose mode, escape special characters and replace unprintables
+ with '.'. Patch from Adrian Thurston.
+
+
+####################### V 1.0.4.0:
+
+solved problems and bugs:
+ Debug output for lstat and fstat said "stat"
+
+further corrections:
+ FreeBSD now includes libutil.h
+
+new features:
+ option setsid with exec/pty
+ option setpgid with exec/pty
+ option ctty with exec/pty
+ TCP V6 connect test
+ gettimeofday in sycls.c (no use yet)
+
+porting:
+ before Gethostbyname, invoke inet_aton for MacOSX
+
+
+####################### V 1.0.3.0:
+
+solved problems and bugs:
+
+ PROB: test 9 of test.sh (echo via file) failed on some platforms,
+ socat exited without error message
+ SOLVED: _xioopen_named_early(): preset statbuf.st_mode with 0
+
+ PROB: test 17 hung forever
+ REASON: child death before select loop did not result in EOF
+ SOLVED: check of existence of children before starting select loop
+
+ PROB: test 17 failed
+ REASON: child dead triggered EOF before last data was read
+ SOLVED: after child death, read last data before setting EOF
+
+ PROB: filan showed that exec processes incorrectly had fd3 open
+ REASON: inherited open fd3 from main process
+ SOLVED: set CLOEXEC flag on pty fd in main process
+
+ PROB: help printed "undef" instead of group "FORK"
+ SOLVED: added "FORK" to group name array
+
+ PROB: fatal messages did not include severity classifier
+ SOLVED: added "F" to severity classifier array
+
+ PROB: IP6 addresses where printed incorrectly
+ SOLVED: removed type casts to unsigned short *
+
+further corrections:
+ socat catches illegal -l modes
+ corrected error message on setsockopt(linger)
+ option tabdly is of type uint
+ correction for UDP over IP6
+ more cpp conditionals, esp. for IP6 situations
+ better handling of group NAMED options with listening UNIX sockets
+ applyopts2 now includes last given phase
+ corrected option group handling for most address types
+ introduce dropping of unappliable options (dropopts, dropopts2)
+ gopen now accepts socket and unix-socket options
+ exec and system now accept all socket and termios options
+ child process for exec and system addresses with option pty
+ improved descriptions and options for EXAMPLES
+ printf format for file mode changed to "0%03o" with length spec.
+ added va_end() in branch of msg()
+ changed phase of lock options from PASTOPEN to FD
+ support up to four early dying processes
+
+structural changes:
+ xiosysincludes now includes sysincludes.h for non xio files
+
+new features:
+ option umask
+ CHANGES file
+ TYPE_DOUBLE, u_double
+ OFUNC_OFFSET
+ added getsid(), setsid(), send() to sycls
+ procan prints sid (session id)
+ mail.sh gets -f (from) option
+ new EXAMPLEs for file creation
+ gatherinfo.sh now tells about failures
+ test.sh can check for much more address/option combinations
+
+porting:
+ ispeed, ospeed for termios on FreeBSD
+ getpgid() conditional for MacOS 10
+ added ranlib in Makefile.in for MacOS 10
+ disable pty option if no pty mechanism is available (MacOS 10)
+ now compiles and runs on MacOS 10 (still some tests fail)
+ setgroups() conditional for cygwin
+ sighandler_t defined conditionally
+ use gcc option -D_GNU_SOURCE
diff --git a/lib/hardware/socat-1.7.3.4/COPYING b/lib/hardware/socat-1.7.3.4/COPYING
new file mode 100644
index 00000000..d159169d
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/COPYING
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/lib/hardware/socat-1.7.3.4/COPYING.OpenSSL b/lib/hardware/socat-1.7.3.4/COPYING.OpenSSL
new file mode 100644
index 00000000..7b93e0db
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/COPYING.OpenSSL
@@ -0,0 +1,127 @@
+
+ LICENSE ISSUES
+ ==============
+
+ The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
+ the OpenSSL License and the original SSLeay license apply to the toolkit.
+ See below for the actual license texts. Actually both licenses are BSD-style
+ Open Source licenses. In case of any license issues related to OpenSSL
+ please contact openssl-core@openssl.org.
+
+ OpenSSL License
+ ---------------
+
+/* ====================================================================
+ * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. All advertising materials mentioning features or use of this
+ * software must display the following acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+ *
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+ * endorse or promote products derived from this software without
+ * prior written permission. For written permission, please contact
+ * openssl-core@openssl.org.
+ *
+ * 5. Products derived from this software may not be called "OpenSSL"
+ * nor may "OpenSSL" appear in their names without prior written
+ * permission of the OpenSSL Project.
+ *
+ * 6. Redistributions of any form whatsoever must retain the following
+ * acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This product includes cryptographic software written by Eric Young
+ * (eay@cryptsoft.com). This product includes software written by Tim
+ * Hudson (tjh@cryptsoft.com).
+ *
+ */
+
+ Original SSLeay License
+ -----------------------
+
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+ * All rights reserved.
+ *
+ * This package is an SSL implementation written
+ * by Eric Young (eay@cryptsoft.com).
+ * The implementation was written so as to conform with Netscapes SSL.
+ *
+ * This library is free for commercial and non-commercial use as long as
+ * the following conditions are aheared to. The following conditions
+ * apply to all code found in this distribution, be it the RC4, RSA,
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
+ * included with this distribution is covered by the same copyright terms
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
+ *
+ * Copyright remains Eric Young's, and as such any Copyright notices in
+ * the code are not to be removed.
+ * If this package is used in a product, Eric Young should be given attribution
+ * as the author of the parts of the library used.
+ * This can be in the form of a textual message at program startup or
+ * in documentation (online or textual) provided with the package.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * "This product includes cryptographic software written by
+ * Eric Young (eay@cryptsoft.com)"
+ * The word 'cryptographic' can be left out if the rouines from the library
+ * being used are not cryptographic related :-).
+ * 4. If you include any Windows specific code (or a derivative thereof) from
+ * the apps directory (application code) you must include an acknowledgement:
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * The licence and distribution terms for any publically available version or
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
+ * copied and put under another distribution licence
+ * [including the GNU Public Licence.]
+ */
+
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.AIX-5-3 b/lib/hardware/socat-1.7.3.4/Config/Makefile.AIX-5-3
new file mode 100644
index 00000000..25655100
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.AIX-5-3
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = cc -qlanglvl=extc89
+CCOPTS = $(CCOPT)
+
+SYSDEFS =
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lbsd -lssl -lcrypto
+LDFLAGS =
+
+INSTALL = ./install-sh -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html doc/socat-genericsocket.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.Cygwin-1-5-25 b/lib/hardware/socat-1.7.3.4/Config/Makefile.Cygwin-1-5-25
new file mode 100644
index 00000000..19726561
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.Cygwin-1-5-25
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS =
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lreadline -lssl -lcrypto
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html doc/socat-genericsocket.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.DragonFly-2-8-2 b/lib/hardware/socat-1.7.3.4/Config/Makefile.DragonFly-2-8-2
new file mode 100644
index 00000000..26492040
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.DragonFly-2-8-2
@@ -0,0 +1,198 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger 2001-2009
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT)
+
+SYSDEFS =
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lssl
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE -Wall -Wno-parentheses $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE -Wall -Wno-parentheses $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html doc/socat-genericsocket.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h \
+ Config/Makefile.AIX-5-3 Config/config.AIX-5-3.h \
+ Config/Makefile.Cygwin-1-5-25 Config/config.Cygwin-1-5-25.h \
+ Config/Makefile.MacOSX-10-5 Config/config.MacOSX-10-5.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.FreeBSD-6-1 b/lib/hardware/socat-1.7.3.4/Config/Makefile.FreeBSD-6-1
new file mode 100644
index 00000000..f75443b9
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.FreeBSD-6-1
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS = -D_LONGLONG
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lreadline -lssl
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.Linux-2-6-24 b/lib/hardware/socat-1.7.3.4/Config/Makefile.Linux-2-6-24
new file mode 100644
index 00000000..e39b63b3
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.Linux-2-6-24
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS =
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lreadline -lssl
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.MacOSX-10-5 b/lib/hardware/socat-1.7.3.4/Config/Makefile.MacOSX-10-5
new file mode 100644
index 00000000..2a808e72
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.MacOSX-10-5
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS = -D__DYNAMIC__
+CPPFLAGS = -I. -I/usr/local/include
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lresolv -lreadline -lssl -lcrypto
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE -L/usr/local/lib $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE -L/usr/local/lib $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html doc/socat-genericsocket.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.NetBSD-5-1 b/lib/hardware/socat-1.7.3.4/Config/Makefile.NetBSD-5-1
new file mode 100644
index 00000000..b0e67bf3
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.NetBSD-5-1
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS =
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lssl
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.OpenBSD-4-3 b/lib/hardware/socat-1.7.3.4/Config/Makefile.OpenBSD-4-3
new file mode 100644
index 00000000..375c1205
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.OpenBSD-4-3
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS = -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=5
+CPPFLAGS = -I.
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lutil -lreadline -lcurses -lssl -lcrypto
+LDFLAGS =
+
+INSTALL = /usr/bin/install -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/Makefile.SunOS-5-10 b/lib/hardware/socat-1.7.3.4/Config/Makefile.SunOS-5-10
new file mode 100644
index 00000000..5bd38bec
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/Makefile.SunOS-5-10
@@ -0,0 +1,195 @@
+# source: Makefile.in
+# Copyright Gerhard Rieger and contributors (see file CHANGES)
+# Published under the GNU General Public License V.2, see file COPYING
+
+# note: @...@ forms are filled in by configure script
+
+SHELL = /bin/sh
+AR = ar
+RANLIB = ranlib
+
+.SUFFIXES: .c .o
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+BINDEST = ${exec_prefix}/bin
+
+datarootdir = ${prefix}/share
+MANDEST = ${datarootdir}/man
+
+srcdir = .
+
+
+CC = gcc
+CCOPTS = $(CCOPT) -Wall -Wno-parentheses
+
+SYSDEFS =
+CPPFLAGS = -I. -I/usr/sfw/include
+#0 INCLS = -I. @V_INCL@
+DEFS = -DHAVE_CONFIG_H
+LIBS = -lwrap -lrt -lsocket -lnsl -lresolv -lreadline -lcurses -L/usr/sfw/lib -lssl -lcrypto
+LDFLAGS =
+
+INSTALL = ./install-sh -c
+
+#OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o)
+
+
+#0 CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(INCLS)
+CFLAGS = -O -D_GNU_SOURCE $(CCOPTS) $(DEFS) $(CPPFLAGS)
+CLIBS = $(LIBS)
+#CLIBS = $(LIBS) -lm -lefence
+XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \
+ xiosignal.c xiosigchld.c xioread.c xiowrite.c \
+ xiolayer.c xioshutdown.c xioclose.c xioexit.c \
+ xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
+ xio-gopen.c xio-creat.c xio-file.c xio-named.c \
+ xio-socket.c xio-interface.c xio-listen.c xio-unix.c \
+ xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \
+ xio-sctp.c xio-rawip.c \
+ xio-socks.c xio-proxy.c xio-udp.c \
+ xio-rawip.c \
+ xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \
+ xio-pty.c xio-openssl.c xio-streams.c\
+ xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c
+XIOOBJS = $(XIOSRCS:.c=.o)
+UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c filan.c sycls.c sslcls.c
+UTLOBJS = $(UTLSRCS:.c=.o)
+CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c
+OFILES = $(CFILES:.c=.o)
+PROGS = socat procan filan
+
+HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h compat.h \
+ xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \
+ xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
+ xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \
+ xio-socket.h xio-interface.h xio-listen.h xio-unix.h \
+ xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \
+ xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \
+ xio-socks.h xio-proxy.h xio-progcall.h xio-exec.h \
+ xio-system.h xio-termios.h xio-readline.h \
+ xio-pty.h xio-openssl.h xio-streams.h \
+ xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h
+
+
+DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css doc/socat-openssltunnel.html doc/socat-multicast.html doc/socat-tun.html
+SHFILES = daemon.sh mail.sh ftp.sh readline.sh
+TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \
+ proxy.sh socks4a-echo.sh testcert.conf
+OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \
+ Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \
+ Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \
+ Config/Makefile.NetBSD-4-0 Config/config.NetBSD-4-0.h \
+ Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h
+
+all: progs doc
+
+scmclean: gitclean
+
+gitclean: distclean docclean
+ rm -f Makefile.bak configure
+
+doc: doc/socat.1 doc/socat.html
+
+docclean:
+ rm -f doc/socat.1 doc/socat.html
+
+doc/socat.1: doc/socat.yo
+ yodl2man -o $@ $+
+
+doc/socat.html: doc/socat.yo
+ cd doc; yodl2html -o socat.html socat.yo; cd ..
+
+progs: $(PROGS)
+
+depend: $(CFILES) $(HFILES)
+ makedepend $(SYSDEFS) $(CFILES)
+
+socat: socat.o libxio.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS)
+
+PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o
+procan: $(PROCAN_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS)
+
+filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o $(CLIBS)
+
+libxio.a: $(XIOOBJS) $(UTLOBJS)
+ $(AR) r $@ $(XIOOBJS) $(UTLOBJS)
+ $(RANLIB) $@
+
+doc: doc/xio.help
+#
+
+strip: progs
+ strip $(PROGS)
+
+install: progs $(srcdir)/doc/socat.1
+ mkdir -p $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
+ mkdir -p $(DESTDIR)$(MANDEST)/man1
+ $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDEST)/socat
+ rm -f $(DESTDIR)$(BINDEST)/procan
+ rm -f $(DESTDIR)$(BINDEST)/filan
+ rm -f $(DESTDIR)$(MANDEST)/man1/socat.1
+
+# make a GNU-zipped tar ball of the source files
+dist: socat.tar.gz socat.tar.bz2
+
+socat.tar.gz: socat.tar
+ gzip -9 socat.tar.gz
+
+socat.tar.bz2: socat.tar
+ bzip2 -9 socat.tar.bz2
+
+VERSION = `sed 's/"//g' VERSION`
+TARDIR = socat-$(VERSION)
+socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) socat.spec
+ if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi
+ tar cf - $+ |(cd $(TARDIR); tar xf -)
+ tar cvf socat.tar $(TARDIR)
+ rm -f $(TARDIR)/COPYING # write protected
+ rm -r $(TARDIR)
+
+clean:
+ rm -f *.o libxio.a socat procan filan \
+ socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \
+ socat.out compile.log test.log
+
+# remove all files that are generated from the original socat distribution
+# note that Makefile is also removed, so you have to start with ./configure
+# again
+distclean: clean
+ rm -f config.status config.cache config.log config.h Makefile
+ rm -rf autom4te.cache
+
+info: socat
+ uname -a >socat.out
+ ./socat -V >>socat.out
+ ./socat -hh >>socat.out
+
+# perform some tests on socat
+test: progs
+ ./test.sh
+
+cert:
+ # prepare critical files with correct permissions to avoid race cond
+ >cert.key
+ >cert.pem
+ chmod 600 cert.key cert.pem
+ # generate a private key
+ openssl genrsa -out cert.key 1024
+ # generate a self signed cert
+ openssl req -new -key cert.key -x509 -days 3653 -out cert.crt
+ # ...enter fields
+ # generate the pem file
+ cat cert.key cert.crt >cert.pem
+ #echo use cert.pem on requestors side, i.e. with option cert=cert.pem
+ #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt
diff --git a/lib/hardware/socat-1.7.3.4/Config/config.AIX-5-3.h b/lib/hardware/socat-1.7.3.4/Config/config.AIX-5-3.h
new file mode 100644
index 00000000..f2c7e94f
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/config.AIX-5-3.h
@@ -0,0 +1,523 @@
+/* config.h. Generated from config.h.in by configure. */
+/* source: config.h.in */
+/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
+/* Published under the GNU General Public License V.2, see file COPYING */
+
+#ifndef __config_h_included
+#define __config_h_included 1
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to `int' if doesn't define. */
+/* #undef gid_t */
+
+/* Define if your struct stat has st_blksize. */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks. */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the strftime function. */
+#define HAVE_STRFTIME 1
+
+/* Define if you have that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to `int' if doesn't define. */
+/* #undef mode_t */
+
+/* Define to `long' if doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if doesn't define. */
+/* #undef pid_t */
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define to `unsigned' if doesn't define. */
+/* #undef size_t */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both and . */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to `int' if doesn't define. */
+/* #undef uid_t */
+
+/* Define if you have the putenv function. */
+#define HAVE_PUTENV 1
+
+/* Define if you have the select function. */
+#define HAVE_SELECT 1
+
+/* Define if you have the poll function. */
+#define HAVE_POLL 1
+
+/* Define if you have the socket function. */
+#define HAVE_SOCKET 1
+
+/* Define if you have the strdup function. */
+#define HAVE_STRDUP 1
+
+/* Define if you have the strerror function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the strstr function. */
+#define HAVE_STRSTR 1
+
+/* Define if you have the strtod function. */
+#define HAVE_STRTOD 1
+
+/* Define if you have the strtol function. */
+#define HAVE_STRTOL 1
+
+/* Define if you have the strtoul function. */
+#define HAVE_STRTOUL 1
+
+/* Define if you have the uname function. */
+#define HAVE_UNAME 1
+
+/* Define if you have the getpgid function. */
+#define HAVE_GETPGID 1
+
+/* Define if you have the getsid function. */
+#define HAVE_GETSID 1
+
+/* Define if you have the nanosleep function. */
+#define HAVE_NANOSLEEP 1
+
+/* Define if you have the getaddrinfo function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define if you have the getipnodebyname function. */
+#define HAVE_GETIPNODEBYNAME 1
+
+/* Define if you have the setgroups function. */
+#define HAVE_SETGROUPS 1
+
+/* Define if you have the inet_aton function. */
+#define HAVE_INET_ATON 1
+
+/* Define if you have the memrchr function. */
+/* #undef HAVE_MEMRCHR */
+
+/* Define if you have the if_indextoname function. */
+#define HAVE_IF_INDEXTONAME 1
+
+/* Define if you have the sigaction function */
+#define HAVE_SIGACTION 1
+
+/* Define if you have the stat64 function */
+#define HAVE_STAT64 1
+
+/* Define if you have the fstat64 function */
+#define HAVE_FSTAT64 1
+
+/* Define if you have the lstat64 function */
+#define HAVE_LSTAT64 1
+
+/* Define if you have the lseek64 function */
+#define HAVE_LSEEK64 1
+
+/* Define if you have the truncate64 function */
+#define HAVE_TRUNCATE64 1
+
+/* Define if you have the ftruncate64 function */
+#define HAVE_FTRUNCATE64 1
+
+/* Define if you have the strtoll function */
+#define HAVE_STRTOLL 1
+
+/* Define if you have the hstrerror function */
+#define HAVE_HSTRERROR 1
+
+/* Define if you have the inet_ntop function */
+#define HAVE_INET_NTOP 1
+
+/* Define if you have the hstrerror prototype */
+#define HAVE_PROTOTYPE_HSTRERROR 1
+
+/* Define if you have the header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYSLOG_H 1
+
+/* Define if you have the header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_PWD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_GRP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_POLL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UIO_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETDB_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UN_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_PTY_H */
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_SYSTM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_TCP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP6_H 1
+
+/* Define if you have the header file. */
+#define HAVE_ARPA_NAMESER_H 1
+
+/* Define if you have the header file. */
+#define HAVE_RESOLV_H 1
+
+/* Define if you have the header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_DL_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_TYPES_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_ERRQUEUE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_IF_TUN_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETPACKET_PACKET_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET_IF_ETHER_H */
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UTSNAME_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the header file. (NetBSD, OpenBSD: openpty()) */
+/* #undef HAVE_UTIL_H */
+
+/* Define if you have the header file. (FreeBSD: openpty()) */
+/* #undef HAVE_LIBUTIL_H */
+
+/* Define if you have the header file. (stream opts on SunOS)*/
+#define HAVE_SYS_STROPTS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_REGEX_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_EXT2_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_READLINE_READLINE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_READLINE_HISTORY_H */
+
+/* Define if you have the readline library. */
+/* #undef HAVE_LIBREADLINE */
+
+/* Define if you have the m library (-lm). */
+/* #undef HAVE_LIBM */
+
+/* Define if you have the floor function */
+/* #undef HAVE_FLOOR */
+
+/* some platforms need _XOPEN_EXTENDED_SOURCE to get syslog headers (AIX4.1) */
+/* #undef _XOPEN_EXTENDED_SOURCE */
+
+/* fdset may have component fds_bits or __fds_bits */
+#define HAVE_FDS_BITS 1
+
+/* Define if you have the sa_family_t */
+#define HAVE_TYPE_SA_FAMILY_T 1
+
+/* define if your struct sigaction has sa_sigaction */
+#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
+
+/* Define if your struct termios has component c_ispeed */
+/* #undef HAVE_TERMIOS_ISPEED */
+
+/* the offset of c_ispeed in struct termios - usable in an speed_t array.
+ Applies only when HAVE_TERMIOS_ISPEED is set */
+/* #undef ISPEED_OFFSET */
+
+/* the offset of c_ospeed in struct termios - see ISPEED_OFFSET */
+#ifdef ISPEED_OFFSET
+# define OSPEED_OFFSET (ISPEED_OFFSET+1)
+#else
+/* # undef OSPEED_OFFSET */
+#endif
+
+/* Define if your termios.h likes _SVID3 defined */
+/* #undef _SVID3 */
+
+/* Define if you have struct timespec (e.g. for nanosleep) */
+#define HAVE_STRUCT_TIMESPEC 1
+
+/* Define if you have struct linger */
+#define HAVE_STRUCT_LINGER 1
+
+/* Define if you have struct ip_mreq */
+#define HAVE_STRUCT_IP_MREQ 1
+
+/* Define if you have struct ip_mreqn */
+/* #undef HAVE_STRUCT_IP_MREQN */
+
+/* Define if you have struct ipv6_mreq */
+#define HAVE_STRUCT_IPV6_MREQ 1
+
+/* Define if you have struct ifreq */
+#define HAVE_STRUCT_IFREQ 1
+
+/* Define if you have struct ifreq.ifr_index */
+/* #undef HAVE_STRUCT_IFREQ_IFR_INDEX */
+
+/* Define if you have struct ifreq.ifr_ifindex; not on HPUX */
+/* #undef HAVE_STRUCT_IFREQ_IFR_IFINDEX */
+
+/* Define if your struct sockaddr has sa_len */
+#define HAVE_STRUCT_SOCKADDR_SALEN 1
+
+/* there are several implementations of sockaddr_in6 */
+#define HAVE_IP6_SOCKADDR 0
+
+/* Define if you have struct iovec */
+#define HAVE_STRUCT_IOVEC 1
+
+/* define if your struct msghdr has msg_control */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROL 1
+
+/* define if your struct msghdr has msg_controllen */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROLLEN 1
+
+/* define if your struct msghdr has msg_flag */
+#define HAVE_STRUCT_MSGHDR_MSGFLAGS 1
+
+/* define if you have struct cmsghdr */
+#define HAVE_STRUCT_CMSGHDR 1
+
+/* define if you have struct in_pktinfo */
+/* #undef HAVE_STRUCT_IN_PKTINFO */
+
+/* define if your struct ip has ip_hl; otherwise assume ip_vhl */
+#define HAVE_STRUCT_IP_IP_HL 1
+
+/* Define if you have the setenv function */
+#define HAVE_SETENV 1
+
+/* Define if you have the unsetenv function. not on HP-UX */
+#define HAVE_UNSETENV 1
+
+/* Define if you have the flock function */
+/* #undef HAVE_FLOCK */
+#define HAVE_FLOCK 1
+
+/* Define if you have the openpty function */
+/* #undef HAVE_OPENPTY */
+
+/* Define if you have the grantpt function */
+#define HAVE_GRANTPT 1
+
+/* Define if you have the unlockpt function */
+#define HAVE_UNLOCKPT 1
+
+/* Define if you have the ptsname function */
+#define HAVE_PTSNAME 1
+
+/* Define if you have the /dev/ptmx pseudo terminal multiplexer */
+/* #undef HAVE_DEV_PTMX */
+
+/* Define if you have the /dev/ptc pseudo terminal multiplexer */
+#define HAVE_DEV_PTC 1
+
+/* Define if you have the long long type */
+#define HAVE_TYPE_LONGLONG 1
+
+/* is socklen_t already typedef'd? */
+#define HAVE_TYPE_SOCKLEN 1
+
+/* Define if you have the struct stat64 type */
+#define HAVE_TYPE_STAT64 1
+
+/* Define if you have the struct off64_t type */
+#define HAVE_TYPE_OFF64 1
+
+/* is sighandler_t already typedef'd? */
+/* #undef HAVE_TYPE_SIGHANDLER */
+
+/* is uint8_t already defined? */
+#define HAVE_TYPE_UINT8 1
+
+/* is uint16_t already defined? */
+#define HAVE_TYPE_UINT16 1
+
+/* is uint32_t already defined? */
+#define HAVE_TYPE_UINT32 1
+
+/* is uint64_t already defined? */
+#define HAVE_TYPE_UINT64 1
+
+/* Define if you have the printf "Z" modifier */
+/* #undef HAVE_FORMAT_Z */
+
+/* Define the shift offset of the CRDLY mask */
+#define CRDLY_SHIFT 8
+
+/* Define the shift offset of the TABDLY mask */
+#define TABDLY_SHIFT 10
+
+/* Define the shift offset of the CSIZE mask */
+#define CSIZE_SHIFT 4
+
+/* Define if you have tcpwrappers (libwrap, tcpd) and it declares hosts_allow_table */
+/* #undef HAVE_HOSTS_ALLOW_TABLE */
+#if defined(HAVE_HOSTS_ALLOW_TABLE) && HAVE_HOSTS_ALLOW_TABLE
+# define HAVE_HOSTS_DENY_TABLE 1
+#else
+/* # undef HAVE_HOSTS_DENY_TABLE */
+#endif
+
+/* 1..short, 3..int, 5..long; 2,4,6..unsigned */
+#define HAVE_BASIC_SIZE_T 0 /* unknown, taking default */
+#define HAVE_BASIC_MODE_T 0 /* unknown, taking default */
+#define HAVE_BASIC_PID_T 0 /* unknown, taking default */
+#define HAVE_BASIC_UID_T 0 /* unknown, taking default */
+#define HAVE_BASIC_GID_T 0 /* unknown, taking default */
+#define HAVE_BASIC_TIME_T 0 /* unknown, taking default */
+#define HAVE_BASIC_OFF64_T 0 /* unknown, taking default */
+
+#define HAVE_BASIC_SOCKLEN_T 0 /* unknown, taking default */
+
+#define HAVE_TYPEOF_ST_DEV 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST_INO 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST_NLINK 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST_SIZE 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST_BLKSIZE 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST_BLOCKS 0 /* unknown, taking default */
+
+#define HAVE_TYPEOF_ST64_DEV 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST64_INO 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST64_NLINK 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST64_SIZE 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST64_BLKSIZE 0 /* unknown, taking default */
+#define HAVE_TYPEOF_ST64_BLOCKS 0 /* unknown, taking default */
+
+#define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC 0 /* unknown, taking default */
+
+#define HAVE_TYPEOF_RLIM_MAX 0 /* unknown, taking default */
+
+/* Define if you have the /proc filesystem */
+#define HAVE_PROC_DIR 1
+
+/* Define if you have the /proc/$$/fd directories */
+#define HAVE_PROC_DIR_FD 1
+
+#define WITH_HELP 1
+#define WITH_STDIO 1
+#define WITH_FDNUM 1
+#define WITH_FILE 1
+#define WITH_CREAT 1
+#define WITH_GOPEN 1
+#define WITH_TERMIOS 1
+#define WITH_PIPE 1
+#define WITH_UNIX 1
+/* #undef WITH_ABSTRACT_UNIXSOCKET */
+#define WITH_IP4 1
+#define WITH_IP6 1
+#define WITH_RAWIP 1
+#define WITH_GENERICSOCKET 1
+/* #undef WITH_INTERFACE */
+#define WITH_TCP 1
+#define WITH_UDP 1
+#define WITH_SCTP 1
+#define WITH_LISTEN 1
+#define WITH_SOCKS4 1
+#define WITH_SOCKS4A 1
+#define WITH_PROXY 1
+#define WITH_EXEC 1
+#define WITH_SYSTEM 1
+/* #undef WITH_READLINE */
+/* #undef WITH_TUN */
+#define WITH_PTY 1
+#define WITH_EXT2 1
+#define WITH_OPENSSL 1
+#define WITH_STREAMS 1
+/* #undef WITH_FIPS */
+/* #undef OPENSSL_FIPS */
+/* #undef WITH_LIBWRAP */
+/* #undef HAVE_TCPD_H */
+/* #undef HAVE_LIBWRAP */
+
+#define WITH_SYCLS 1
+#define WITH_FILAN 1
+#define WITH_RETRY 1
+
+#define WITH_MSGLEVEL 0
+
+#endif /* !defined(__config_h_included) */
diff --git a/lib/hardware/socat-1.7.3.4/Config/config.Cygwin-1-5-25.h b/lib/hardware/socat-1.7.3.4/Config/config.Cygwin-1-5-25.h
new file mode 100644
index 00000000..8840369e
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/config.Cygwin-1-5-25.h
@@ -0,0 +1,522 @@
+/* config.h. Generated from config.h.in by configure. */
+/* source: config.h.in */
+/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
+/* Published under the GNU General Public License V.2, see file COPYING */
+
+#ifndef __config_h_included
+#define __config_h_included 1
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to `int' if doesn't define. */
+/* #undef gid_t */
+
+/* Define if your struct stat has st_blksize. */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks. */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the strftime function. */
+#define HAVE_STRFTIME 1
+
+/* Define if you have that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to `int' if doesn't define. */
+/* #undef mode_t */
+
+/* Define to `long' if doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if doesn't define. */
+/* #undef pid_t */
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define to `unsigned' if doesn't define. */
+/* #undef size_t */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both and . */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to `int' if doesn't define. */
+/* #undef uid_t */
+
+/* Define if you have the putenv function. */
+#define HAVE_PUTENV 1
+
+/* Define if you have the select function. */
+#define HAVE_SELECT 1
+
+/* Define if you have the poll function. */
+#define HAVE_POLL 1
+
+/* Define if you have the socket function. */
+#define HAVE_SOCKET 1
+
+/* Define if you have the strdup function. */
+#define HAVE_STRDUP 1
+
+/* Define if you have the strerror function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the strstr function. */
+#define HAVE_STRSTR 1
+
+/* Define if you have the strtod function. */
+#define HAVE_STRTOD 1
+
+/* Define if you have the strtol function. */
+#define HAVE_STRTOL 1
+
+/* Define if you have the strtoul function. */
+#define HAVE_STRTOUL 1
+
+/* Define if you have the uname function. */
+#define HAVE_UNAME 1
+
+/* Define if you have the getpgid function. */
+#define HAVE_GETPGID 1
+
+/* Define if you have the getsid function. */
+#define HAVE_GETSID 1
+
+/* Define if you have the nanosleep function. */
+#define HAVE_NANOSLEEP 1
+
+/* Define if you have the getaddrinfo function. */
+/* #undef HAVE_GETADDRINFO */
+
+/* Define if you have the getipnodebyname function. */
+/* #undef HAVE_GETIPNODEBYNAME */
+
+/* Define if you have the setgroups function. */
+#define HAVE_SETGROUPS 1
+
+/* Define if you have the inet_aton function. */
+#define HAVE_INET_ATON 1
+
+/* Define if you have the memrchr function. */
+/* #undef HAVE_MEMRCHR */
+
+/* Define if you have the if_indextoname function. */
+/* #undef HAVE_IF_INDEXTONAME */
+
+/* Define if you have the sigaction function */
+#define HAVE_SIGACTION 1
+
+/* Define if you have the stat64 function */
+/* #undef HAVE_STAT64 */
+
+/* Define if you have the fstat64 function */
+/* #undef HAVE_FSTAT64 */
+
+/* Define if you have the lstat64 function */
+/* #undef HAVE_LSTAT64 */
+
+/* Define if you have the lseek64 function */
+/* #undef HAVE_LSEEK64 */
+
+/* Define if you have the truncate64 function */
+/* #undef HAVE_TRUNCATE64 */
+
+/* Define if you have the ftruncate64 function */
+/* #undef HAVE_FTRUNCATE64 */
+
+/* Define if you have the strtoll function */
+#define HAVE_STRTOLL 1
+
+/* Define if you have the hstrerror function */
+#define HAVE_HSTRERROR 1
+
+/* Define if you have the inet_ntop function */
+#define HAVE_INET_NTOP 1
+
+/* Define if you have the hstrerror prototype */
+#define HAVE_PROTOTYPE_HSTRERROR 1
+
+/* Define if you have the header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYSLOG_H 1
+
+/* Define if you have the header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_PWD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_GRP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_POLL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UIO_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETDB_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UN_H 1
+
+/* Define if you have the header file. */
+#define HAVE_PTY_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_SYSTM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_TCP_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET_IP6_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_ARPA_NAMESER_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_RESOLV_H */
+
+/* Define if you have the header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_NET_IF_DL_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_TYPES_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_ERRQUEUE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_IF_TUN_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETPACKET_PACKET_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET_IF_ETHER_H */
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UTSNAME_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the header file. (NetBSD, OpenBSD: openpty()) */
+/* #undef HAVE_UTIL_H */
+
+/* Define if you have the header file. (FreeBSD: openpty()) */
+/* #undef HAVE_LIBUTIL_H */
+
+/* Define if you have the header file. (stream opts on SunOS)*/
+/* #undef HAVE_SYS_STROPTS_H */
+
+/* Define if you have the header file. */
+#define HAVE_REGEX_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_EXT2_FS_H */
+
+/* Define if you have the header file. */
+#define HAVE_READLINE_READLINE_H 1
+
+/* Define if you have the header file. */
+#define HAVE_READLINE_HISTORY_H 1
+
+/* Define if you have the readline library. */
+#define HAVE_LIBREADLINE 1
+
+/* Define if you have the m library (-lm). */
+/* #undef HAVE_LIBM */
+
+/* Define if you have the floor function */
+/* #undef HAVE_FLOOR */
+
+/* some platforms need _XOPEN_EXTENDED_SOURCE to get syslog headers (AIX4.1) */
+/* #undef _XOPEN_EXTENDED_SOURCE */
+
+/* fdset may have component fds_bits or __fds_bits */
+#define HAVE_FDS_BITS 1
+
+/* Define if you have the sa_family_t */
+#define HAVE_TYPE_SA_FAMILY_T 1
+
+/* define if your struct sigaction has sa_sigaction */
+#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
+
+/* Define if your struct termios has component c_ispeed */
+#define HAVE_TERMIOS_ISPEED 1
+
+/* the offset of c_ispeed in struct termios - usable in an speed_t array.
+ Applies only when HAVE_TERMIOS_ISPEED is set */
+#define ISPEED_OFFSET 9
+
+/* the offset of c_ospeed in struct termios - see ISPEED_OFFSET */
+#ifdef ISPEED_OFFSET
+# define OSPEED_OFFSET (ISPEED_OFFSET+1)
+#else
+/* # undef OSPEED_OFFSET */
+#endif
+
+/* Define if your termios.h likes _SVID3 defined */
+/* #undef _SVID3 */
+
+/* Define if you have struct timespec (e.g. for nanosleep) */
+#define HAVE_STRUCT_TIMESPEC 1
+
+/* Define if you have struct linger */
+#define HAVE_STRUCT_LINGER 1
+
+/* Define if you have struct ip_mreq */
+#define HAVE_STRUCT_IP_MREQ 1
+
+/* Define if you have struct ip_mreqn */
+/* #undef HAVE_STRUCT_IP_MREQN */
+
+/* Define if you have struct ipv6_mreq */
+/* #undef HAVE_STRUCT_IPV6_MREQ */
+
+/* Define if you have struct ifreq */
+#define HAVE_STRUCT_IFREQ 1
+
+/* Define if you have struct ifreq.ifr_index */
+/* #undef HAVE_STRUCT_IFREQ_IFR_INDEX */
+
+/* Define if you have struct ifreq.ifr_ifindex; not on HPUX */
+/* #undef HAVE_STRUCT_IFREQ_IFR_IFINDEX */
+
+/* Define if your struct sockaddr has sa_len */
+/* #undef HAVE_STRUCT_SOCKADDR_SALEN */
+
+/* there are several implementations of sockaddr_in6 */
+/* #undef HAVE_IP6_SOCKADDR */
+
+/* Define if you have struct iovec */
+#define HAVE_STRUCT_IOVEC 1
+
+/* define if your struct msghdr has msg_control */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROL 1
+
+/* define if your struct msghdr has msg_controllen */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROLLEN 1
+
+/* define if your struct msghdr has msg_flag */
+#define HAVE_STRUCT_MSGHDR_MSGFLAGS 1
+
+/* define if you have struct cmsghdr */
+#define HAVE_STRUCT_CMSGHDR 1
+
+/* define if you have struct in_pktinfo */
+/* #undef HAVE_STRUCT_IN_PKTINFO */
+
+/* define if your struct ip has ip_hl; otherwise assume ip_vhl */
+#define HAVE_STRUCT_IP_IP_HL 1
+
+/* Define if you have the setenv function */
+#define HAVE_SETENV 1
+
+/* Define if you have the unsetenv function. not on HP-UX */
+#define HAVE_UNSETENV 1
+
+/* Define if you have the flock function */
+#define HAVE_FLOCK 1
+
+/* Define if you have the openpty function */
+#define HAVE_OPENPTY 1
+
+/* Define if you have the grantpt function */
+#define HAVE_GRANTPT 1
+
+/* Define if you have the unlockpt function */
+#define HAVE_UNLOCKPT 1
+
+/* Define if you have the ptsname function */
+#define HAVE_PTSNAME 1
+
+/* Define if you have the /dev/ptmx pseudo terminal multiplexer */
+#define HAVE_DEV_PTMX 1
+
+/* Define if you have the /dev/ptc pseudo terminal multiplexer */
+/* #undef HAVE_DEV_PTC */
+
+/* Define if you have the long long type */
+#define HAVE_TYPE_LONGLONG 1
+
+/* is socklen_t already typedef'd? */
+#define HAVE_TYPE_SOCKLEN 1
+
+/* Define if you have the struct stat64 type */
+/* #undef HAVE_TYPE_STAT64 */
+
+/* Define if you have the struct off64_t type */
+/* #undef HAVE_TYPE_OFF64 */
+
+/* is sighandler_t already typedef'd? */
+/* #undef HAVE_TYPE_SIGHANDLER */
+
+/* is uint8_t already defined? */
+#define HAVE_TYPE_UINT8 1
+
+/* is uint16_t already defined? */
+#define HAVE_TYPE_UINT16 1
+
+/* is uint32_t already defined? */
+#define HAVE_TYPE_UINT32 1
+
+/* is uint64_t already defined? */
+#define HAVE_TYPE_UINT64 1
+
+/* Define if you have the printf "Z" modifier */
+/* #undef HAVE_FORMAT_Z */
+
+/* Define the shift offset of the CRDLY mask */
+#define CRDLY_SHIFT 7
+
+/* Define the shift offset of the TABDLY mask */
+#define TABDLY_SHIFT 11
+
+/* Define the shift offset of the CSIZE mask */
+#define CSIZE_SHIFT 4
+
+/* Define if you have tcpwrappers (libwrap, tcpd) and it declares hosts_allow_table */
+#define HAVE_HOSTS_ALLOW_TABLE 1
+#if defined(HAVE_HOSTS_ALLOW_TABLE) && HAVE_HOSTS_ALLOW_TABLE
+# define HAVE_HOSTS_DENY_TABLE 1
+#else
+/* # undef HAVE_HOSTS_DENY_TABLE */
+#endif
+
+/* 1..short, 3..int, 5..long; 2,4,6..unsigned */
+#define HAVE_BASIC_SIZE_T 4 /* unsigned int */
+#define HAVE_BASIC_MODE_T 4 /* unsigned int */
+#define HAVE_BASIC_PID_T 3 /* int */
+#define HAVE_BASIC_UID_T 6 /* unsigned long */
+#define HAVE_BASIC_GID_T 6 /* unsigned long */
+#define HAVE_BASIC_TIME_T 5 /* long */
+#define HAVE_BASIC_OFF64_T 0 /* unknown, taking default */
+
+#define HAVE_BASIC_SOCKLEN_T 3 /* int */
+
+#define HAVE_TYPEOF_ST_DEV 6 /* unsigned long */
+#define HAVE_TYPEOF_ST_INO 8 /* unsigned long long */
+#define HAVE_TYPEOF_ST_NLINK 2 /* unsigned short */
+#define HAVE_TYPEOF_ST_SIZE 7 /* long long */
+#define HAVE_TYPEOF_ST_BLKSIZE 5 /* long */
+#define HAVE_TYPEOF_ST_BLOCKS 7 /* long long */
+
+/* #undef HAVE_TYPEOF_ST64_DEV */
+/* #undef HAVE_TYPEOF_ST64_INO */
+/* #undef HAVE_TYPEOF_ST64_NLINK */
+/* #undef HAVE_TYPEOF_ST64_SIZE */
+/* #undef HAVE_TYPEOF_ST64_BLKSIZE */
+/* #undef HAVE_TYPEOF_ST64_BLOCKS */
+
+#define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC 5 /* long */
+
+#define HAVE_TYPEOF_RLIM_MAX 6 /* unsigned long */
+
+/* Define if you have the /proc filesystem */
+#define HAVE_PROC_DIR 1
+
+/* Define if you have the /proc/$$/fd directories */
+#define HAVE_PROC_DIR_FD 1
+
+#define WITH_HELP 1
+#define WITH_STDIO 1
+#define WITH_FDNUM 1
+#define WITH_FILE 1
+#define WITH_CREAT 1
+#define WITH_GOPEN 1
+#define WITH_TERMIOS 1
+#define WITH_PIPE 1
+#define WITH_UNIX 1
+/* #undef WITH_ABSTRACT_UNIXSOCKET */
+#define WITH_IP4 1
+/* #undef WITH_IP6 */
+#define WITH_RAWIP 1
+#define WITH_GENERICSOCKET 1
+/* #undef WITH_INTERFACE */
+#define WITH_TCP 1
+#define WITH_UDP 1
+/* #undef WITH_SCTP */
+#define WITH_LISTEN 1
+#define WITH_SOCKS4 1
+#define WITH_SOCKS4A 1
+#define WITH_PROXY 1
+#define WITH_EXEC 1
+#define WITH_SYSTEM 1
+#define WITH_READLINE 1
+/* #undef WITH_TUN */
+#define WITH_PTY 1
+#define WITH_EXT2 1
+#define WITH_OPENSSL 1
+#define WITH_STREAMS 1
+/* #undef WITH_FIPS */
+/* #undef OPENSSL_FIPS */
+#define WITH_LIBWRAP 1
+#define HAVE_TCPD_H 1
+#define HAVE_LIBWRAP 1
+
+#define WITH_SYCLS 1
+#define WITH_FILAN 1
+#define WITH_RETRY 1
+
+#define WITH_MSGLEVEL 0
+
+#endif /* !defined(__config_h_included) */
diff --git a/lib/hardware/socat-1.7.3.4/Config/config.DragonFly-2-8-2.h b/lib/hardware/socat-1.7.3.4/Config/config.DragonFly-2-8-2.h
new file mode 100644
index 00000000..5b249f8d
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/config.DragonFly-2-8-2.h
@@ -0,0 +1,545 @@
+/* config.h. Generated from config.h.in by configure. */
+/* source: config.h.in */
+/* Copyright Gerhard Rieger 2001-2011 */
+/* Published under the GNU General Public License V.2, see file COPYING */
+
+#ifndef __config_h_included
+#define __config_h_included 1
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to `int' if doesn't define. */
+/* #undef gid_t */
+
+/* Define if your struct stat has st_blksize. */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks. */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the strftime function. */
+#define HAVE_STRFTIME 1
+
+/* Define if you have that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to `int' if doesn't define. */
+/* #undef mode_t */
+
+/* Define to `long' if doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if doesn't define. */
+/* #undef pid_t */
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define to `unsigned' if doesn't define. */
+/* #undef size_t */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both and . */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to `int' if doesn't define. */
+/* #undef uid_t */
+
+/* Define if you have the putenv function. */
+#define HAVE_PUTENV 1
+
+/* Define if you have the select function. */
+#define HAVE_SELECT 1
+
+/* Define if you have the poll function. */
+#define HAVE_POLL 1
+
+/* Define if you have the socket function. */
+#define HAVE_SOCKET 1
+
+/* Define if you have the strdup function. */
+#define HAVE_STRDUP 1
+
+/* Define if you have the strerror function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the strstr function. */
+#define HAVE_STRSTR 1
+
+/* Define if you have the strtod function. */
+#define HAVE_STRTOD 1
+
+/* Define if you have the strtol function. */
+#define HAVE_STRTOL 1
+
+/* Define if you have the strtoul function. */
+#define HAVE_STRTOUL 1
+
+/* Define if you have the uname function. */
+#define HAVE_UNAME 1
+
+/* Define if you have the getpgid function. */
+#define HAVE_GETPGID 1
+
+/* Define if you have the getsid function. */
+#define HAVE_GETSID 1
+
+/* Define if you have the nanosleep function. */
+#define HAVE_NANOSLEEP 1
+
+/* Define if you have the getaddrinfo function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define if you have the getipnodebyname function. */
+#define HAVE_GETIPNODEBYNAME 1
+
+/* Define if you have the setgroups function. */
+#define HAVE_SETGROUPS 1
+
+/* Define if you have the inet_aton function. */
+#define HAVE_INET_ATON 1
+
+/* Define if you have the memrchr function. */
+#define HAVE_MEMRCHR 1
+
+/* Define if you have the if_indextoname function. */
+#define HAVE_IF_INDEXTONAME 1
+
+/* Define if you have the sigaction function */
+#define HAVE_SIGACTION 1
+
+/* Define if you have the stat64 function */
+/* #undef HAVE_STAT64 */
+
+/* Define if you have the fstat64 function */
+/* #undef HAVE_FSTAT64 */
+
+/* Define if you have the lstat64 function */
+/* #undef HAVE_LSTAT64 */
+
+/* Define if you have the lseek64 function */
+/* #undef HAVE_LSEEK64 */
+
+/* Define if you have the truncate64 function */
+/* #undef HAVE_TRUNCATE64 */
+
+/* Define if you have the ftruncate64 function */
+/* #undef HAVE_FTRUNCATE64 */
+
+/* Define if you have the strtoll function */
+#define HAVE_STRTOLL 1
+
+/* Define if you have the hstrerror function */
+#define HAVE_HSTRERROR 1
+
+/* Define if you have the inet_ntop function */
+#define HAVE_INET_NTOP 1
+
+/* Define if you have the hstrerror prototype */
+#define HAVE_PROTOTYPE_HSTRERROR 1
+
+/* Define if you have the header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if you have the header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYSLOG_H 1
+
+/* Define if you have the header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_PWD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_GRP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_POLL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UIO_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETDB_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UN_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_PTY_H */
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_SYSTM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_TCP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP6_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET6_IN6_H */
+
+/* Define if you have the header file. */
+#define HAVE_ARPA_NAMESER_H 1
+
+/* Define if you have the header file. */
+#define HAVE_RESOLV_H 1
+
+/* Define if you have the header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_DL_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_TYPES_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_ERRQUEUE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_IF_TUN_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETPACKET_PACKET_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET_IF_ETHER_H */
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UTSNAME_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the header file. (NetBSD, OpenBSD: openpty()) */
+/* #undef HAVE_UTIL_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_BSD_LIBUTIL_H */
+
+/* Define if you have the header file. (FreeBSD: openpty()) */
+#define HAVE_LIBUTIL_H 1
+
+/* Define if you have the header file. (stream opts on SunOS)*/
+/* #undef HAVE_SYS_STROPTS_H */
+
+/* Define if you have the header file. */
+#define HAVE_REGEX_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_EXT2_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_READLINE_READLINE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_READLINE_HISTORY_H */
+
+/* Define if you have the readline library. */
+/* #undef HAVE_LIBREADLINE */
+
+/* Define if you have the m library (-lm). */
+/* #undef HAVE_LIBM */
+
+/* Define if you have the floor function */
+/* #undef HAVE_FLOOR */
+
+/* some platforms need _XOPEN_EXTENDED_SOURCE to get syslog headers (AIX4.1) */
+/* #undef _XOPEN_EXTENDED_SOURCE */
+
+/* fdset may have component fds_bits or __fds_bits */
+#define HAVE_FDS_BITS 1
+
+/* Define if you have the sa_family_t */
+#define HAVE_TYPE_SA_FAMILY_T 1
+
+/* define if your struct sigaction has sa_sigaction */
+#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
+
+/* Define if your struct termios has component c_ispeed */
+#define HAVE_TERMIOS_ISPEED 1
+
+/* the offset of c_ispeed in struct termios - usable in an speed_t array.
+ Applies only when HAVE_TERMIOS_ISPEED is set */
+#define ISPEED_OFFSET 9
+
+/* the offset of c_ospeed in struct termios - see ISPEED_OFFSET */
+#ifdef ISPEED_OFFSET
+# define OSPEED_OFFSET (ISPEED_OFFSET+1)
+#else
+/* # undef OSPEED_OFFSET */
+#endif
+
+/* Define if your termios.h likes _SVID3 defined */
+/* #undef _SVID3 */
+
+/* Define if you have struct timespec (e.g. for nanosleep) */
+#define HAVE_STRUCT_TIMESPEC 1
+
+/* Define if you have struct linger */
+#define HAVE_STRUCT_LINGER 1
+
+/* Define if you have struct ip_mreq */
+#define HAVE_STRUCT_IP_MREQ 1
+
+/* Define if you have struct ip_mreqn */
+/* #undef HAVE_STRUCT_IP_MREQN */
+
+/* Define if you have struct ipv6_mreq */
+#define HAVE_STRUCT_IPV6_MREQ 1
+
+/* Define if you have struct ifreq */
+#define HAVE_STRUCT_IFREQ 1
+
+/* Define if you have struct ifreq.ifr_index */
+#define HAVE_STRUCT_IFREQ_IFR_INDEX 1
+
+/* Define if you have struct ifreq.ifr_ifindex; not on HPUX */
+/* #undef HAVE_STRUCT_IFREQ_IFR_IFINDEX */
+
+/* Define if your struct sockaddr has sa_len */
+#define HAVE_STRUCT_SOCKADDR_SALEN 1
+
+/* there are several implementations of sockaddr_in6 */
+#define HAVE_IP6_SOCKADDR 0
+
+/* Define if you have struct iovec */
+#define HAVE_STRUCT_IOVEC 1
+
+/* define if your struct msghdr has msg_control */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROL 1
+
+/* define if your struct msghdr has msg_controllen */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROLLEN 1
+
+/* define if your struct msghdr has msg_flag */
+#define HAVE_STRUCT_MSGHDR_MSGFLAGS 1
+
+/* define if you have struct cmsghdr */
+#define HAVE_STRUCT_CMSGHDR 1
+
+/* define if you have struct in_pktinfo */
+/* #undef HAVE_STRUCT_IN_PKTINFO */
+
+/* define if your struct in_pktinfo has component ipi_spec_dst */
+/* #undef HAVE_PKTINFO_IPI_SPEC_DST */
+
+/* define if your struct ip has ip_hl; otherwise assume ip_vhl */
+#define HAVE_STRUCT_IP_IP_HL 1
+
+/* Define if you have the setenv function */
+#define HAVE_SETENV 1
+
+/* Define if you have the unsetenv function. not on HP-UX */
+#define HAVE_UNSETENV 1
+
+/* Define if you have the SSLv2_client_method function. not in new openssl */
+/* #undef HAVE_SSLv2_client_method */
+
+/* Define if you have the SSLv2_server_method function. not in new openssl */
+#define HAVE_SSLv2_server_method 1
+
+/* Define if you have the flock function */
+#define HAVE_FLOCK 1
+
+/* Define if you have the openpty function */
+#define HAVE_OPENPTY 1
+
+/* Define if you have the grantpt function */
+#define HAVE_GRANTPT 1
+
+/* Define if you have the unlockpt function */
+#define HAVE_UNLOCKPT 1
+
+/* Define if you have the ptsname function */
+#define HAVE_PTSNAME 1
+
+/* Define if you have the /dev/ptmx pseudo terminal multiplexer */
+#define HAVE_DEV_PTMX 1
+
+/* Define if you have the /dev/ptc pseudo terminal multiplexer */
+/* #undef HAVE_DEV_PTC */
+
+/* Define if you have the long long type */
+#define HAVE_TYPE_LONGLONG 1
+
+/* is socklen_t already typedef'd? */
+#define HAVE_TYPE_SOCKLEN 1
+
+/* Define if you have the struct stat64 type */
+/* #undef HAVE_TYPE_STAT64 */
+
+/* Define if you have the struct off64_t type */
+/* #undef HAVE_TYPE_OFF64 */
+
+/* is sighandler_t already typedef'd? */
+/* #undef HAVE_TYPE_SIGHANDLER */
+
+/* is uint8_t already defined? */
+#define HAVE_TYPE_UINT8 1
+
+/* is uint16_t already defined? */
+#define HAVE_TYPE_UINT16 1
+
+/* is uint32_t already defined? */
+#define HAVE_TYPE_UINT32 1
+
+/* is uint64_t already defined? */
+#define HAVE_TYPE_UINT64 1
+
+/* Define if you have the printf "Z" modifier */
+/* #undef HAVE_FORMAT_Z */
+
+/* Define the shift offset of the CRDLY mask */
+#define CRDLY_SHIFT -1
+
+/* Define the shift offset of the TABDLY mask */
+#define TABDLY_SHIFT -1
+
+/* Define the shift offset of the CSIZE mask */
+#define CSIZE_SHIFT 8
+
+/* Define if you have tcpwrappers (libwrap, tcpd) and it declares hosts_allow_table */
+#define HAVE_HOSTS_ALLOW_TABLE 1
+#if defined(HAVE_HOSTS_ALLOW_TABLE) && HAVE_HOSTS_ALLOW_TABLE
+# define HAVE_HOSTS_DENY_TABLE 1
+#else
+/* # undef HAVE_HOSTS_DENY_TABLE */
+#endif
+
+/* 1..short, 3..int, 5..long; 2,4,6..unsigned */
+#define HAVE_BASIC_SIZE_T 4 /* unsigned int */
+#define HAVE_BASIC_MODE_T 2 /* unsigned short */
+#define HAVE_BASIC_PID_T 3 /* int */
+#define HAVE_BASIC_UID_T 4 /* unsigned int */
+#define HAVE_BASIC_GID_T 4 /* unsigned int */
+#define HAVE_BASIC_TIME_T 5 /* long */
+#define HAVE_BASIC_OFF_T 7 /* long long */
+#define HAVE_BASIC_OFF64_T 0 /* unknown, taking default */
+#define HAVE_BASIC_DEV_T 4 /* unsigned int */
+
+#define HAVE_BASIC_SOCKLEN_T 4 /* unsigned int */
+
+#define HAVE_TYPEOF_ST_INO 8 /* unsigned long long */
+#define HAVE_TYPEOF_ST_NLINK 4 /* unsigned int */
+#define HAVE_TYPEOF_ST_SIZE 7 /* long long */
+#define HAVE_TYPEOF_ST_BLKSIZE 4 /* unsigned int */
+#define HAVE_TYPEOF_ST_BLOCKS 7 /* long long */
+
+/* #undef HAVE_TYPEOF_ST64_DEV */
+/* #undef HAVE_TYPEOF_ST64_INO */
+/* #undef HAVE_TYPEOF_ST64_NLINK */
+/* #undef HAVE_TYPEOF_ST64_SIZE */
+/* #undef HAVE_TYPEOF_ST64_BLKSIZE */
+/* #undef HAVE_TYPEOF_ST64_BLOCKS */
+
+#define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC 5 /* long */
+
+#define HAVE_TYPEOF_RLIM_MAX 7 /* long long */
+
+/* Define if you have the /proc filesystem */
+#define HAVE_PROC_DIR 1
+
+/* Define if you have the /proc/$$/fd directories */
+/* #undef HAVE_PROC_DIR_FD */
+
+#define HAVE_SETGRENT 1
+#define HAVE_GETGRENT 1
+#define HAVE_ENDGRENT 1
+
+#define WITH_HELP 1
+#define WITH_STDIO 1
+#define WITH_FDNUM 1
+#define WITH_FILE 1
+#define WITH_CREAT 1
+#define WITH_GOPEN 1
+#define WITH_TERMIOS 1
+#define WITH_PIPE 1
+#define WITH_UNIX 1
+/* #undef WITH_ABSTRACT_UNIXSOCKET */
+#define WITH_IP4 1
+#define WITH_IP6 1
+#define WITH_RAWIP 1
+#define WITH_GENERICSOCKET 1
+/* #undef WITH_INTERFACE */
+#define WITH_TCP 1
+#define WITH_UDP 1
+#define WITH_SCTP 1
+#define WITH_LISTEN 1
+#define WITH_SOCKS4 1
+#define WITH_SOCKS4A 1
+#define WITH_PROXY 1
+#define WITH_EXEC 1
+#define WITH_SYSTEM 1
+/* #undef WITH_READLINE */
+/* #undef WITH_TUN */
+#define WITH_PTY 1
+#define WITH_EXT2 1
+#define WITH_OPENSSL 1
+#define WITH_STREAMS 1
+/* #undef WITH_FIPS */
+/* #undef OPENSSL_FIPS */
+#define WITH_LIBWRAP 1
+#define HAVE_TCPD_H 1
+#define HAVE_LIBWRAP 1
+
+#define WITH_SYCLS 1
+#define WITH_FILAN 1
+#define WITH_RETRY 1
+
+#define WITH_MSGLEVEL 0
+
+#endif /* !defined(__config_h_included) */
diff --git a/lib/hardware/socat-1.7.3.4/Config/config.FreeBSD-6-1.h b/lib/hardware/socat-1.7.3.4/Config/config.FreeBSD-6-1.h
new file mode 100644
index 00000000..3cc30812
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/config.FreeBSD-6-1.h
@@ -0,0 +1,522 @@
+/* config.h. Generated from config.h.in by configure. */
+/* source: config.h.in */
+/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
+/* Published under the GNU General Public License V.2, see file COPYING */
+
+#ifndef __config_h_included
+#define __config_h_included 1
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to `int' if doesn't define. */
+/* #undef gid_t */
+
+/* Define if your struct stat has st_blksize. */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks. */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the strftime function. */
+#define HAVE_STRFTIME 1
+
+/* Define if you have that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to `int' if doesn't define. */
+/* #undef mode_t */
+
+/* Define to `long' if doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if doesn't define. */
+/* #undef pid_t */
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define to `unsigned' if doesn't define. */
+/* #undef size_t */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both and . */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to `int' if doesn't define. */
+/* #undef uid_t */
+
+/* Define if you have the putenv function. */
+#define HAVE_PUTENV 1
+
+/* Define if you have the select function. */
+#define HAVE_SELECT 1
+
+/* Define if you have the poll function. */
+#define HAVE_POLL 1
+
+/* Define if you have the socket function. */
+#define HAVE_SOCKET 1
+
+/* Define if you have the strdup function. */
+#define HAVE_STRDUP 1
+
+/* Define if you have the strerror function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the strstr function. */
+#define HAVE_STRSTR 1
+
+/* Define if you have the strtod function. */
+#define HAVE_STRTOD 1
+
+/* Define if you have the strtol function. */
+#define HAVE_STRTOL 1
+
+/* Define if you have the strtoul function. */
+#define HAVE_STRTOUL 1
+
+/* Define if you have the uname function. */
+#define HAVE_UNAME 1
+
+/* Define if you have the getpgid function. */
+#define HAVE_GETPGID 1
+
+/* Define if you have the getsid function. */
+#define HAVE_GETSID 1
+
+/* Define if you have the nanosleep function. */
+#define HAVE_NANOSLEEP 1
+
+/* Define if you have the getaddrinfo function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define if you have the getipnodebyname function. */
+#define HAVE_GETIPNODEBYNAME 1
+
+/* Define if you have the setgroups function. */
+#define HAVE_SETGROUPS 1
+
+/* Define if you have the inet_aton function. */
+#define HAVE_INET_ATON 1
+
+/* Define if you have the memrchr function. */
+/* #undef HAVE_MEMRCHR */
+
+/* Define if you have the if_indextoname function. */
+#define HAVE_IF_INDEXTONAME 1
+
+/* Define if you have the sigaction function */
+#define HAVE_SIGACTION 1
+
+/* Define if you have the stat64 function */
+/* #undef HAVE_STAT64 */
+
+/* Define if you have the fstat64 function */
+/* #undef HAVE_FSTAT64 */
+
+/* Define if you have the lstat64 function */
+/* #undef HAVE_LSTAT64 */
+
+/* Define if you have the lseek64 function */
+/* #undef HAVE_LSEEK64 */
+
+/* Define if you have the truncate64 function */
+/* #undef HAVE_TRUNCATE64 */
+
+/* Define if you have the ftruncate64 function */
+/* #undef HAVE_FTRUNCATE64 */
+
+/* Define if you have the strtoll function */
+#define HAVE_STRTOLL 1
+
+/* Define if you have the hstrerror function */
+#define HAVE_HSTRERROR 1
+
+/* Define if you have the inet_ntop function */
+#define HAVE_INET_NTOP 1
+
+/* Define if you have the hstrerror prototype */
+#define HAVE_PROTOTYPE_HSTRERROR 1
+
+/* Define if you have the header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYSLOG_H 1
+
+/* Define if you have the header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_PWD_H 1
+
+/* Define if you have the header file. */
+#define HAVE_GRP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_POLL_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UIO_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETDB_H 1
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UN_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_PTY_H */
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IN_SYSTM_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_TCP_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NETINET_IP6_H 1
+
+/* Define if you have the header file. */
+#define HAVE_ARPA_NAMESER_H 1
+
+/* Define if you have the header file. */
+#define HAVE_RESOLV_H 1
+
+/* Define if you have the header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_H 1
+
+/* Define if you have the header file. */
+#define HAVE_NET_IF_DL_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_TYPES_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_ERRQUEUE_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_IF_TUN_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETPACKET_PACKET_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_NETINET_IF_ETHER_H */
+
+/* Define if you have the header file. */
+#define HAVE_SYS_UTSNAME_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define if you have the header file. (AIX) */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the header file. (NetBSD, OpenBSD: openpty()) */
+/* #undef HAVE_UTIL_H */
+
+/* Define if you have the header file. (FreeBSD: openpty()) */
+#define HAVE_LIBUTIL_H 1
+
+/* Define if you have the header file. (stream opts on SunOS)*/
+/* #undef HAVE_SYS_STROPTS_H */
+
+/* Define if you have the header file. */
+#define HAVE_REGEX_H 1
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_FS_H */
+
+/* Define if you have the header file. */
+/* #undef HAVE_LINUX_EXT2_FS_H */
+
+/* Define if you have the header file. */
+#define HAVE_READLINE_READLINE_H 1
+
+/* Define if you have the header file. */
+#define HAVE_READLINE_HISTORY_H 1
+
+/* Define if you have the readline library. */
+#define HAVE_LIBREADLINE 1
+
+/* Define if you have the m library (-lm). */
+/* #undef HAVE_LIBM */
+
+/* Define if you have the floor function */
+/* #undef HAVE_FLOOR */
+
+/* some platforms need _XOPEN_EXTENDED_SOURCE to get syslog headers (AIX4.1) */
+/* #undef _XOPEN_EXTENDED_SOURCE */
+
+/* fdset may have component fds_bits or __fds_bits */
+#define HAVE_FDS_BITS 1
+
+/* Define if you have the sa_family_t */
+#define HAVE_TYPE_SA_FAMILY_T 1
+
+/* define if your struct sigaction has sa_sigaction */
+#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
+
+/* Define if your struct termios has component c_ispeed */
+#define HAVE_TERMIOS_ISPEED 1
+
+/* the offset of c_ispeed in struct termios - usable in an speed_t array.
+ Applies only when HAVE_TERMIOS_ISPEED is set */
+#define ISPEED_OFFSET 9
+
+/* the offset of c_ospeed in struct termios - see ISPEED_OFFSET */
+#ifdef ISPEED_OFFSET
+# define OSPEED_OFFSET (ISPEED_OFFSET+1)
+#else
+/* # undef OSPEED_OFFSET */
+#endif
+
+/* Define if your termios.h likes _SVID3 defined */
+/* #undef _SVID3 */
+
+/* Define if you have struct timespec (e.g. for nanosleep) */
+#define HAVE_STRUCT_TIMESPEC 1
+
+/* Define if you have struct linger */
+#define HAVE_STRUCT_LINGER 1
+
+/* Define if you have struct ip_mreq */
+#define HAVE_STRUCT_IP_MREQ 1
+
+/* Define if you have struct ip_mreqn */
+/* #undef HAVE_STRUCT_IP_MREQN */
+
+/* Define if you have struct ipv6_mreq */
+#define HAVE_STRUCT_IPV6_MREQ 1
+
+/* Define if you have struct ifreq */
+#define HAVE_STRUCT_IFREQ 1
+
+/* Define if you have struct ifreq.ifr_index */
+#define HAVE_STRUCT_IFREQ_IFR_INDEX 1
+
+/* Define if you have struct ifreq.ifr_ifindex; not on HPUX */
+/* #undef HAVE_STRUCT_IFREQ_IFR_IFINDEX */
+
+/* Define if your struct sockaddr has sa_len */
+#define HAVE_STRUCT_SOCKADDR_SALEN 1
+
+/* there are several implementations of sockaddr_in6 */
+#define HAVE_IP6_SOCKADDR 0
+
+/* Define if you have struct iovec */
+#define HAVE_STRUCT_IOVEC 1
+
+/* define if your struct msghdr has msg_control */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROL 1
+
+/* define if your struct msghdr has msg_controllen */
+#define HAVE_STRUCT_MSGHDR_MSGCONTROLLEN 1
+
+/* define if your struct msghdr has msg_flag */
+#define HAVE_STRUCT_MSGHDR_MSGFLAGS 1
+
+/* define if you have struct cmsghdr */
+#define HAVE_STRUCT_CMSGHDR 1
+
+/* define if you have struct in_pktinfo */
+/* #undef HAVE_STRUCT_IN_PKTINFO */
+
+/* define if your struct ip has ip_hl; otherwise assume ip_vhl */
+#define HAVE_STRUCT_IP_IP_HL 1
+
+/* Define if you have the setenv function */
+#define HAVE_SETENV 1
+
+/* Define if you have the unsetenv function. not on HP-UX */
+#define HAVE_UNSETENV 1
+
+/* Define if you have the flock function */
+#define HAVE_FLOCK 1
+
+/* Define if you have the openpty function */
+#define HAVE_OPENPTY 1
+
+/* Define if you have the grantpt function */
+#define HAVE_GRANTPT 1
+
+/* Define if you have the unlockpt function */
+#define HAVE_UNLOCKPT 1
+
+/* Define if you have the ptsname function */
+#define HAVE_PTSNAME 1
+
+/* Define if you have the /dev/ptmx pseudo terminal multiplexer */
+/* #undef HAVE_DEV_PTMX */
+
+/* Define if you have the /dev/ptc pseudo terminal multiplexer */
+/* #undef HAVE_DEV_PTC */
+
+/* Define if you have the long long type */
+#define HAVE_TYPE_LONGLONG 1
+
+/* is socklen_t already typedef'd? */
+#define HAVE_TYPE_SOCKLEN 1
+
+/* Define if you have the struct stat64 type */
+/* #undef HAVE_TYPE_STAT64 */
+
+/* Define if you have the struct off64_t type */
+/* #undef HAVE_TYPE_OFF64 */
+
+/* is sighandler_t already typedef'd? */
+/* #undef HAVE_TYPE_SIGHANDLER */
+
+/* is uint8_t already defined? */
+#define HAVE_TYPE_UINT8 1
+
+/* is uint16_t already defined? */
+#define HAVE_TYPE_UINT16 1
+
+/* is uint32_t already defined? */
+#define HAVE_TYPE_UINT32 1
+
+/* is uint64_t already defined? */
+#define HAVE_TYPE_UINT64 1
+
+/* Define if you have the printf "Z" modifier */
+/* #undef HAVE_FORMAT_Z */
+
+/* Define the shift offset of the CRDLY mask */
+#define CRDLY_SHIFT -1
+
+/* Define the shift offset of the TABDLY mask */
+#define TABDLY_SHIFT -1
+
+/* Define the shift offset of the CSIZE mask */
+#define CSIZE_SHIFT 8
+
+/* Define if you have tcpwrappers (libwrap, tcpd) and it declares hosts_allow_table */
+#define HAVE_HOSTS_ALLOW_TABLE 1
+#if defined(HAVE_HOSTS_ALLOW_TABLE) && HAVE_HOSTS_ALLOW_TABLE
+# define HAVE_HOSTS_DENY_TABLE 1
+#else
+/* # undef HAVE_HOSTS_DENY_TABLE */
+#endif
+
+/* 1..short, 3..int, 5..long; 2,4,6..unsigned */
+#define HAVE_BASIC_SIZE_T 4 /* unsigned int */
+#define HAVE_BASIC_MODE_T 2 /* unsigned short */
+#define HAVE_BASIC_PID_T 3 /* int */
+#define HAVE_BASIC_UID_T 4 /* unsigned int */
+#define HAVE_BASIC_GID_T 4 /* unsigned int */
+#define HAVE_BASIC_TIME_T 3 /* int */
+#define HAVE_BASIC_OFF64_T 0 /* unknown, taking default */
+
+#define HAVE_BASIC_SOCKLEN_T 4 /* unsigned int */
+
+#define HAVE_TYPEOF_ST_DEV 4 /* unsigned int */
+#define HAVE_TYPEOF_ST_INO 4 /* unsigned int */
+#define HAVE_TYPEOF_ST_NLINK 2 /* unsigned short */
+#define HAVE_TYPEOF_ST_SIZE 7 /* long long */
+#define HAVE_TYPEOF_ST_BLKSIZE 4 /* unsigned int */
+#define HAVE_TYPEOF_ST_BLOCKS 7 /* long long */
+
+/* #undef HAVE_TYPEOF_ST64_DEV */
+/* #undef HAVE_TYPEOF_ST64_INO */
+/* #undef HAVE_TYPEOF_ST64_NLINK */
+/* #undef HAVE_TYPEOF_ST64_SIZE */
+/* #undef HAVE_TYPEOF_ST64_BLKSIZE */
+/* #undef HAVE_TYPEOF_ST64_BLOCKS */
+
+#define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC 5 /* long */
+
+#define HAVE_TYPEOF_RLIM_MAX 7 /* long long */
+
+/* Define if you have the /proc filesystem */
+#define HAVE_PROC_DIR 1
+
+/* Define if you have the /proc/$$/fd directories */
+/* #undef HAVE_PROC_DIR_FD */
+
+#define WITH_HELP 1
+#define WITH_STDIO 1
+#define WITH_FDNUM 1
+#define WITH_FILE 1
+#define WITH_CREAT 1
+#define WITH_GOPEN 1
+#define WITH_TERMIOS 1
+#define WITH_PIPE 1
+#define WITH_UNIX 1
+/* #undef WITH_ABSTRACT_UNIXSOCKET */
+#define WITH_IP4 1
+#define WITH_IP6 1
+#define WITH_RAWIP 1
+#define WITH_GENERICSOCKET 1
+/* #undef WITH_INTERFACE */
+#define WITH_TCP 1
+#define WITH_UDP 1
+#define WITH_SCTP 1
+#define WITH_LISTEN 1
+#define WITH_SOCKS4 1
+#define WITH_SOCKS4A 1
+#define WITH_PROXY 1
+#define WITH_EXEC 1
+#define WITH_SYSTEM 1
+#define WITH_READLINE 1
+/* #undef WITH_TUN */
+#define WITH_PTY 1
+#define WITH_EXT2 1
+#define WITH_OPENSSL 1
+#define WITH_STREAMS 1
+/* #undef WITH_FIPS */
+/* #undef OPENSSL_FIPS */
+#define WITH_LIBWRAP 1
+#define HAVE_TCPD_H 1
+#define HAVE_LIBWRAP 1
+
+#define WITH_SYCLS 1
+#define WITH_FILAN 1
+#define WITH_RETRY 1
+
+#define WITH_MSGLEVEL 0
+
+#endif /* !defined(__config_h_included) */
diff --git a/lib/hardware/socat-1.7.3.4/Config/config.Linux-2-6-24.h b/lib/hardware/socat-1.7.3.4/Config/config.Linux-2-6-24.h
new file mode 100644
index 00000000..4936971d
--- /dev/null
+++ b/lib/hardware/socat-1.7.3.4/Config/config.Linux-2-6-24.h
@@ -0,0 +1,522 @@
+/* config.h. Generated from config.h.in by configure. */
+/* source: config.h.in */
+/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
+/* Published under the GNU General Public License V.2, see file COPYING */
+
+#ifndef __config_h_included
+#define __config_h_included 1
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to `int' if doesn't define. */
+/* #undef gid_t */
+
+/* Define if your struct stat has st_blksize. */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks. */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the strftime function. */
+#define HAVE_STRFTIME 1
+
+/* Define if you have that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to `int' if doesn't define. */
+/* #undef mode_t */
+
+/* Define to `long' if doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if doesn't define. */
+/* #undef pid_t */
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define to `unsigned' if doesn't define. */
+/* #undef size_t */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both and . */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to `int' if