From 9682a15400495ae490543e7e5af242ff5c4c9fa0 Mon Sep 17 00:00:00 2001 From: Antonio Juarez Date: Wed, 9 Apr 2014 13:14:35 +0100 Subject: Port mapping with UPnP --- external/miniupnpc/testreplyparse/DeletePortMapping.namevalue | 3 +++ external/miniupnpc/testreplyparse/DeletePortMapping.xml | 6 ++++++ external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue | 2 ++ external/miniupnpc/testreplyparse/GetExternalIPAddress.xml | 2 ++ .../testreplyparse/GetSpecificPortMappingEntryReq.namevalue | 3 +++ .../miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml | 3 +++ .../testreplyparse/GetSpecificPortMappingEntryResp.namevalue | 5 +++++ .../miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml | 2 ++ .../miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue | 1 + external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml | 1 + external/miniupnpc/testreplyparse/readme.txt | 7 +++++++ 11 files changed, 35 insertions(+) create mode 100755 external/miniupnpc/testreplyparse/DeletePortMapping.namevalue create mode 100755 external/miniupnpc/testreplyparse/DeletePortMapping.xml create mode 100755 external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue create mode 100755 external/miniupnpc/testreplyparse/GetExternalIPAddress.xml create mode 100755 external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.namevalue create mode 100755 external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml create mode 100755 external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue create mode 100755 external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml create mode 100755 external/miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue create mode 100755 external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml create mode 100755 external/miniupnpc/testreplyparse/readme.txt (limited to 'external/miniupnpc/testreplyparse') diff --git a/external/miniupnpc/testreplyparse/DeletePortMapping.namevalue b/external/miniupnpc/testreplyparse/DeletePortMapping.namevalue new file mode 100755 index 000000000..48ca0cccb --- /dev/null +++ b/external/miniupnpc/testreplyparse/DeletePortMapping.namevalue @@ -0,0 +1,3 @@ +NewRemoteHost= +NewExternalPort=123 +NewProtocol=TCP diff --git a/external/miniupnpc/testreplyparse/DeletePortMapping.xml b/external/miniupnpc/testreplyparse/DeletePortMapping.xml new file mode 100755 index 000000000..a955c53fc --- /dev/null +++ b/external/miniupnpc/testreplyparse/DeletePortMapping.xml @@ -0,0 +1,6 @@ + +123 +TCP + + + diff --git a/external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue b/external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue new file mode 100755 index 000000000..5aa75f882 --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue @@ -0,0 +1,2 @@ +NewExternalIPAddress=1.2.3.4 + diff --git a/external/miniupnpc/testreplyparse/GetExternalIPAddress.xml b/external/miniupnpc/testreplyparse/GetExternalIPAddress.xml new file mode 100755 index 000000000..db7ec1f9c --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetExternalIPAddress.xml @@ -0,0 +1,2 @@ +1.2.3.4 + diff --git a/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.namevalue b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.namevalue new file mode 100755 index 000000000..26b169c35 --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.namevalue @@ -0,0 +1,3 @@ +NewProtocol=UDP +NewExternalPort=12345 +NewRemoteHost= diff --git a/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml new file mode 100755 index 000000000..bbb540eac --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml @@ -0,0 +1,3 @@ + +12345UDP + diff --git a/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue new file mode 100755 index 000000000..2189789b4 --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue @@ -0,0 +1,5 @@ +NewInternalPort=12345 +NewInternalClient=192.168.10.110 +NewEnabled=1 +NewPortMappingDescription=libminiupnpc +NewLeaseDuration=0 diff --git a/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml new file mode 100755 index 000000000..77e8d9c7c --- /dev/null +++ b/external/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml @@ -0,0 +1,2 @@ +12345192.168.10.1101libminiupnpc0 + diff --git a/external/miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue b/external/miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue new file mode 100755 index 000000000..f78c7e2ae --- /dev/null +++ b/external/miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue @@ -0,0 +1 @@ +NewDefaultConnectionService=uuid:c6c05a33-f704-48df-9910-e099b3471d81:WANConnectionDevice:1,INVALID_SERVICE_ID diff --git a/external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml b/external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml new file mode 100755 index 000000000..ac04c07a9 --- /dev/null +++ b/external/miniupnpc/testreplyparse/SetDefaultConnectionService.xml @@ -0,0 +1 @@ +uuid:c6c05a33-f704-48df-9910-e099b3471d81:WANConnectionDevice:1,INVALID_SERVICE_ID diff --git a/external/miniupnpc/testreplyparse/readme.txt b/external/miniupnpc/testreplyparse/readme.txt new file mode 100755 index 000000000..3eb1f015f --- /dev/null +++ b/external/miniupnpc/testreplyparse/readme.txt @@ -0,0 +1,7 @@ +This directory contains files used for validation of upnpreplyparse.c code. + +Each .xml file to parse should give the results which are in the .namevalue +file. + +A .namevalue file contain name=value lines. + -- cgit v1.2.3