
Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBM2S83L006246 for <dtn-users@maillists.intel-research.net>; Tue, 21 Dec 2010 18:28:08 -0800
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_49ExnuRHRmA5eOS26t9IDw)"
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp023.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LDS009XSQXTH620@asmtp023.mac.com> for dtn-users@maillists.intel-research.net; Tue, 21 Dec 2010 13:13:43 -0800 (PST)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-12-21_07:2010-12-21, 2010-12-21, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1012210119
From: Darren Long <darren.long@mac.com>
Date: Tue, 21 Dec 2010 21:13:41 +0000
In-reply-to: <1292949662.2375.4987.camel@oblong>
To: dtn-users@maillists.intel-research.net
References: <440954C5-3758-4859-8EA0-F0F6A233F775@mac.com> <D9070A11-A830-4569-A63F-4BE6428AF546@mac.com> <4CE42843.2070408@cs.tcd.ie> <C93962AF-82DF-4ADC-B94F-9F8D8C624A8E@mac.com> <1292949662.2375.4987.camel@oblong>
Message-id: <2F422E3C-5EF3-487B-B88C-9484DB2A5625@mac.com>
X-Mailer: Apple Mail (2.1082)
Subject: Re: [dtn-users] Patches for updates to AX.25 Connected Mode CL in DTN2
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 22 Dec 2010 02:28:09 -0000

--Boundary_(ID_49ExnuRHRmA5eOS26t9IDw)
Content-type: text/plain; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT

I reckon that has been broken for 9 months.  Here's a patch to the makefile to disable ax25-test with some explanatory waffle.  There will be another test harness soon - I've had to resort to using raw sockets for the AX.25 discovery mechanism :(

Sorry about the tests glitch.  Merry Xmas.

Darren


--Boundary_(ID_49ExnuRHRmA5eOS26t9IDw)
Content-type: application/octet-stream; name=oasys-disable-ax25-test.patch
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=oasys-disable-ax25-test.patch

# HG changeset patch
# User Darren Long <darren.long@mac.com>
# Date 1292955971 0
# Node ID c3d013233b07acd5f6b8aad168129a93f57bdc39
# Parent  baea9c2385c80321c8842c45899dc0931f068912
Disabled ax25-test in test/Makefile.  It should be explicitly enabled in the makefile after the tester has set the callsigns in the source code appropriately, and then we assume that oasys has been built with AX.25 support.

diff -r baea9c2385c8 -r c3d013233b07 test/Makefile
--- a/test/Makefile	Tue Aug 24 15:03:36 2010 +0100
+++ b/test/Makefile	Tue Dec 21 18:26:11 2010 +0000
@@ -15,7 +15,6 @@
 #
 
 TESTS += \
-	ax25-test				\
 	atomic-test				\
 	base16-test				\
 	berkeley-db-test			\
@@ -58,6 +57,13 @@
 	uri-test				\
 	util-test				\
 	xml-test				\
+	
+#
+# Tests that need to be explicitly enable (add them above yourself)
+#
+## ax25-test - you should edit the source first and set callsigns appropriately!
+DISABLED_TESTS += \
+	ax25-test				\
 
 #
 # Tests that need to be fixed

--Boundary_(ID_49ExnuRHRmA5eOS26t9IDw)--


Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBM2Oauc006082 for <dtn-users@maillists.intel-research.net>; Tue, 21 Dec 2010 18:24:36 -0800
MIME-version: 1.0
Content-type: text/plain; charset=windows-1252
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp023.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LDS009XSQXTH620@asmtp023.mac.com> for dtn-users@maillists.intel-research.net; Tue, 21 Dec 2010 13:13:08 -0800 (PST)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-12-21_07:2010-12-21, 2010-12-21, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1012210119
From: Darren Long <darren.long@mac.com>
In-reply-to: <1292949662.2375.4987.camel@oblong>
Date: Tue, 21 Dec 2010 21:13:00 +0000
Message-id: <03ECB921-E5F1-4896-831A-5BBF1E63D6A5@mac.com>
References: <440954C5-3758-4859-8EA0-F0F6A233F775@mac.com> <D9070A11-A830-4569-A63F-4BE6428AF546@mac.com> <4CE42843.2070408@cs.tcd.ie> <C93962AF-82DF-4ADC-B94F-9F8D8C624A8E@mac.com> <1292949662.2375.4987.camel@oblong>
To: dtn-users@maillists.intel-research.net
X-Mailer: Apple Mail (2.1082)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBM2Oauc006082
Subject: Re: [dtn-users] Patches for updates to AX.25 Connected Mode CL in DTN2
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 22 Dec 2010 02:24:36 -0000

Hmmm. Sorry. I guess I've never built the tests on a machine that doesn't have AX.25 support. My first thought is that it needs something like this:

// If ax25 support found at configure time...
#ifdef OASYS_AX25_ENABLED
...
#endif /* #ifdef OASYS_AX25_ENABLED  */

However it won't build a functional test harness then, so it may be best to not build the oasys ax25-test test harness if there's no support for AX.25 built into oasys. 

So we could move it to an "Explicitly Enableable Tests" section of the makefile and leave it commented out for those who care and have AX.25 to worry about :)  Testers would really have to edit the source of ax25-test.cc anyway as they would need to change the default callsigns before using it with radios.  I must make a note of that on the howto page :)

What do you think?

Darren

On 21 Dec 2010, at 16:41, Alex McMahon wrote:

> Darren,
> 
> I am getting some errors with ax25 oasys tests (ax25-test.cc) -
> appreciate it if you could have a look...... 
> 
> thx
> 
> Alex
> 
> g++ -g -fno-inline   -MMD -MP -MT "ax25-.o ax25-.E"  -DHAVE_CONFIG_H
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.
> -I/home/test/flamebox/build/oasys -I./ext -I/usr/include/tcl8.5  -Wall
> -W -Wcast-align  test/ax25-test.cc -o test/ax25-test
> -L.  /home/test/flamebox/build/oasys/lib/liboasys-1.4.0.a -ldl -lm
> -ltcl8.5 -lxerces-c -lz  -ldb-4.8 -lpthread 
> test/ax25-test.cc:53: error: expected class-name before ‘,’ token
> test/ax25-test.cc: In member function ‘virtual void
> TestAX25Ping::run()’:
> test/ax25-test.cc:74: error: cannot convert ‘std::string’ to ‘int’ for
> argument ‘1’ to ‘int bind(int, const sockaddr*, socklen_t)’
> test/ax25-test.cc:75: error: ‘timeout_connect’ was not declared in this
> scope
> test/ax25-test.cc:78: error: ‘class TestAX25Ping’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:78: error: ‘Can_Only_Be_Called_By_A_Logger’ was not
> declared in this scope
> test/ax25-test.cc:78: error: ‘class TestAX25Ping’ has no member named
> ‘logf’
> test/ax25-test.cc:79: error: invalid conversion from ‘char*’ to ‘int’
> test/ax25-test.cc:79: error: invalid conversion from ‘size_t’ to ‘const
> void*’
> /usr/include/unistd.h:363: error: too few arguments to function ‘ssize_t
> write(int, const void*, size_t)’
> test/ax25-test.cc:79: error: at this point in file
> test/ax25-test.cc:81: error: invalid conversion from ‘char*’ to ‘int’
> test/ax25-test.cc:81: error: invalid conversion from ‘long unsigned int’
> to ‘void*’
> /usr/include/unistd.h:357: error: too few arguments to function ‘ssize_t
> read(int, void*, size_t)’
> test/ax25-test.cc:81: error: at this point in file
> test/ax25-test.cc:83: error: ‘class TestAX25Ping’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:83: error: expected ‘)’ before ‘oasys’
> test/ax25-test.cc:83: error: ‘class TestAX25Ping’ has no member named
> ‘logf’
> test/ax25-test.cc:86: error: ‘class TestAX25Ping’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:86: error: expected ‘)’ before ‘oasys’
> test/ax25-test.cc:86: error: ‘class TestAX25Ping’ has no member named
> ‘logf’
> /usr/include/unistd.h:350: error: too few arguments to function ‘int
> close(int)’
> test/ax25-test.cc:91: error: at this point in file
> test/ax25-test.cc: At global scope:
> test/ax25-test.cc:106: error: expected class-name before ‘,’ token
> test/ax25-test.cc: In constructor ‘TestAX25Pong::TestAX25Pong(int,
> std::string)’:
> test/ax25-test.cc:109: error: class ‘TestAX25Pong’ does not have any
> field named ‘AX25ConnectedModeClient’
> test/ax25-test.cc: In destructor ‘virtual
> TestAX25Pong::~TestAX25Pong()’:
> test/ax25-test.cc:118: error: ‘class TestAX25Pong’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:118: error: ‘Can_Only_Be_Called_By_A_Logger’ was not
> declared in this scope
> test/ax25-test.cc:118: error: ‘class TestAX25Pong’ has no member named
> ‘logf’
> test/ax25-test.cc: In member function ‘virtual void
> TestAX25Pong::run()’:
> test/ax25-test.cc:125: error: invalid conversion from ‘char*’ to ‘int’
> test/ax25-test.cc:125: error: invalid conversion from ‘long unsigned
> int’ to ‘void*’
> /usr/include/unistd.h:357: error: too few arguments to function ‘ssize_t
> read(int, void*, size_t)’
> test/ax25-test.cc:125: error: at this point in file
> test/ax25-test.cc:127: error: ‘class TestAX25Pong’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:127: error: ‘Can_Only_Be_Called_By_A_Logger’ was not
> declared in this scope
> test/ax25-test.cc:127: error: ‘class TestAX25Pong’ has no member named
> ‘logf’
> test/ax25-test.cc:130: error: ‘class TestAX25Pong’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:130: error: ‘Can_Only_Be_Called_By_A_Logger’ was not
> declared in this scope
> test/ax25-test.cc:130: error: ‘class TestAX25Pong’ has no member named
> ‘logf’
> /usr/include/unistd.h:350: error: too few arguments to function ‘int
> close(int)’
> test/ax25-test.cc:134: error: at this point in file
> test/ax25-test.cc:137: error: invalid conversion from ‘char*’ to ‘int’
> test/ax25-test.cc:137: error: invalid conversion from ‘size_t’ to ‘const
> void*’
> /usr/include/unistd.h:363: error: too few arguments to function ‘ssize_t
> write(int, const void*, size_t)’
> test/ax25-test.cc:137: error: at this point in file
> test/ax25-test.cc: At global scope:
> test/ax25-test.cc:145: error: expected class-name before ‘{’ token
> test/ax25-test.cc: In constructor ‘TestAX25Server::TestAX25Server()’:
> test/ax25-test.cc:148: error: class ‘TestAX25Server’ does not have any
> field named ‘AX25ConnectedModeServerThread’
> test/ax25-test.cc:148: error: ‘CREATE_JOINABLE’ was not declared in this
> scope
> test/ax25-test.cc:152: error: ‘class TestAX25Server’ has no member named
> ‘log_enabled’
> test/ax25-test.cc:152: error: ‘Can_Only_Be_Called_By_A_Logger’ was not
> declared in this scope
> test/ax25-test.cc:152: error: ‘class TestAX25Server’ has no member named
> ‘logf’
> test/ax25-test.cc:153: error: cannot convert ‘std::string’ to ‘int’ for
> argument ‘1’ to ‘int bind(int, const sockaddr*, socklen_t)’
> /usr/include/sys/socket.h:204: error: too few arguments to function ‘int
> listen(int, int)’
> test/ax25-test.cc:154: error: at this point in file
> test/ax25-test.cc:155: error: ‘start’ was not declared in this scope
> test/ax25-test.cc: In function ‘int main(int, const char**)’:
> test/ax25-test.cc:176: error: ‘class TestAX25Server’ has no member named
> ‘start’
> test/ax25-test.cc:195: error: ‘class TestAX25Server’ has no member named
> ‘join’
> make: *** [test/ax25-test] Error 1
> 
> 
> On Wed, 2010-11-17 at 19:14 +0000, Darren Long wrote:
>> Thanks.  I just wasn't sure if they had slipped under the radar.
>> 
>> Darren
>> 
>> On 17 Nov 2010, at 19:08, Stephen Farrell wrote:
>> 
>>> 
>>> Don't think there's any objection, we've just not gotten
>>> started yet;-)
>>> 
>>> S.
>>> 
>>> On 17/11/10 18:58, Darren Long wrote:
>>>> Hi,
>>>> 
>>>> I submitted these patches a while back in the hope that someone would push them into the DTN2 mercurial repository at sourceforge.
>>>> 
>>>> I'm still hoping that someone will.
>>>> 
>>>> Are there any volunteers or objections?
>>>> 
>>>> Cheers,
>>>> 
>>>> Darren
>>>> 
>>>> On 9 Oct 2010, at 15:11, Darren Long wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> Here's 5 patches updating the AX.25 Connected Mode CL in DTN2.  They don't touch anything but AX.25 specific files.
>>>>> 
>>>>> A new link option, ack_window is added for ax25cm links, and implemented in the SeqpacketConvergenceLayer class.  This can be used to reduce the number of convergence layer  protocol ack segments sent.    This means that ack segments will be sent for every ack_window data segments, acking the byte range ack_window * segment_length.  Ack segments are always sent when a data_segment is flagged as the end of a bundle.  Setting ack_window to anything higher than 1 will increase the granularity at which reactive fragmentation is performed. The parameter defaults to 8 if unspecified.  Use of ack_window seems to be backwards compatible with older code.
>>>>> 
>>>>> A new file, doc/ax25.txt is added, providing a reference to the relevant wiki page.
>>>>> 
>>>>> Some general tidying of associated files is performed.
>>>>> 
>>>>> This has been running well for a number of weeks over a UHF link, tested on Ubuntu 10.04 (i686) and Debian Squeeze (i686).
>>>>> 
>>>>> Cheers,
>>>>> 
>>>>> Darren
>>>>> 
>>>>> 
>>>>> 
>>>>> <DTN2.3494.export>
>>>>> <DTN2.3495.export>
>>>>> <DTN2.3496.export>
>>>>> <DTN2.3497.export>
>>>>> <DTN2.3498.export>
>>>> 
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>> 
>> 
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
> 
> 




Received: from mail-ew0-f49.google.com (mail-ew0-f49.google.com [209.85.215.49]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBLGfO2h010881 for <dtn-users@maillists.intel-research.net>; Tue, 21 Dec 2010 08:41:24 -0800
Received: by ewy20 with SMTP id 20so2079551ewy.36 for <dtn-users@maillists.intel-research.net>; Tue, 21 Dec 2010 08:41:24 -0800 (PST)
Received: by 10.213.15.78 with SMTP id j14mr4897793eba.60.1292949684704; Tue, 21 Dec 2010 08:41:24 -0800 (PST)
Received: from [192.168.1.32] (86-45-105-50-dynamic.b-ras2.srl.dublin.eircom.net [86.45.105.50]) by mx.google.com with ESMTPS id x54sm3912068eeh.11.2010.12.21.08.41.23 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 08:41:24 -0800 (PST)
Sender: Alex McMahon <alexmcm@gmail.com>
From: Alex McMahon <alex.mcmahon@cs.tcd.ie>
To: Darren Long <darren.long@mac.com>
In-Reply-To: <C93962AF-82DF-4ADC-B94F-9F8D8C624A8E@mac.com>
References: <440954C5-3758-4859-8EA0-F0F6A233F775@mac.com> <D9070A11-A830-4569-A63F-4BE6428AF546@mac.com> <4CE42843.2070408@cs.tcd.ie> <C93962AF-82DF-4ADC-B94F-9F8D8C624A8E@mac.com>
Content-Type: text/plain; charset="UTF-8"
Organization: Trinity College Dublin
Date: Tue, 21 Dec 2010 16:41:02 +0000
Message-ID: <1292949662.2375.4987.camel@oblong>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3
Content-Transfer-Encoding: 8bit
Cc: dtn-users <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] Patches for updates to AX.25 Connected Mode CL in DTN2
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: alex.mcmahon@cs.tcd.ie
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Tue, 21 Dec 2010 16:41:25 -0000

Darren,

I am getting some errors with ax25 oasys tests (ax25-test.cc) -
appreciate it if you could have a look...... 

thx

Alex

g++ -g -fno-inline   -MMD -MP -MT "ax25-.o ax25-.E"  -DHAVE_CONFIG_H
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.
-I/home/test/flamebox/build/oasys -I./ext -I/usr/include/tcl8.5  -Wall
-W -Wcast-align  test/ax25-test.cc -o test/ax25-test
-L.  /home/test/flamebox/build/oasys/lib/liboasys-1.4.0.a -ldl -lm
-ltcl8.5 -lxerces-c -lz  -ldb-4.8 -lpthread 
test/ax25-test.cc:53: error: expected class-name before â€˜,â€™ token
test/ax25-test.cc: In member function â€˜virtual void
TestAX25Ping::run()â€™:
test/ax25-test.cc:74: error: cannot convert â€˜std::stringâ€™ to â€˜intâ€™ for
argument â€˜1â€™ to â€˜int bind(int, const sockaddr*, socklen_t)â€™
test/ax25-test.cc:75: error: â€˜timeout_connectâ€™ was not declared in this
scope
test/ax25-test.cc:78: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:78: error: â€˜Can_Only_Be_Called_By_A_Loggerâ€™ was not
declared in this scope
test/ax25-test.cc:78: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜logfâ€™
test/ax25-test.cc:79: error: invalid conversion from â€˜char*â€™ to â€˜intâ€™
test/ax25-test.cc:79: error: invalid conversion from â€˜size_tâ€™ to â€˜const
void*â€™
/usr/include/unistd.h:363: error: too few arguments to function â€˜ssize_t
write(int, const void*, size_t)â€™
test/ax25-test.cc:79: error: at this point in file
test/ax25-test.cc:81: error: invalid conversion from â€˜char*â€™ to â€˜intâ€™
test/ax25-test.cc:81: error: invalid conversion from â€˜long unsigned intâ€™
to â€˜void*â€™
/usr/include/unistd.h:357: error: too few arguments to function â€˜ssize_t
read(int, void*, size_t)â€™
test/ax25-test.cc:81: error: at this point in file
test/ax25-test.cc:83: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:83: error: expected â€˜)â€™ before â€˜oasysâ€™
test/ax25-test.cc:83: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜logfâ€™
test/ax25-test.cc:86: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:86: error: expected â€˜)â€™ before â€˜oasysâ€™
test/ax25-test.cc:86: error: â€˜class TestAX25Pingâ€™ has no member named
â€˜logfâ€™
/usr/include/unistd.h:350: error: too few arguments to function â€˜int
close(int)â€™
test/ax25-test.cc:91: error: at this point in file
test/ax25-test.cc: At global scope:
test/ax25-test.cc:106: error: expected class-name before â€˜,â€™ token
test/ax25-test.cc: In constructor â€˜TestAX25Pong::TestAX25Pong(int,
std::string)â€™:
test/ax25-test.cc:109: error: class â€˜TestAX25Pongâ€™ does not have any
field named â€˜AX25ConnectedModeClientâ€™
test/ax25-test.cc: In destructor â€˜virtual
TestAX25Pong::~TestAX25Pong()â€™:
test/ax25-test.cc:118: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:118: error: â€˜Can_Only_Be_Called_By_A_Loggerâ€™ was not
declared in this scope
test/ax25-test.cc:118: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜logfâ€™
test/ax25-test.cc: In member function â€˜virtual void
TestAX25Pong::run()â€™:
test/ax25-test.cc:125: error: invalid conversion from â€˜char*â€™ to â€˜intâ€™
test/ax25-test.cc:125: error: invalid conversion from â€˜long unsigned
intâ€™ to â€˜void*â€™
/usr/include/unistd.h:357: error: too few arguments to function â€˜ssize_t
read(int, void*, size_t)â€™
test/ax25-test.cc:125: error: at this point in file
test/ax25-test.cc:127: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:127: error: â€˜Can_Only_Be_Called_By_A_Loggerâ€™ was not
declared in this scope
test/ax25-test.cc:127: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜logfâ€™
test/ax25-test.cc:130: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:130: error: â€˜Can_Only_Be_Called_By_A_Loggerâ€™ was not
declared in this scope
test/ax25-test.cc:130: error: â€˜class TestAX25Pongâ€™ has no member named
â€˜logfâ€™
/usr/include/unistd.h:350: error: too few arguments to function â€˜int
close(int)â€™
test/ax25-test.cc:134: error: at this point in file
test/ax25-test.cc:137: error: invalid conversion from â€˜char*â€™ to â€˜intâ€™
test/ax25-test.cc:137: error: invalid conversion from â€˜size_tâ€™ to â€˜const
void*â€™
/usr/include/unistd.h:363: error: too few arguments to function â€˜ssize_t
write(int, const void*, size_t)â€™
test/ax25-test.cc:137: error: at this point in file
test/ax25-test.cc: At global scope:
test/ax25-test.cc:145: error: expected class-name before â€˜{â€™ token
test/ax25-test.cc: In constructor â€˜TestAX25Server::TestAX25Server()â€™:
test/ax25-test.cc:148: error: class â€˜TestAX25Serverâ€™ does not have any
field named â€˜AX25ConnectedModeServerThreadâ€™
test/ax25-test.cc:148: error: â€˜CREATE_JOINABLEâ€™ was not declared in this
scope
test/ax25-test.cc:152: error: â€˜class TestAX25Serverâ€™ has no member named
â€˜log_enabledâ€™
test/ax25-test.cc:152: error: â€˜Can_Only_Be_Called_By_A_Loggerâ€™ was not
declared in this scope
test/ax25-test.cc:152: error: â€˜class TestAX25Serverâ€™ has no member named
â€˜logfâ€™
test/ax25-test.cc:153: error: cannot convert â€˜std::stringâ€™ to â€˜intâ€™ for
argument â€˜1â€™ to â€˜int bind(int, const sockaddr*, socklen_t)â€™
/usr/include/sys/socket.h:204: error: too few arguments to function â€˜int
listen(int, int)â€™
test/ax25-test.cc:154: error: at this point in file
test/ax25-test.cc:155: error: â€˜startâ€™ was not declared in this scope
test/ax25-test.cc: In function â€˜int main(int, const char**)â€™:
test/ax25-test.cc:176: error: â€˜class TestAX25Serverâ€™ has no member named
â€˜startâ€™
test/ax25-test.cc:195: error: â€˜class TestAX25Serverâ€™ has no member named
â€˜joinâ€™
make: *** [test/ax25-test] Error 1


On Wed, 2010-11-17 at 19:14 +0000, Darren Long wrote:
> Thanks.  I just wasn't sure if they had slipped under the radar.
> 
> Darren
> 
> On 17 Nov 2010, at 19:08, Stephen Farrell wrote:
> 
> > 
> > Don't think there's any objection, we've just not gotten
> > started yet;-)
> > 
> > S.
> > 
> > On 17/11/10 18:58, Darren Long wrote:
> >> Hi,
> >> 
> >> I submitted these patches a while back in the hope that someone would push them into the DTN2 mercurial repository at sourceforge.
> >> 
> >> I'm still hoping that someone will.
> >> 
> >> Are there any volunteers or objections?
> >> 
> >> Cheers,
> >> 
> >> Darren
> >> 
> >> On 9 Oct 2010, at 15:11, Darren Long wrote:
> >> 
> >>> Hi,
> >>> 
> >>> Here's 5 patches updating the AX.25 Connected Mode CL in DTN2.  They don't touch anything but AX.25 specific files.
> >>> 
> >>> A new link option, ack_window is added for ax25cm links, and implemented in the SeqpacketConvergenceLayer class.  This can be used to reduce the number of convergence layer  protocol ack segments sent.    This means that ack segments will be sent for every ack_window data segments, acking the byte range ack_window * segment_length.  Ack segments are always sent when a data_segment is flagged as the end of a bundle.  Setting ack_window to anything higher than 1 will increase the granularity at which reactive fragmentation is performed. The parameter defaults to 8 if unspecified.  Use of ack_window seems to be backwards compatible with older code.
> >>> 
> >>> A new file, doc/ax25.txt is added, providing a reference to the relevant wiki page.
> >>> 
> >>> Some general tidying of associated files is performed.
> >>> 
> >>> This has been running well for a number of weeks over a UHF link, tested on Ubuntu 10.04 (i686) and Debian Squeeze (i686).
> >>> 
> >>> Cheers,
> >>> 
> >>> Darren
> >>> 
> >>> 
> >>> 
> >>> <DTN2.3494.export>
> >>> <DTN2.3495.export>
> >>> <DTN2.3496.export>
> >>> <DTN2.3497.export>
> >>> <DTN2.3498.export>
> >> 
> >> _______________________________________________
> >> dtn-users mailing list
> >> dtn-users@maillists.intel-research.net
> >> http://maillists.intel-research.net/mailman/listinfo/dtn-users
> >> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users




Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBKF1nfX002982 for <dtn-users@maillists.intel-research.net>; Mon, 20 Dec 2010 07:01:50 -0800
Received: by eyh6 with SMTP id 6so1359253eyh.40 for <dtn-users@maillists.intel-research.net>; Mon, 20 Dec 2010 07:01:49 -0800 (PST)
Received: by 10.213.104.140 with SMTP id p12mr2877222ebo.76.1292857308080; Mon, 20 Dec 2010 07:01:48 -0800 (PST)
Received: from [192.168.1.32] (86-45-105-50-dynamic.b-ras2.srl.dublin.eircom.net [86.45.105.50]) by mx.google.com with ESMTPS id t5sm2928225eeh.2.2010.12.20.07.01.45 (version=SSLv3 cipher=RC4-MD5); Mon, 20 Dec 2010 07:01:47 -0800 (PST)
Sender: Alex McMahon <alexmcm@gmail.com>
From: Alex McMahon <alex.mcmahon@cs.tcd.ie>
To: Piero Cornice <dtn@pieroland.net>
In-Reply-To: <20101217125944.16254uj2rgazfh2c@pieroland.net>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL> <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG> <20101217125944.16254uj2rgazfh2c@pieroland.net>
Content-Type: multipart/mixed; boundary="=-Fx6Es3Jlc7bB7pXUP4XT"
Organization: Trinity College Dublin
Date: Mon, 20 Dec 2010 15:01:13 +0000
Message-ID: <1292857273.2375.3315.camel@oblong>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] DTN2 compilation error on Fedora 13+
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: alex.mcmahon@cs.tcd.ie
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 20 Dec 2010 15:01:51 -0000

--=-Fx6Es3Jlc7bB7pXUP4XT
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hi Piero,

I also hit this issue on 64bit Ubuntu 10.10 (maverick) and replaced the
#  include <config.h> in dtnperf/dtnperf-server.c 

with 

#  include <dtn-config.h>


exported patch attached

Alex
On Fri, 2010-12-17 at 12:59 +0000, Piero Cornice wrote:
> Hi everyone
> 
> I'm about to update DTNPerf2, so I'm trying to compile the current  
> DTN2 code from Mercurial, but it fails with the error:
> 
> gcc -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "dtnperf/dtnperf-server.o  
> dtnperf/dtnperf-server.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE  
> -D_FILE_OFFSET_BITS=64 -I.. -I..  
> -I/home/piero/temp/DTN/DTN2/oasys/include  
> -I/home/piero/temp/DTN/DTN2/oasys/include/oasys/ext -I../servlib    
> -Wall -W -Wcast-align  -I../applib -c dtnperf/dtnperf-server.c -o  
> dtnperf/dtnperf-server.o
> dtnperf/dtnperf-server.c:36:22: fatal error: config.h: No such file or  
> directory
> compilation terminated.
> make[1]: *** [dtnperf/dtnperf-server.o] Error 1
> make[1]: Leaving directory `/home/piero/temp/DTN/DTN2/apps'
> make: *** [apps] Error 2
> 
> I have verified that config.h exists in the proper directory, and  
> tried to tweak the Makefile with little success. I also replicated  
> this issue on three Fedora 13/14 machines.
> 
> Any suggestion?
> 
> Regards,
> Piero
> 
> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users


--=-Fx6Es3Jlc7bB7pXUP4XT
Content-Disposition: attachment; filename="patch_3497"
Content-Type: text/plain; name="patch_3497"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

# HG changeset patch
# User Alex McMahon <alex.mcmahon@cs.tcd.ie>
# Date 1292855694 0
# Node ID 382b857f17a8e96b4c73201ac535e7cc5079b110
# Parent  26df37215290882838d1295127eafe5891090f36
make of dtnperf gives fatal error: config.h: No such file or directory on ubuntu 10.10 and Fedora 13+

diff -r 26df37215290 -r 382b857f17a8 aclocal.m4
--- a/aclocal.m4	Mon Sep 06 16:53:28 2010 -0700
+++ b/aclocal.m4	Mon Dec 20 14:34:54 2010 +0000
@@ -2082,10 +2082,6 @@
 	    ln -s ../../$ac_oasysdir $OASYS_INCDIR
 	    ln -s ../$ac_oasysdir/lib $OASYS_LIBDIR
 	    ln -s ../$ac_oasysdir $OASYS_ETCDIR
-    else
-	    OASYS_INCDIR="$ac_oasysdir/include"
-	    OASYS_LIBDIR="$ac_oasysdir/lib"
-	    OASYS_ETCDIR="$ac_oasysdir/share/oasys"
     fi
 
     #
diff -r 26df37215290 -r 382b857f17a8 apps/dtnperf/dtnperf-server.c
--- a/apps/dtnperf/dtnperf-server.c	Mon Sep 06 16:53:28 2010 -0700
+++ b/apps/dtnperf/dtnperf-server.c	Mon Dec 20 14:34:54 2010 +0000
@@ -1,843 +1,844 @@
-/*
-*    Copyright 2005-2006 Intel Corporation
-* 
-*    Licensed under the Apache License, Version 2.0 (the "License");
-*    you may not use this file except in compliance with the License.
-*    You may obtain a copy of the License at
-* 
-*        http://www.apache.org/licenses/LICENSE-2.0
-* 
-*    Unless required by applicable law or agreed to in writing, software
-*    distributed under the License is distributed on an "AS IS" BASIS,
-*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-*    See the License for the specific language governing permissions and
-*    limitations under the License.
-*/
-
-
-
-/* ----------------------------------------
- *         DTNperf 2.5.1 - SERVER
- *
- *             developed by
- * 
- * Piero Cornice - piero.cornice(at)gmail.com
- * Marco Livini - marco.livini(at)gmail.com
- *
- * DEIS - Dipartimento di Elettronica, Informatica e Sistemistica
- * Universita' di Bologna
- * Italy
- * ----------------------------------------
- */
-
-
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-#include <stdio.h>
-#include <unistd.h>
-#include <errno.h>
-#include <strings.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <getopt.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <dtn_api.h>
-
-
-
-#define TEMPSIZE 1024
-#define BUFSIZE 16
-#define BUNDLE_DIR_DEFAULT "/var/dtn/dtnperf"
-#define OUTFILE "dtnbuffer.rcv"
-
-
-
-/* ------------------------------
- *  Global variables and options
- * ------------------------------ */
-
-// values between [square brackets] are default
-const char *progname ;
-int use_file = 1;        // if set to 0, memorize received bundles into memory (max 50000 bytes)
-// if set to 1, memorize received bundles into a file (-f) [0]
-int verbose = 0;        // if set to 1, show debug_level 0 messages [0]
-int aggregate = 0;        // if > 0, print after aggregate arrivals
-int debug = 0;        // if set to 1, show debug messages [1]
-int debug_level = 0;
-char * endpoint = "/dtnperf:/dest";     // endpoint (-e) ["/dtnperf:/dest"]
-char * bundle_dir = BUNDLE_DIR_DEFAULT;   // destination directory (-d)
-
-/* ------------------------
- *  Function Prototypes
- * ------------------------ */
-void print_usage(char*);
-void parse_options(int, char**);
-dtn_endpoint_id_t* parse_eid(dtn_handle_t, dtn_endpoint_id_t*, char*);
-int ContainsChar(char* string, char c);
-char* GetFileName(char* string, int position);
-long GetFileLen(char* string, int position);
-
-
-/* -------------------------------------------------
- * main
- * ------------------------------------------------- */
-int main(int argc, char** argv)
-{
-
-	/* -----------------------
-	 *  variables declaration
-	 * ----------------------- */
-	int k;
-	int ret;
-	dtn_handle_t handle;
-	dtn_endpoint_id_t local_eid;
-	dtn_reg_info_t reginfo;
-	dtn_reg_id_t regid;
-	dtn_bundle_spec_t spec;
-	dtn_bundle_payload_t payload;
-	char *buffer;                   // buffer used for shell commands
-	char s_buffer[BUFSIZE];
-	time_t current;
-	dtn_bundle_payload_location_t pl_type = DTN_PAYLOAD_FILE; // payload saved into memory or into file
-	int source_eid_len, dest_eid_len;
-	char *source_eid, *dest_eid;
-	char * filepath;
-	char * filename = OUTFILE;      // source filename [OUTFILE]
-	int bufsize;
-	int count = 0;
-	int total = 0;
-	int receiving_file = -1;
-	int destination_file = -1;
-	char temp[TEMPSIZE];
-	char* receiving_fileName = NULL;
-	long separator_position = 0;
-	long receiving_fileLen = 0;
-	long total_written = 0;
-	long reads = 0;
-	long written = 0;
-	long total_saved = 0;
-	
-	
-	/* -------
-	 *  begin
-	 * ------- */
-
-	// parse command-line options
-	parse_options(argc, argv);
-	if ((debug) && (debug_level > 0))
-		printf("[debug] parsed command-line options\n");
-
-	// show requested options (debug)
-	if (debug)
-	{
-		printf("\nOptions:\n");
-		printf("\tendpoint       : %s\n", endpoint);
-		printf("\tsave bundles to: %s\n", use_file ? "file" : "memory");
-		printf("\tdestination dir: %s\n", bundle_dir);
-		printf("\n");
-	}
-
-	// initialize buffer with shell command ("mkdir -p " + bundle_dir)
-	if ((debug) && (debug_level > 0))
-		printf("[debug] initializing buffer with shell command...");
-	buffer = malloc(sizeof(char) * (strlen(bundle_dir) + 10));
-	sprintf(buffer, "mkdir -p %s", bundle_dir);
-	if ((debug) && (debug_level > 0))
-		printf(" done. Shell command = %s\n", buffer);
-
-	// execute shell command
-	if ((debug) && (debug_level > 0))
-		printf("[debug] executing shell command \"%s\"...", buffer);
-	if (system(buffer) == -1)
-	{
-		fprintf(stderr, "Error opening bundle directory: %s\n", bundle_dir);
-		exit(1);
-	}
-	free(buffer);
-	if ((debug) && (debug_level > 0))
-		printf(" done\n");
-
-	// open the ipc handle
-	if ((debug) && (debug_level > 0))
-		printf("[debug] opening connection to dtn router...");
-	int err = dtn_open(&handle);
-	if (err != DTN_SUCCESS)
-	{
-		fprintf(stderr, "fatal error opening dtn handle: %s\n",
-		        dtn_strerror(err));
-		exit(1);
-	}
-	if ((debug) && (debug_level > 0))
-		printf(" done\n");
-
-	// build a local tuple based on the configuration of local dtn router
-	if ((debug) && (debug_level > 0))
-		printf("[debug] building local eid...");
-	dtn_build_local_eid(handle, &local_eid, endpoint);
-	if ((debug) && (debug_level > 0))
-		printf(" done\n");
-	if (debug)
-		printf("local_eid = %s\n", local_eid.uri);
-
-	// create a new registration based on this eid
-	if ((debug) && (debug_level > 0))
-		printf("[debug] registering to local daemon...");
-	memset(&reginfo, 0, sizeof(reginfo));
-	dtn_copy_eid(&reginfo.endpoint, &local_eid);
-	reginfo.flags = DTN_REG_DEFER;
-	reginfo.regid = DTN_REGID_NONE;
-	reginfo.expiration = 0;
-	if ((ret = dtn_register(handle, &reginfo, &regid)) != 0)
-	{
-		fprintf(stderr, "error creating registration: %d (%s)\n",
-		        ret, dtn_strerror(dtn_errno(handle)));
-		exit(1);
-	}
-	if ((debug) && (debug_level > 0))
-		printf(" done\n");
-	if (debug)
-		printf("regid 0x%x\n", regid);
-
-	// set bundle destination type
-	if ((debug) && (debug_level > 0))
-		printf("[debug] choosing bundle destination type...");
-	if (use_file)
-		pl_type = DTN_PAYLOAD_FILE;
-	else
-		pl_type = DTN_PAYLOAD_MEM;
-	if ((debug) && (debug_level > 0))
-		printf(" done. Bundles will be saved into %s\n", use_file ? "file" : "memory");
-
-	if ((debug) && (debug_level > 0))
-		printf("[debug] entering infinite loop...\n");
-
-	// infinite loop, waiting for bundles
-	while (1)
-	{
-
-		// wait until receive a bundle
-		memset(&spec, 0, sizeof(spec));
-		memset(&payload, 0, sizeof(payload));
-
-		if ((debug) && (debug_level > 0))
-			printf("[debug] waiting for bundles...");
-		if ((ret = dtn_recv(handle, &spec, pl_type, &payload, -1)) < 0)
-		{
-			fprintf(stderr, "error getting recv reply: %d (%s)\n",
-			        ret, dtn_strerror(dtn_errno(handle)));
-			exit(1);
-		}
-		if ((debug) && (debug_level > 0))
-			printf(" bundle received\n");
-		count++;
-
-		size_t len;
-		if (pl_type == DTN_PAYLOAD_MEM)
-		{
-			len = payload.buf.buf_len;
-		}
-		else
-		{
-			struct stat st;
-			memset(&st, 0, sizeof(st));
-			stat(payload.filename.filename_val, &st);
-			len = st.st_size;
-		}
-
-		total += len;
-		// mark current time
-		if ((debug) && (debug_level > 0))
-			printf("[debug] marking time...");
-		current = time(NULL);
-		if ((debug) && (debug_level > 0))
-			printf(" done\n");
-		if (aggregate == 0)
-		{
-			printf("%s : %zu bytes from %s\n",
-			       ctime(&current),
-			       len,
-			       spec.source.uri);
-		}
-		else if (count % aggregate == 0)
-		{
-			printf("%s : %d bundles, total length %d bytes\n",
-			       ctime(&current), count, total);
-		}
-
-		/* ---------------------------------------------------
-		 *  parse admin string to select file target location
-		 * --------------------------------------------------- */
-
-		// copy SOURCE eid
-		if ((debug) && (debug_level > 0))
-			printf("[debug]\tcopying source eid...");
-		source_eid_len = sizeof(spec.source.uri);
-		source_eid = malloc(sizeof(char) * source_eid_len + 1);
-		memcpy(source_eid, spec.source.uri, source_eid_len);
-		source_eid[source_eid_len] = '\0';
-		if ((debug) && (debug_level > 0))
-		{
-			printf(" done:\n");
-			printf("\tsource_eid = %s\n", source_eid);
-			printf("\n");
-		}
-
-		// copy DEST eid
-		if ((debug) && (debug_level > 0))
-			printf("[debug]\tcopying dest eid...");
-		dest_eid_len = sizeof(spec.dest.uri);
-		dest_eid = malloc(sizeof(char) * dest_eid_len + 1);
-		memcpy(dest_eid, spec.dest.uri, dest_eid_len);
-		dest_eid[dest_eid_len] = '\0';
-		if ((debug) && (debug_level > 0))
-		{
-			printf(" done:\n");
-			printf("\tdest_eid = %s\n", dest_eid);
-			printf("\n");
-		}
-
-		// recursively create full directory path
-		filepath = malloc(sizeof(char) * dest_eid_len + 10);
-		sprintf(filepath, "mkdir -p %s", bundle_dir);
-		if ((debug) && (debug_level > 0))
-			printf("[debug] filepath = %s\n", filepath);
-		system(filepath);
-
-		// create file name
-		sprintf(filepath, "%s/%s", bundle_dir, filename);
-		if ((debug) && (debug_level > 0))
-			printf("[debug] filepath = %s\n", filepath);
-
-		// bundle name is the name of the bundle payload file
-		buffer = payload.buf.buf_val;
-		bufsize = payload.buf.buf_len;
-
-		if ((debug) && (debug_level > 0))
-		{
-			printf ("======================================\n");
-			printf (" Bundle received at %s\n", ctime(&current));
-			printf ("  source: %s\n", spec.source.uri);
-			if (use_file)
-			{
-				printf ("  saved into    : %s\n", filepath);
-			}
-
-			printf ("--------------------------------------\n");
-		}
-
-		//receiving file
-		if (TEMPSIZE >= len)
-		{
-			if (pl_type == DTN_PAYLOAD_FILE)
-			{ // if bundle was saved into file
-				if ((receiving_file = open(payload.filename.filename_val, O_RDONLY)) < 0)
-				{
-					fprintf(stderr, "fatal error opening file %s\n", payload.filename.filename_val);
-					exit(1);
-				}
-			}
-
-			if (((pl_type == DTN_PAYLOAD_FILE) && (read(receiving_file, temp, len) > 0)) || (payload.buf.buf_len > 0))
-			{
-				printf("&&(TEMPSIZE>=len)\n");
-				fflush(stdout);
-				if (payload.buf.buf_len > 0)
-					strcpy(temp, payload.buf.buf_val);
-
-				if ((separator_position = ContainsChar(temp, '/')) > 0)
-				{
-					if ((debug) && (debug_level > 0))
-						printf("[debug]  Getting the name of file to receive...");
-					receiving_fileName = GetFileName(temp, separator_position);
-					if ((debug) && (debug_level > 0))
-						printf("done\n");
-					if ((debug) && (debug_level > 0))
-						printf("[debug]  Getting the lenght of file to receive...");
-					receiving_fileLen = GetFileLen(temp, separator_position);
-					if ((debug) && (debug_level > 0))
-						printf("done\n");
-				}
-			}
-
-			if (pl_type == DTN_PAYLOAD_FILE)
-			{
-				close(receiving_file);
-				receiving_file = -1;
-			}
-		}
-
-		if (pl_type == DTN_PAYLOAD_FILE)
-		{ // if bundle was saved into file
-
-			if ((debug) && (debug_level > 0))
-				printf("[debug] renaming file %s -> %s...",
-				       payload.filename.filename_val, filepath);
-
-			if (rename(payload.filename.filename_val, filepath) != 0)
-			{
-				printf("[ERROR] Couldn't rename %s -> %s: %s\n",
-				       payload.filename.filename_val, filepath, strerror(errno));
-			}
-
-		}
-		else
-		{ // if bundle was saved into memory
-
-			if ((debug) && (debug_level > 0))
-			{
-				for (k = 0; k < (int)payload.buf.buf_len; k++)
-				{
-					if (buffer[k] >= ' ' && buffer[k] <= '~')
-						s_buffer[k % BUFSIZE] = buffer[k];
-					else
-						s_buffer[k % BUFSIZE] = '.';
-
-					if (k % BUFSIZE == 0) // new line every 16 bytes
-					{
-						printf("%07x ", k);
-					}
-					else if (k % 2 == 0)
-					{
-						printf(" "); // space every 2 bytes
-					}
-
-					printf("%02x", buffer[k] & 0xff);
-
-					// print character summary (a la emacs hexl-mode)
-					if (k % BUFSIZE == BUFSIZE - 1)
-					{
-						printf(" |  %.*s\n", BUFSIZE, s_buffer);
-					}
-				} // for
-
-				// print spaces to fill out the rest of the line
-				if (k % BUFSIZE != BUFSIZE - 1)
-				{
-					while (k % BUFSIZE != BUFSIZE - 1)
-					{
-						if (k % 2 == 0)
-						{
-							printf(" ");
-						}
-						printf("  ");
-						k++;
-					}
-					printf("   |  %.*s\n",
-					       (int)payload.buf.buf_len % BUFSIZE, s_buffer);
-				} // if
-
-				printf ("======================================\n");
-
-			} // if (debug)
-
-			free(filepath);
-			free(source_eid);
-			free(dest_eid);
-
-		}
-
-		fflush(stdout);
-
-		//reciving file
-		if (receiving_fileName != NULL)
-		{
-			printf("\nreceiving file %s - lenght %lu\n", receiving_fileName, receiving_fileLen);
-			if (pl_type == DTN_PAYLOAD_FILE)
-				close(receiving_file);
-			receiving_file = -1;
-
-			if ((destination_file = open(receiving_fileName, O_CREAT | O_TRUNC | O_WRONLY | O_APPEND, 0666)) < 0)
-			{
-				fprintf(stderr, "fatal error opening file %s\n", receiving_fileName);
-				exit(1);
-			}
-
-			while (total_saved < receiving_fileLen)
-			{
-
-				// wait until receive a bundle
-				memset(&spec, 0, sizeof(spec));
-				memset(&payload, 0, sizeof(payload));
-
-				if ((debug) && (debug_level > 0))
-					printf("[debug] waiting for bundles...");
-				if ((ret = dtn_recv(handle, &spec, pl_type, &payload, -1)) < 0)
-				{
-					fprintf(stderr, "error getting recv reply: %d (%s)\n", ret, dtn_strerror(dtn_errno(handle)));
-					exit(1);
-				}
-				if ((debug) && (debug_level > 0))
-					printf(" bundle received\n");
-				count++;
-
-				size_t len;
-				if (pl_type == DTN_PAYLOAD_MEM)
-				{
-					len = payload.buf.buf_len;
-				}
-				else
-				{
-					struct stat st;
-					memset(&st, 0, sizeof(st));
-					stat(payload.filename.filename_val, &st);
-					len = st.st_size;
-				}
-
-				total += len;
-				// mark current time
-				if ((debug) && (debug_level > 0))
-					printf("[debug] marking time...");
-				current = time(NULL);
-				if ((debug) && (debug_level > 0))
-					printf(" done\n");
-				if (aggregate == 0)
-				{
-					printf("%s : %zu bytes from %s\n",
-					       ctime(&current),
-					       len,
-					       spec.source.uri);
-				}
-				else if (count % aggregate == 0)
-				{
-					printf("%s : %d bundles, total length %d bytes\n",
-					       ctime(&current), count, total);
-				}
-
-				/* ---------------------------------------------------
-				 *  parse admin string to select file target location
-				 * --------------------------------------------------- */
-
-				// copy SOURCE eid
-				if ((debug) && (debug_level > 0))
-					printf("[debug]\tcopying source eid...");
-				source_eid_len = sizeof(spec.source.uri);
-				source_eid = malloc(sizeof(char) * source_eid_len + 1);
-				memcpy(source_eid, spec.source.uri, source_eid_len);
-				source_eid[source_eid_len] = '\0';
-
-				if ((debug) && (debug_level > 0))
-				{
-					printf(" done:\n");
-					printf("\tsource_eid = %s\n", source_eid);
-					printf("\n");
-				}
-
-				// copy DEST eid
-				if ((debug) && (debug_level > 0))
-					printf("[debug]\tcopying dest eid...");
-				dest_eid_len = sizeof(spec.dest.uri);
-				dest_eid = malloc(sizeof(char) * dest_eid_len + 1);
-				memcpy(dest_eid, spec.dest.uri, dest_eid_len);
-				dest_eid[dest_eid_len] = '\0';
-				if ((debug) && (debug_level > 0))
-				{
-					printf(" done:\n");
-					printf("\tdest_eid = %s\n", dest_eid);
-					printf("\n");
-				}
-
-				// recursively create full directory path
-				filepath = malloc(sizeof(char) * dest_eid_len + 10);
-				sprintf(filepath, "mkdir -p %s", bundle_dir);
-				if ((debug) && (debug_level > 0))
-					printf("[debug] filepath = %s\n", filepath);
-				system(filepath);
-				// create file name
-				sprintf(filepath, "%s/%s", bundle_dir, filename);
-				if ((debug) && (debug_level > 0))
-					printf("[debug] filepath = %s\n", filepath);
-				// bundle name is the name of the bundle payload file
-				buffer = payload.buf.buf_val;
-				bufsize = payload.buf.buf_len;
-				if ((debug) && (debug_level > 0))
-				{
-					printf ("======================================\n");
-					printf (" Bundle received at %s\n", ctime(&current));
-					printf ("  source: %s\n", spec.source.uri);
-					if (use_file)
-					{
-						printf ("  saved into    : %s\n", filepath);
-					}
-					printf ("--------------------------------------\n");
-				}
-
-				if (pl_type == DTN_PAYLOAD_FILE)
-				{ // if bundle was saved into file
-					if ((receiving_file = open(payload.filename.filename_val, O_RDONLY)) < 0)
-					{
-						fprintf(stderr, "fatal error opening file %s\n", payload.filename.filename_val);
-						exit(1);
-					}
-				}
-
-
-				if (pl_type == DTN_PAYLOAD_FILE)
-				{
-					while (total_written < (long)len)
-					{
-						reads = read(receiving_file, temp, 1024);
-						written = write(destination_file, temp, reads);
-						total_written += written;
-						lseek(receiving_file, total_written, 0);
-					}
-
-				}
-				else
-				{
-					while (total_written < (long)len)
-					{
-						written = write(destination_file, payload.buf.buf_val, payload.buf.buf_len );
-						total_written += written;
-					}
-
-				}
-
-				total_saved += total_written;
-				total_written = 0;
-
-				printf("transfered %lu of %lu\n", total_saved, receiving_fileLen);
-
-				if (pl_type == DTN_PAYLOAD_FILE)
-				{ // if bundle was saved into file
-					if ((debug) && (debug_level > 0))
-						printf("[debug] renaming file %s -> %s...", payload.filename.filename_val, filepath);
-					if (rename(payload.filename.filename_val, filepath) != 0)
-					{
-						printf("[ERROR] Couldn't rename %s -> %s: %s\n", payload.filename.filename_val, filepath, strerror(errno));
-					}
-
-				}
-				else
-				{ // if bundle was saved into memory
-
-					if ((debug) && (debug_level > 0))
-					{
-						for (k = 0; k < (int)payload.buf.buf_len; k++)
-						{
-							if (buffer[k] >= ' ' && buffer[k] <= '~')
-								s_buffer[k % BUFSIZE] = buffer[k];
-							else
-								s_buffer[k % BUFSIZE] = '.';
-
-							if (k % BUFSIZE == 0) // new line every 16 bytes
-							{
-								printf("%07x ", k);
-							}
-							else if (k % 2 == 0)
-							{
-								printf(" "); // space every 2 bytes
-							}
-
-							printf("%02x", buffer[k] & 0xff);
-
-							// print character summary (a la emacs hexl-mode)
-							if (k % BUFSIZE == BUFSIZE - 1)
-							{
-								printf(" |  %.*s\n", BUFSIZE, s_buffer);
-							}
-						} // for
-
-						// print spaces to fill out the rest of the line
-						if (k % BUFSIZE != BUFSIZE - 1)
-						{
-							while (k % BUFSIZE != BUFSIZE - 1)
-							{
-								if (k % 2 == 0)
-								{
-									printf(" ");
-								}
-								printf("  ");
-								k++;
-							}
-							printf("   |  %.*s\n", (int)payload.buf.buf_len % BUFSIZE, s_buffer);
-						} // if
-
-						printf ("======================================\n");
-
-					} // if (debug)
-
-					free(filepath);
-					free(source_eid);
-					free(dest_eid);
-				}
-				close(receiving_file);
-				fflush(stdout);
-			}
-			total_saved = 0;
-			close(destination_file);
-			receiving_file = -1;
-			printf("completed tranfer of file %s\n\n", receiving_fileName);
-			receiving_fileName = NULL;
-		} //end receiving file
-
-	} // while(1)
-
-	// if this was ever changed to gracefully shutdown, it would be good to call:
-	dtn_close(handle);
-
-	return 0;
-
-} //main
-
-/* -------------------------------
- *        Utility Functions
- * ------------------------------- */
-
-/* -------------
- *  print_usage
- * ------------- */
-void print_usage(char* progname)
-{
-	fprintf(stderr, "\n");
-	fprintf(stderr, "SYNTAX: %s [options]\n", progname);
-	fprintf(stderr, "\n");
-	fprintf(stderr, "options:\n");
-	fprintf(stderr, " -d, --ddir <dir>\tDestination directory (if using -f), if dir is not indicated assume dir=%s.\n", BUNDLE_DIR_DEFAULT);
-	fprintf(stderr, " -D, --debug <level>\tDebug messages [0-1], if level is not indicated assume level=0.\n");
-	fprintf(stderr, " -m, --memory\tSave received bundles into memory.\n");
-	fprintf(stderr, " -v    verbose\tSame as -D 0.\n");
-	fprintf(stderr, " -a, --aggregate <n>\tPrint message every n arrivals.\n");
-	fprintf(stderr, " -h, --help\tHelp.\n");
-	fprintf(stderr, "\n");
-	exit(1);
-}
-
-/* ---------------
- *  parse_options
- * --------------- */
-void parse_options (int argc, char** argv)
-{
-	char c, done = 0;
-
-	while (!done)
-	{
-
-		static struct option long_options[] =
-		    {
-			    {"ddir", required_argument, 0, 'd'
-			    },
-			    {"endpoint", required_argument, 0, 'e'},
-			    {"memory", no_argument, 0, 'm'},
-			    {"help", no_argument, 0, 'h'},
-			    {"debug", required_argument, 0, 'D'},
-			    {"aggregate", required_argument, 0, 'a'},
-		    };
-
-		int option_index = 0;
-		c = getopt_long(argc, argv, "hvD::fmd:e:a:", long_options, &option_index);
-
-		switch (c)
-		{
-		case 'h':            // show help
-			print_usage(argv[0]);
-			exit(1);
-			return ;
-		case 'v':            // debug mode
-			debug = 1;
-			break;
-		case 'D':            // debug messages
-			debug = 1;
-			if (optarg != NULL)
-				debug_level = atoi(optarg);
-			break;
-		case 'm':            // save received bundles into memory
-			use_file = 0;
-			break;
-		case 'd':            // destination directory
-			bundle_dir = optarg;
-			break;
-
-		case 'e':            // destination endpoint
-			endpoint = optarg;
-			break;
-
-		case 'a':            // aggregate
-			aggregate = atoi(optarg);
-			break;
-
-		case '?':
-			break;
-
-		case (char)(-1):
-			done = 1;
-			break;
-		default:
-			print_usage(argv[0]);
-			exit(1);
-		}
-	}
-
-#define CHECK_SET(_arg, _what)                                          \
-    if (_arg == 0) {                                                    \
-        fprintf(stderr, "\nSYNTAX ERROR: %s must be specified\n", _what);      \
-        print_usage(argv[0]);                                                  \
-        exit(1);                                                        \
-    }
-
-}
-
-/* ----------------------------
- * parse_tuple
- * ---------------------------- */
-dtn_endpoint_id_t* parse_eid(dtn_handle_t handle, dtn_endpoint_id_t* eid, char * str)
-{
-	// try the string as an actual dtn tuple
-	if (!dtn_parse_eid_string(eid, str))
-	{
-		return eid;
-	}
-	// build a local tuple based on the configuration of our dtn
-	// router plus the str as demux string
-	else if (!dtn_build_local_eid(handle, eid, str))
-	{
-		if (debug)
-			fprintf(stdout, "%s (local)\n", str);
-		return eid;
-	}
-	else
-	{
-		fprintf(stderr, "invalid eid string '%s'\n", str);
-		exit(1);
-	}
-} // end parse_tuple
-
-
-int ContainsChar(char* string, char c)
-{
-	int i;
-	for (i = strlen(string); i >= 0; i--)
-	{
-		if (string[i] == c)
-			return i;
-	}
-	return -1;
-}
-
-
-char* GetFileName(char* string, int position)
-{
-	char temp[1024];
-	char* res;
-	strcpy(temp, string);
-	temp[position] = '\0';
-	res = strdup(temp);
-	return res;
-}
-
-
-long GetFileLen(char* string, int position)
-{
-	int i;
-	char temp[1024];
-	strcpy(temp, string);
-	for (i = (position + 1); i <= (int)(strlen(temp) + 1); i++)
-	{
-		temp[i - (position + 1)] = temp[i];
-	}
-	return atol(temp);
-}
+/*
+*    Copyright 2005-2006 Intel Corporation
+* 
+*    Licensed under the Apache License, Version 2.0 (the "License");
+*    you may not use this file except in compliance with the License.
+*    You may obtain a copy of the License at
+* 
+*        http://www.apache.org/licenses/LICENSE-2.0
+* 
+*    Unless required by applicable law or agreed to in writing, software
+*    distributed under the License is distributed on an "AS IS" BASIS,
+*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*    See the License for the specific language governing permissions and
+*    limitations under the License.
+*/
+
+
+
+/* ----------------------------------------
+ *         DTNperf 2.5.1 - SERVER
+ *
+ *             developed by
+ * 
+ * Piero Cornice - piero.cornice(at)gmail.com
+ * Marco Livini - marco.livini(at)gmail.com
+ *
+ * DEIS - Dipartimento di Elettronica, Informatica e Sistemistica
+ * Universita' di Bologna
+ * Italy
+ * ----------------------------------------
+ */
+
+
+
+
+#ifdef HAVE_CONFIG_H
+#  include <dtn-config.h>
+#endif
+
+#include <stdio.h>
+#include <unistd.h>
+#include <errno.h>
+#include <strings.h>
+#include <string.h>
+#include <stdlib.h>
+#include <time.h>
+#include <getopt.h>
+#include <sys/stat.h>
+#include <sys/file.h>
+#include <dtn_api.h>
+
+
+
+#define TEMPSIZE 1024
+#define BUFSIZE 16
+#define BUNDLE_DIR_DEFAULT "/var/dtn/dtnperf"
+#define OUTFILE "dtnbuffer.rcv"
+
+
+
+/* ------------------------------
+ *  Global variables and options
+ * ------------------------------ */
+
+// values between [square brackets] are default
+const char *progname ;
+int use_file = 1;        // if set to 0, memorize received bundles into memory (max 50000 bytes)
+// if set to 1, memorize received bundles into a file (-f) [0]
+int verbose = 0;        // if set to 1, show debug_level 0 messages [0]
+int aggregate = 0;        // if > 0, print after aggregate arrivals
+int debug = 0;        // if set to 1, show debug messages [1]
+int debug_level = 0;
+char * endpoint = "/dtnperf:/dest";     // endpoint (-e) ["/dtnperf:/dest"]
+char * bundle_dir = BUNDLE_DIR_DEFAULT;   // destination directory (-d)
+
+/* ------------------------
+ *  Function Prototypes
+ * ------------------------ */
+void print_usage(char*);
+void parse_options(int, char**);
+dtn_endpoint_id_t* parse_eid(dtn_handle_t, dtn_endpoint_id_t*, char*);
+int ContainsChar(char* string, char c);
+char* GetFileName(char* string, int position);
+long GetFileLen(char* string, int position);
+
+
+/* -------------------------------------------------
+ * main
+ * ------------------------------------------------- */
+int main(int argc, char** argv)
+{
+
+	/* -----------------------
+	 *  variables declaration
+	 * ----------------------- */
+	int k;
+	int ret;
+	dtn_handle_t handle;
+	dtn_endpoint_id_t local_eid;
+	dtn_reg_info_t reginfo;
+	dtn_reg_id_t regid;
+	dtn_bundle_spec_t spec;
+	dtn_bundle_payload_t payload;
+	char *buffer;                   // buffer used for shell commands
+	char s_buffer[BUFSIZE];
+	time_t current;
+	dtn_bundle_payload_location_t pl_type = DTN_PAYLOAD_FILE; // payload saved into memory or into file
+	int source_eid_len, dest_eid_len;
+	char *source_eid, *dest_eid;
+	char * filepath;
+	char * filename = OUTFILE;      // source filename [OUTFILE]
+	int bufsize;
+	int count = 0;
+	int total = 0;
+	int receiving_file = -1;
+	int destination_file = -1;
+	char temp[TEMPSIZE];
+	char* receiving_fileName = NULL;
+	long separator_position = 0;
+	long receiving_fileLen = 0;
+	long total_written = 0;
+	long reads = 0;
+	long written = 0;
+	long total_saved = 0;
+	
+	
+	/* -------
+	 *  begin
+	 * ------- */
+
+	// parse command-line options
+	parse_options(argc, argv);
+	if ((debug) && (debug_level > 0))
+		printf("[debug] parsed command-line options\n");
+
+	// show requested options (debug)
+	if (debug)
+	{
+		printf("\nOptions:\n");
+		printf("\tendpoint       : %s\n", endpoint);
+		printf("\tsave bundles to: %s\n", use_file ? "file" : "memory");
+		printf("\tdestination dir: %s\n", bundle_dir);
+		printf("\n");
+	}
+
+	// initialize buffer with shell command ("mkdir -p " + bundle_dir)
+	if ((debug) && (debug_level > 0))
+		printf("[debug] initializing buffer with shell command...");
+	buffer = malloc(sizeof(char) * (strlen(bundle_dir) + 10));
+	sprintf(buffer, "mkdir -p %s", bundle_dir);
+	if ((debug) && (debug_level > 0))
+		printf(" done. Shell command = %s\n", buffer);
+
+	// execute shell command
+	if ((debug) && (debug_level > 0))
+		printf("[debug] executing shell command \"%s\"...", buffer);
+	if (system(buffer) == -1)
+	{
+		fprintf(stderr, "Error opening bundle directory: %s\n", bundle_dir);
+		exit(1);
+	}
+	free(buffer);
+	if ((debug) && (debug_level > 0))
+		printf(" done\n");
+
+	// open the ipc handle
+	if ((debug) && (debug_level > 0))
+		printf("[debug] opening connection to dtn router...");
+	int err = dtn_open(&handle);
+	if (err != DTN_SUCCESS)
+	{
+		fprintf(stderr, "fatal error opening dtn handle: %s\n",
+		        dtn_strerror(err));
+		exit(1);
+	}
+	if ((debug) && (debug_level > 0))
+		printf(" done\n");
+
+	// build a local tuple based on the configuration of local dtn router
+	if ((debug) && (debug_level > 0))
+		printf("[debug] building local eid...");
+	dtn_build_local_eid(handle, &local_eid, endpoint);
+	if ((debug) && (debug_level > 0))
+		printf(" done\n");
+	if (debug)
+		printf("local_eid = %s\n", local_eid.uri);
+
+	// create a new registration based on this eid
+	if ((debug) && (debug_level > 0))
+		printf("[debug] registering to local daemon...");
+	memset(&reginfo, 0, sizeof(reginfo));
+	dtn_copy_eid(&reginfo.endpoint, &local_eid);
+	reginfo.flags = DTN_REG_DEFER;
+	reginfo.regid = DTN_REGID_NONE;
+	reginfo.expiration = 0;
+	if ((ret = dtn_register(handle, &reginfo, &regid)) != 0)
+	{
+		fprintf(stderr, "error creating registration: %d (%s)\n",
+		        ret, dtn_strerror(dtn_errno(handle)));
+		exit(1);
+	}
+	if ((debug) && (debug_level > 0))
+		printf(" done\n");
+	if (debug)
+		printf("regid 0x%x\n", regid);
+
+	// set bundle destination type
+	if ((debug) && (debug_level > 0))
+		printf("[debug] choosing bundle destination type...");
+	if (use_file)
+		pl_type = DTN_PAYLOAD_FILE;
+	else
+		pl_type = DTN_PAYLOAD_MEM;
+	if ((debug) && (debug_level > 0))
+		printf(" done. Bundles will be saved into %s\n", use_file ? "file" : "memory");
+
+	if ((debug) && (debug_level > 0))
+		printf("[debug] entering infinite loop...\n");
+
+	// infinite loop, waiting for bundles
+	while (1)
+	{
+
+		// wait until receive a bundle
+		memset(&spec, 0, sizeof(spec));
+		memset(&payload, 0, sizeof(payload));
+
+		if ((debug) && (debug_level > 0))
+			printf("[debug] waiting for bundles...");
+		if ((ret = dtn_recv(handle, &spec, pl_type, &payload, -1)) < 0)
+		{
+			fprintf(stderr, "error getting recv reply: %d (%s)\n",
+			        ret, dtn_strerror(dtn_errno(handle)));
+			exit(1);
+		}
+		if ((debug) && (debug_level > 0))
+			printf(" bundle received\n");
+		count++;
+
+		size_t len;
+		if (pl_type == DTN_PAYLOAD_MEM)
+		{
+			len = payload.buf.buf_len;
+		}
+		else
+		{
+			struct stat st;
+			memset(&st, 0, sizeof(st));
+			stat(payload.filename.filename_val, &st);
+			len = st.st_size;
+		}
+
+		total += len;
+		// mark current time
+		if ((debug) && (debug_level > 0))
+			printf("[debug] marking time...");
+		current = time(NULL);
+		if ((debug) && (debug_level > 0))
+			printf(" done\n");
+		if (aggregate == 0)
+		{
+			printf("%s : %zu bytes from %s\n",
+			       ctime(&current),
+			       len,
+			       spec.source.uri);
+		}
+		else if (count % aggregate == 0)
+		{
+			printf("%s : %d bundles, total length %d bytes\n",
+			       ctime(&current), count, total);
+		}
+
+		/* ---------------------------------------------------
+		 *  parse admin string to select file target location
+		 * --------------------------------------------------- */
+
+		// copy SOURCE eid
+		if ((debug) && (debug_level > 0))
+			printf("[debug]\tcopying source eid...");
+		source_eid_len = sizeof(spec.source.uri);
+		source_eid = malloc(sizeof(char) * source_eid_len + 1);
+		memcpy(source_eid, spec.source.uri, source_eid_len);
+		source_eid[source_eid_len] = '\0';
+		if ((debug) && (debug_level > 0))
+		{
+			printf(" done:\n");
+			printf("\tsource_eid = %s\n", source_eid);
+			printf("\n");
+		}
+
+		// copy DEST eid
+		if ((debug) && (debug_level > 0))
+			printf("[debug]\tcopying dest eid...");
+		dest_eid_len = sizeof(spec.dest.uri);
+		dest_eid = malloc(sizeof(char) * dest_eid_len + 1);
+		memcpy(dest_eid, spec.dest.uri, dest_eid_len);
+		dest_eid[dest_eid_len] = '\0';
+		if ((debug) && (debug_level > 0))
+		{
+			printf(" done:\n");
+			printf("\tdest_eid = %s\n", dest_eid);
+			printf("\n");
+		}
+
+		// recursively create full directory path
+		filepath = malloc(sizeof(char) * dest_eid_len + 10);
+		sprintf(filepath, "mkdir -p %s", bundle_dir);
+		if ((debug) && (debug_level > 0))
+			printf("[debug] filepath = %s\n", filepath);
+		system(filepath);
+
+		// create file name
+		sprintf(filepath, "%s/%s", bundle_dir, filename);
+		if ((debug) && (debug_level > 0))
+			printf("[debug] filepath = %s\n", filepath);
+
+		// bundle name is the name of the bundle payload file
+		buffer = payload.buf.buf_val;
+		bufsize = payload.buf.buf_len;
+
+		if ((debug) && (debug_level > 0))
+		{
+			printf ("======================================\n");
+			printf (" Bundle received at %s\n", ctime(&current));
+			printf ("  source: %s\n", spec.source.uri);
+			if (use_file)
+			{
+				printf ("  saved into    : %s\n", filepath);
+			}
+
+			printf ("--------------------------------------\n");
+		}
+
+		//receiving file
+		if (TEMPSIZE >= len)
+		{
+			if (pl_type == DTN_PAYLOAD_FILE)
+			{ // if bundle was saved into file
+				if ((receiving_file = open(payload.filename.filename_val, O_RDONLY)) < 0)
+				{
+					fprintf(stderr, "fatal error opening file %s\n", payload.filename.filename_val);
+					exit(1);
+				}
+			}
+
+			if (((pl_type == DTN_PAYLOAD_FILE) && (read(receiving_file, temp, len) > 0)) || (payload.buf.buf_len > 0))
+			{
+				printf("&&(TEMPSIZE>=len)\n");
+				fflush(stdout);
+				if (payload.buf.buf_len > 0)
+					strcpy(temp, payload.buf.buf_val);
+
+				if ((separator_position = ContainsChar(temp, '/')) > 0)
+				{
+					if ((debug) && (debug_level > 0))
+						printf("[debug]  Getting the name of file to receive...");
+					receiving_fileName = GetFileName(temp, separator_position);
+					if ((debug) && (debug_level > 0))
+						printf("done\n");
+					if ((debug) && (debug_level > 0))
+						printf("[debug]  Getting the lenght of file to receive...");
+					receiving_fileLen = GetFileLen(temp, separator_position);
+					if ((debug) && (debug_level > 0))
+						printf("done\n");
+				}
+			}
+
+			if (pl_type == DTN_PAYLOAD_FILE)
+			{
+				close(receiving_file);
+				receiving_file = -1;
+			}
+		}
+
+		if (pl_type == DTN_PAYLOAD_FILE)
+		{ // if bundle was saved into file
+
+			if ((debug) && (debug_level > 0))
+				printf("[debug] renaming file %s -> %s...",
+				       payload.filename.filename_val, filepath);
+
+			if (rename(payload.filename.filename_val, filepath) != 0)
+			{
+				printf("[ERROR] Couldn't rename %s -> %s: %s\n",
+				       payload.filename.filename_val, filepath, strerror(errno));
+			}
+
+		}
+		else
+		{ // if bundle was saved into memory
+
+			if ((debug) && (debug_level > 0))
+			{
+				for (k = 0; k < (int)payload.buf.buf_len; k++)
+				{
+					if (buffer[k] >= ' ' && buffer[k] <= '~')
+						s_buffer[k % BUFSIZE] = buffer[k];
+					else
+						s_buffer[k % BUFSIZE] = '.';
+
+					if (k % BUFSIZE == 0) // new line every 16 bytes
+					{
+						printf("%07x ", k);
+					}
+					else if (k % 2 == 0)
+					{
+						printf(" "); // space every 2 bytes
+					}
+
+					printf("%02x", buffer[k] & 0xff);
+
+					// print character summary (a la emacs hexl-mode)
+					if (k % BUFSIZE == BUFSIZE - 1)
+					{
+						printf(" |  %.*s\n", BUFSIZE, s_buffer);
+					}
+				} // for
+
+				// print spaces to fill out the rest of the line
+				if (k % BUFSIZE != BUFSIZE - 1)
+				{
+					while (k % BUFSIZE != BUFSIZE - 1)
+					{
+						if (k % 2 == 0)
+						{
+							printf(" ");
+						}
+						printf("  ");
+						k++;
+					}
+					printf("   |  %.*s\n",
+					       (int)payload.buf.buf_len % BUFSIZE, s_buffer);
+				} // if
+
+				printf ("======================================\n");
+
+			} // if (debug)
+
+			free(filepath);
+			free(source_eid);
+			free(dest_eid);
+
+		}
+
+		fflush(stdout);
+
+		//reciving file
+		if (receiving_fileName != NULL)
+		{
+			printf("\nreceiving file %s - lenght %lu\n", receiving_fileName, receiving_fileLen);
+			if (pl_type == DTN_PAYLOAD_FILE)
+				close(receiving_file);
+			receiving_file = -1;
+
+			if ((destination_file = open(receiving_fileName, O_CREAT | O_TRUNC | O_WRONLY | O_APPEND, 0666)) < 0)
+			{
+				fprintf(stderr, "fatal error opening file %s\n", receiving_fileName);
+				exit(1);
+			}
+
+			while (total_saved < receiving_fileLen)
+			{
+
+				// wait until receive a bundle
+				memset(&spec, 0, sizeof(spec));
+				memset(&payload, 0, sizeof(payload));
+
+				if ((debug) && (debug_level > 0))
+					printf("[debug] waiting for bundles...");
+				if ((ret = dtn_recv(handle, &spec, pl_type, &payload, -1)) < 0)
+				{
+					fprintf(stderr, "error getting recv reply: %d (%s)\n", ret, dtn_strerror(dtn_errno(handle)));
+					exit(1);
+				}
+				if ((debug) && (debug_level > 0))
+					printf(" bundle received\n");
+				count++;
+
+				size_t len;
+				if (pl_type == DTN_PAYLOAD_MEM)
+				{
+					len = payload.buf.buf_len;
+				}
+				else
+				{
+					struct stat st;
+					memset(&st, 0, sizeof(st));
+					stat(payload.filename.filename_val, &st);
+					len = st.st_size;
+				}
+
+				total += len;
+				// mark current time
+				if ((debug) && (debug_level > 0))
+					printf("[debug] marking time...");
+				current = time(NULL);
+				if ((debug) && (debug_level > 0))
+					printf(" done\n");
+				if (aggregate == 0)
+				{
+					printf("%s : %zu bytes from %s\n",
+					       ctime(&current),
+					       len,
+					       spec.source.uri);
+				}
+				else if (count % aggregate == 0)
+				{
+					printf("%s : %d bundles, total length %d bytes\n",
+					       ctime(&current), count, total);
+				}
+
+				/* ---------------------------------------------------
+				 *  parse admin string to select file target location
+				 * --------------------------------------------------- */
+
+				// copy SOURCE eid
+				if ((debug) && (debug_level > 0))
+					printf("[debug]\tcopying source eid...");
+				source_eid_len = sizeof(spec.source.uri);
+				source_eid = malloc(sizeof(char) * source_eid_len + 1);
+				memcpy(source_eid, spec.source.uri, source_eid_len);
+				source_eid[source_eid_len] = '\0';
+
+				if ((debug) && (debug_level > 0))
+				{
+					printf(" done:\n");
+					printf("\tsource_eid = %s\n", source_eid);
+					printf("\n");
+				}
+
+				// copy DEST eid
+				if ((debug) && (debug_level > 0))
+					printf("[debug]\tcopying dest eid...");
+				dest_eid_len = sizeof(spec.dest.uri);
+				dest_eid = malloc(sizeof(char) * dest_eid_len + 1);
+				memcpy(dest_eid, spec.dest.uri, dest_eid_len);
+				dest_eid[dest_eid_len] = '\0';
+				if ((debug) && (debug_level > 0))
+				{
+					printf(" done:\n");
+					printf("\tdest_eid = %s\n", dest_eid);
+					printf("\n");
+				}
+
+				// recursively create full directory path
+				filepath = malloc(sizeof(char) * dest_eid_len + 10);
+				sprintf(filepath, "mkdir -p %s", bundle_dir);
+				if ((debug) && (debug_level > 0))
+					printf("[debug] filepath = %s\n", filepath);
+				system(filepath);
+				// create file name
+				sprintf(filepath, "%s/%s", bundle_dir, filename);
+				if ((debug) && (debug_level > 0))
+					printf("[debug] filepath = %s\n", filepath);
+				// bundle name is the name of the bundle payload file
+				buffer = payload.buf.buf_val;
+				bufsize = payload.buf.buf_len;
+				if ((debug) && (debug_level > 0))
+				{
+					printf ("======================================\n");
+					printf (" Bundle received at %s\n", ctime(&current));
+					printf ("  source: %s\n", spec.source.uri);
+					if (use_file)
+					{
+						printf ("  saved into    : %s\n", filepath);
+					}
+					printf ("--------------------------------------\n");
+				}
+
+				if (pl_type == DTN_PAYLOAD_FILE)
+				{ // if bundle was saved into file
+					if ((receiving_file = open(payload.filename.filename_val, O_RDONLY)) < 0)
+					{
+						fprintf(stderr, "fatal error opening file %s\n", payload.filename.filename_val);
+						exit(1);
+					}
+				}
+
+
+				if (pl_type == DTN_PAYLOAD_FILE)
+				{
+					while (total_written < (long)len)
+					{
+						reads = read(receiving_file, temp, 1024);
+						written = write(destination_file, temp, reads);
+						total_written += written;
+						lseek(receiving_file, total_written, 0);
+					}
+
+				}
+				else
+				{
+					while (total_written < (long)len)
+					{
+						written = write(destination_file, payload.buf.buf_val, payload.buf.buf_len );
+						total_written += written;
+					}
+
+				}
+
+				total_saved += total_written;
+				total_written = 0;
+
+				printf("transfered %lu of %lu\n", total_saved, receiving_fileLen);
+
+				if (pl_type == DTN_PAYLOAD_FILE)
+				{ // if bundle was saved into file
+					if ((debug) && (debug_level > 0))
+						printf("[debug] renaming file %s -> %s...", payload.filename.filename_val, filepath);
+					if (rename(payload.filename.filename_val, filepath) != 0)
+					{
+						printf("[ERROR] Couldn't rename %s -> %s: %s\n", payload.filename.filename_val, filepath, strerror(errno));
+					}
+
+				}
+				else
+				{ // if bundle was saved into memory
+
+					if ((debug) && (debug_level > 0))
+					{
+						for (k = 0; k < (int)payload.buf.buf_len; k++)
+						{
+							if (buffer[k] >= ' ' && buffer[k] <= '~')
+								s_buffer[k % BUFSIZE] = buffer[k];
+							else
+								s_buffer[k % BUFSIZE] = '.';
+
+							if (k % BUFSIZE == 0) // new line every 16 bytes
+							{
+								printf("%07x ", k);
+							}
+							else if (k % 2 == 0)
+							{
+								printf(" "); // space every 2 bytes
+							}
+
+							printf("%02x", buffer[k] & 0xff);
+
+							// print character summary (a la emacs hexl-mode)
+							if (k % BUFSIZE == BUFSIZE - 1)
+							{
+								printf(" |  %.*s\n", BUFSIZE, s_buffer);
+							}
+						} // for
+
+						// print spaces to fill out the rest of the line
+						if (k % BUFSIZE != BUFSIZE - 1)
+						{
+							while (k % BUFSIZE != BUFSIZE - 1)
+							{
+								if (k % 2 == 0)
+								{
+									printf(" ");
+								}
+								printf("  ");
+								k++;
+							}
+							printf("   |  %.*s\n", (int)payload.buf.buf_len % BUFSIZE, s_buffer);
+						} // if
+
+						printf ("======================================\n");
+
+					} // if (debug)
+
+					free(filepath);
+					free(source_eid);
+					free(dest_eid);
+				}
+				close(receiving_file);
+				fflush(stdout);
+			}
+			total_saved = 0;
+			close(destination_file);
+			receiving_file = -1;
+			printf("completed tranfer of file %s\n\n", receiving_fileName);
+			receiving_fileName = NULL;
+		} //end receiving file
+
+	} // while(1)
+
+	// if this was ever changed to gracefully shutdown, it would be good to call:
+	dtn_close(handle);
+
+	return 0;
+
+} //main
+
+/* -------------------------------
+ *        Utility Functions
+ * ------------------------------- */
+
+/* -------------
+ *  print_usage
+ * ------------- */
+void print_usage(char* progname)
+{
+	fprintf(stderr, "\n");
+	fprintf(stderr, "SYNTAX: %s [options]\n", progname);
+	fprintf(stderr, "\n");
+	fprintf(stderr, "options:\n");
+	fprintf(stderr, " -d, --ddir <dir>\tDestination directory (if using -f), if dir is not indicated assume dir=%s.\n", BUNDLE_DIR_DEFAULT);
+	fprintf(stderr, " -D, --debug <level>\tDebug messages [0-1], if level is not indicated assume level=0.\n");
+	fprintf(stderr, " -m, --memory\tSave received bundles into memory.\n");
+	fprintf(stderr, " -v    verbose\tSame as -D 0.\n");
+	fprintf(stderr, " -a, --aggregate <n>\tPrint message every n arrivals.\n");
+	fprintf(stderr, " -h, --help\tHelp.\n");
+	fprintf(stderr, "\n");
+	exit(1);
+}
+
+/* ---------------
+ *  parse_options
+ * --------------- */
+void parse_options (int argc, char** argv)
+{
+	char c, done = 0;
+
+	while (!done)
+	{
+
+		static struct option long_options[] =
+		    {
+			    {"ddir", required_argument, 0, 'd'
+			    },
+			    {"endpoint", required_argument, 0, 'e'},
+			    {"memory", no_argument, 0, 'm'},
+			    {"help", no_argument, 0, 'h'},
+			    {"debug", required_argument, 0, 'D'},
+			    {"aggregate", required_argument, 0, 'a'},
+		    };
+
+		int option_index = 0;
+		c = getopt_long(argc, argv, "hvD::fmd:e:a:", long_options, &option_index);
+
+		switch (c)
+		{
+		case 'h':            // show help
+			print_usage(argv[0]);
+			exit(1);
+			return ;
+		case 'v':            // debug mode
+			debug = 1;
+			break;
+		case 'D':            // debug messages
+			debug = 1;
+			if (optarg != NULL)
+				debug_level = atoi(optarg);
+			break;
+		case 'm':            // save received bundles into memory
+			use_file = 0;
+			break;
+		case 'd':            // destination directory
+			bundle_dir = optarg;
+			break;
+
+		case 'e':            // destination endpoint
+			endpoint = optarg;
+			break;
+
+		case 'a':            // aggregate
+			aggregate = atoi(optarg);
+			break;
+
+		case '?':
+			break;
+
+		case (char)(-1):
+			done = 1;
+			break;
+		default:
+			print_usage(argv[0]);
+			exit(1);
+		}
+	}
+
+#define CHECK_SET(_arg, _what)                                          \
+    if (_arg == 0) {                                                    \
+        fprintf(stderr, "\nSYNTAX ERROR: %s must be specified\n", _what);      \
+        print_usage(argv[0]);                                                  \
+        exit(1);                                                        \
+    }
+
+}
+
+/* ----------------------------
+ * parse_tuple
+ * ---------------------------- */
+dtn_endpoint_id_t* parse_eid(dtn_handle_t handle, dtn_endpoint_id_t* eid, char * str)
+{
+	// try the string as an actual dtn tuple
+	if (!dtn_parse_eid_string(eid, str))
+	{
+		return eid;
+	}
+	// build a local tuple based on the configuration of our dtn
+	// router plus the str as demux string
+	else if (!dtn_build_local_eid(handle, eid, str))
+	{
+		if (debug)
+			fprintf(stdout, "%s (local)\n", str);
+		return eid;
+	}
+	else
+	{
+		fprintf(stderr, "invalid eid string '%s'\n", str);
+		exit(1);
+	}
+} // end parse_tuple
+
+
+int ContainsChar(char* string, char c)
+{
+	int i;
+	for (i = strlen(string); i >= 0; i--)
+	{
+		if (string[i] == c)
+			return i;
+	}
+	return -1;
+}
+
+
+char* GetFileName(char* string, int position)
+{
+	char temp[1024];
+	char* res;
+	strcpy(temp, string);
+	temp[position] = '\0';
+	res = strdup(temp);
+	return res;
+}
+
+
+long GetFileLen(char* string, int position)
+{
+	int i;
+	char temp[1024];
+	strcpy(temp, string);
+	for (i = (position + 1); i <= (int)(strlen(temp) + 1); i++)
+	{
+		temp[i - (position + 1)] = temp[i];
+	}
+	return atol(temp);
+}
diff -r 26df37215290 -r 382b857f17a8 configure
--- a/configure	Mon Sep 06 16:53:28 2010 -0700
+++ b/configure	Mon Dec 20 14:34:54 2010 +0000
@@ -1,7 +1,7 @@
 #! /bin/sh
 # From configure.ac -- DO NOT EDIT THIS FILE!  See the instructions in configure.ac --.
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.66.
+# Generated by GNU Autoconf 2.67.
 #
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -796,8 +796,9 @@
   fi
 
   case $ac_option in
-  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-  *)	ac_optarg=yes ;;
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+  *=)   ac_optarg= ;;
+  *)    ac_optarg=yes ;;
   esac
 
   # Accept the important Cygnus configure options, so we can diagnose typos.
@@ -1452,7 +1453,7 @@
 if $ac_init_version; then
   cat <<\_ACEOF
 configure
-generated by GNU Autoconf 2.66
+generated by GNU Autoconf 2.67
 
 Copyright (C) 2010 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
@@ -1587,7 +1588,7 @@
     mv -f conftest.er1 conftest.err
   fi
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } >/dev/null && {
+  test $ac_status = 0; } > conftest.i && {
 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 	 test ! -s conftest.err
        }; then :
@@ -1650,7 +1651,7 @@
 else
   ac_header_preproc=no
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 $as_echo "$ac_header_preproc" >&6; }
 
@@ -1822,7 +1823,7 @@
     mv -f conftest.er1 conftest.err
   fi
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } >/dev/null && {
+  test $ac_status = 0; } > conftest.i && {
 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 	 test ! -s conftest.err
        }; then :
@@ -1885,7 +1886,7 @@
 else
   ac_header_preproc=no
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 $as_echo "$ac_header_preproc" >&6; }
 
@@ -1975,7 +1976,7 @@
 running configure, to aid debugging if configure makes a mistake.
 
 It was created by $as_me, which was
-generated by GNU Autoconf 2.66.  Invocation command line was
+generated by GNU Autoconf 2.67.  Invocation command line was
 
   $ $0 $@
 
@@ -2233,7 +2234,7 @@
       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
   fi
 done
 
@@ -2733,7 +2734,7 @@
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2848,7 +2849,7 @@
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
@@ -2891,7 +2892,7 @@
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest conftest$ac_cv_exeext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -2950,7 +2951,7 @@
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot run C compiled programs.
 If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
     fi
   fi
 fi
@@ -3002,7 +3003,7 @@
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 fi
@@ -3270,10 +3271,6 @@
 	    ln -s ../../$ac_oasysdir $OASYS_INCDIR
 	    ln -s ../$ac_oasysdir/lib $OASYS_LIBDIR
 	    ln -s ../$ac_oasysdir $OASYS_ETCDIR
-    else
-	    OASYS_INCDIR="$ac_oasysdir/include"
-	    OASYS_LIBDIR="$ac_oasysdir/lib"
-	    OASYS_ETCDIR="$ac_oasysdir/share/oasys"
     fi
 
     #
@@ -3609,7 +3606,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -3625,11 +3622,11 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
   break
 fi
@@ -3668,7 +3665,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -3684,18 +3681,18 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
 
 else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 ac_ext=c
@@ -4815,7 +4812,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -4831,11 +4828,11 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
   break
 fi
@@ -4874,7 +4871,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -4890,18 +4887,18 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
 
 else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 ac_ext=cpp
@@ -4960,7 +4957,7 @@
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "Cannot find OpenSSL.
        On Debian-based Linux systems, you need the 'libssl-dev' package.
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 done
@@ -5014,7 +5011,7 @@
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "Cannot find OpenSSL.
        On Debian-based Linux systems, you need the 'libssl-dev' package.
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 
@@ -5067,7 +5064,7 @@
 as_fn_error $? "Cannot find EVP_sha256.
        On Mac OS X systems, you probably need an updated OpenSSL package, version 0.9.8.
        Specify   --with-openssl=/path/to/openssl LDFLAGS=\"-Wl,-search_paths_first\"
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 
@@ -5250,7 +5247,7 @@
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -5780,7 +5777,7 @@
 		   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C++ compiler does not work
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
@@ -5833,7 +5830,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -5849,11 +5846,11 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
   break
 fi
@@ -5892,7 +5889,7 @@
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -5908,18 +5905,18 @@
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
 
 else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 ac_ext=cpp
@@ -6998,7 +6995,7 @@
 # values after options handling.
 ac_log="
 This file was extended by $as_me, which was
-generated by GNU Autoconf 2.66.  Invocation command line was
+generated by GNU Autoconf 2.67.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS
@@ -7060,7 +7057,7 @@
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
 config.status
-configured by $0, generated by GNU Autoconf 2.66,
+configured by $0, generated by GNU Autoconf 2.67,
   with options \\"\$ac_cs_config\\"
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -7078,11 +7075,16 @@
 while test $# != 0
 do
   case $1 in
-  --*=*)
+  --*=?*)
     ac_option=`expr "X$1" : 'X\([^=]*\)='`
     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     ac_shift=:
     ;;
+  --*=)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=
+    ac_shift=:
+    ;;
   *)
     ac_option=$1
     ac_optarg=$2
@@ -7104,6 +7106,7 @@
     $ac_shift
     case $ac_optarg in
     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    '') as_fn_error $? "missing file argument" ;;
     esac
     as_fn_append CONFIG_FILES " '$ac_optarg'"
     ac_need_defaults=false;;
@@ -7185,7 +7188,7 @@
     "sim/Makefile") CONFIG_FILES="$CONFIG_FILES sim/Makefile:sim/Makefile-Builddir.in" ;;
     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile:test/Makefile-Builddir.in" ;;
 
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
   esac
 done
 
@@ -7500,7 +7503,7 @@
   esac
   case $ac_mode$ac_tag in
   :[FHL]*:*);;
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
   :[FH]-) ac_tag=-:-;;
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   esac
@@ -7528,7 +7531,7 @@
 	   [\\/$]*) false;;
 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 	   esac ||
-	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
       esac
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
       as_fn_append ac_file_inputs " '$ac_f'"
@@ -7555,7 +7558,7 @@
 
     case $ac_tag in
     *:-:* | *:-) cat >"$tmp/stdin" \
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     esac
     ;;
   esac
diff -r 26df37215290 -r 382b857f17a8 dtn-config.h.in
--- a/dtn-config.h.in	Mon Sep 06 16:53:28 2010 -0700
+++ b/dtn-config.h.in	Mon Dec 20 14:34:54 2010 +0000
@@ -78,6 +78,9 @@
 /* Define to the one symbol short name of this package. */
 #undef PACKAGE_TARNAME
 
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 

--=-Fx6Es3Jlc7bB7pXUP4XT--



Received: from nm9.bullet.mail.ac4.yahoo.com (nm9.bullet.mail.ac4.yahoo.com [98.139.52.206]) by maillists.intel-research.net (8.13.8/8.13.8) with SMTP id oBHKwBeb011518 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 12:58:12 -0800
Received: from [98.139.52.191] by nm9.bullet.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:58:12 -0000
Received: from [98.139.52.143] by tm4.bullet.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:58:12 -0000
Received: from [127.0.0.1] by omp1026.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:58:12 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 621215.29935.bm@omp1026.mail.ac4.yahoo.com
Received: (qmail 44085 invoked by uid 60001); 17 Dec 2010 20:58:12 -0000
Message-ID: <501599.43166.qm@web56602.mail.re3.yahoo.com>
X-YMail-OSG: BC5fRPYVM1kN84z9H01F.WmcsHIv_mMbLj1OJebjFikk7a. qD0na2SD4xbFoqKePXGCmfopLbEHDr5I01QLT5.Pn1N_aWoZDKO.WzMZOBYP iit9gOt46bHClxKRza7n8GlZRl42uzxMB60UhjmH20oYmotp0O3MVR5Hoq66 kLM1S18gdP9nw9O9DanTe29eQojNfWlH3lX5bRe0pBikD2SBNOMDihp9iEQj yHRkIhFijOvCQoniJYsHTgVJEluXkPeSo4RFjZNjbfT0mJ8mN.rYfHfF_PhP cbmGnPGWz81ur7fCXrSVxhA3W1XhD8V9fSlQHaX42D7buRYV1Z8VnYwR5Vsg eNAIIv2TUENZ8Q7WJ1WSlDCE75DjtFz5ztib3wVb9Dc0iF9br8MEVDFGIsN4 0tlq8EKjiu4JK
Received: from [32.170.103.29] by web56602.mail.re3.yahoo.com via HTTP; Fri, 17 Dec 2010 12:58:12 PST
X-Mailer: YahooMailWebService/0.8.107.285259
Date: Fri, 17 Dec 2010 12:58:12 -0800 (PST)
From: Justin Dailey <dail8859@yahoo.com>
To: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>,  "vlyamtsev@gmail.com" <vlyamtsev@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1020673632-1292619492=:43166"
Subject: Re: [dtn-users] dtn2 multi-hop route syntax
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Dec 2010 20:58:12 -0000

--0-1020673632-1292619492=:43166
Content-Type: text/plain; charset=us-ascii

<p>Correction from my last email, give the link not the interface of the next hop.</p>
<p>Justin Dailey</p>



      
--0-1020673632-1292619492=:43166
Content-Type: text/html; charset=us-ascii

<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p>Correction from my last email, give the link not the interface of the next hop.</p>
<p>Justin Dailey</p>
</td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Victor lyamtsev &lt;vlyamtsev@gmail.com&gt;;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                             &lt;dtn-users@maillists.intel-research.net&gt;;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            [dtn-users] dtn2 multi-hop route syntax                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Fri, Dec 17, 2010 8:03:40 PM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">Can someone advise: what would be the correct syntax for "route add"<BR>to describe multi-hop route?<BR>For example, if destination is "dtn://a.dtn/test" and next hop:<BR>"dtn://b.dtn", should I have 2 different "route add", or is there<BR>particular<BR>syntax the next hop for the route?<BR>route add dtn://b.dtn tcp0<BR>route add&nbsp; dtn://a.dtn/test tcp0<BR><BR>Thanks,<BR>-V<BR>_______________________________________________<BR>dtn-users mailing list<BR><a ymailto="mailto:dtn-users@maillists.intel-research.net" href="javascript:return">dtn-users@maillists.intel-research.net</a><BR><a href="http://maillists.intel-research.net/mailman/listinfo/dtn-users" target=_blank >http://maillists.intel-research.net/mailman/listinfo/dtn-users</a><BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>
<br>

      
--0-1020673632-1292619492=:43166--


Received: from nm23-vm0.bullet.mail.ac4.yahoo.com (nm23-vm0.bullet.mail.ac4.yahoo.com [98.139.53.220]) by maillists.intel-research.net (8.13.8/8.13.8) with SMTP id oBHKuGV4011424 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 12:56:17 -0800
Received: from [98.139.52.190] by nm23.bullet.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:56:16 -0000
Received: from [98.139.52.169] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:56:16 -0000
Received: from [127.0.0.1] by omp1052.mail.ac4.yahoo.com with NNFMP; 17 Dec 2010 20:56:16 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 209805.97304.bm@omp1052.mail.ac4.yahoo.com
Received: (qmail 24057 invoked by uid 60001); 17 Dec 2010 20:56:16 -0000
Message-ID: <80077.23806.qm@web56601.mail.re3.yahoo.com>
X-YMail-OSG: mSSXW8YVM1n9KaKNQG3sRinffVb0K06o0yQaptR_YR5OwhL wTi4HLmFbLKgOI0FDZ_MiWE.fTSSy4zVSBQquFn_6nuMMbM1QZ7WDX0IABEE TOG6vq7zCj33HmmhV0bpqqTFMaatzkJjqRo13_cmSbHVwhJrhA3Fko.mpzX1 b0HPLzU6VXAeYSlHmyc5lcXOVp9WIEoe7335XuhCl3j6f_qny77ZaQ3zXdAQ HQ_HfImIQWJZSbltn4nAbQ6Wqrrh5febnMQv7ltULCIAHwvV9vI_2cb9f_0. KpHGJzKtdrwJRyNXl1S15LDo0PIGTdsOr4CK3G1iPXfVuImn7PK88fGloUqG z_kT2GUZj07IRHOOdX1Ngp_t4vsSVcsxYqNWIdL9jqnqMXhneptJQiJIGkUY EtctvlcaqmxBI
Received: from [32.170.103.29] by web56601.mail.re3.yahoo.com via HTTP; Fri, 17 Dec 2010 12:56:16 PST
X-Mailer: YahooMailWebService/0.8.107.285259
Date: Fri, 17 Dec 2010 12:56:16 -0800 (PST)
From: Justin Dailey <dail8859@yahoo.com>
To: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>,  "vlyamtsev@gmail.com" <vlyamtsev@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-163828393-1292619376=:23806"
Subject: Re: [dtn-users] dtn2 multi-hop route syntax
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Dec 2010 20:56:18 -0000

--0-163828393-1292619376=:23806
Content-Type: text/plain; charset=us-ascii

<p>When we setup our multi hop test bed at Shawnee University only one route add is needed. Just add the route for the destination and give the interface to the next hop.</p>
<p>Thanks,<br>
Justin Dailey<br>
Ohio University</p>



      
--0-163828393-1292619376=:23806
Content-Type: text/html; charset=us-ascii

<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p>When we setup our multi hop test bed at Shawnee University only one route add is needed. Just add the route for the destination and give the interface to the next hop.</p>
<p>Thanks,<br>
Justin Dailey<br>
Ohio University</p>
</td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Victor lyamtsev &lt;vlyamtsev@gmail.com&gt;;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                             &lt;dtn-users@maillists.intel-research.net&gt;;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            [dtn-users] dtn2 multi-hop route syntax                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Fri, Dec 17, 2010 8:03:40 PM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">Can someone advise: what would be the correct syntax for "route add"<BR>to describe multi-hop route?<BR>For example, if destination is "dtn://a.dtn/test" and next hop:<BR>"dtn://b.dtn", should I have 2 different "route add", or is there<BR>particular<BR>syntax the next hop for the route?<BR>route add dtn://b.dtn tcp0<BR>route add&nbsp; dtn://a.dtn/test tcp0<BR><BR>Thanks,<BR>-V<BR>_______________________________________________<BR>dtn-users mailing list<BR><a ymailto="mailto:dtn-users@maillists.intel-research.net" href="javascript:return">dtn-users@maillists.intel-research.net</a><BR><a href="http://maillists.intel-research.net/mailman/listinfo/dtn-users" target=_blank >http://maillists.intel-research.net/mailman/listinfo/dtn-users</a><BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>
<br>

      
--0-163828393-1292619376=:23806--


Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBHK3dDs009015 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 12:03:40 -0800
Received: by yxl31 with SMTP id 31so474140yxl.28 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 12:03:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.11.16 with SMTP id 16mr3343309ybk.272.1292616220461; Fri, 17 Dec 2010 12:03:40 -0800 (PST)
Received: by 10.150.146.6 with HTTP; Fri, 17 Dec 2010 12:03:40 -0800 (PST)
Date: Fri, 17 Dec 2010 15:03:40 -0500
Message-ID: <AANLkTi=Jjg+Yt9ceQA9bMFknLbZ+0y-5j9ofvw3eJB_D@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] dtn2 multi-hop route syntax
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Dec 2010 20:03:40 -0000

Can someone advise: what would be the correct syntax for "route add"
to describe multi-hop route?
For example, if destination is "dtn://a.dtn/test" and next hop:
"dtn://b.dtn", should I have 2 different "route add", or is there
particular
syntax the next hop for the route?
route add dtn://b.dtn tcp0
route add  dtn://a.dtn/test tcp0

Thanks,
-V


Received: from berkshire.webhosting.uk.com (berkshire.webhosting.uk.com [91.186.30.249]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBHCxikC019507 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 04:59:44 -0800
Received: from localhost ([127.0.0.1]:40192) by berkshire.webhosting.uk.com with esmtp (Exim 4.69) (envelope-from <dtn@pieroland.net>) id 1PTZuS-00016K-MK for dtn-users@maillists.intel-research.net; Fri, 17 Dec 2010 12:59:44 +0000
Received: from 82.7.94.97 ([82.7.94.97]) by pieroland.net (Horde Framework) with HTTP; Fri, 17 Dec 2010 12:59:44 +0000
Message-ID: <20101217125944.16254uj2rgazfh2c@pieroland.net>
Date: Fri, 17 Dec 2010 12:59:44 +0000
From: Piero Cornice <dtn@pieroland.net>
To: dtn-users@maillists.intel-research.net
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL> <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG>
In-Reply-To: <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.3.9)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - berkshire.webhosting.uk.com
X-AntiAbuse: Original Domain - maillists.intel-research.net
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - pieroland.net
Subject: [dtn-users] DTN2 compilation error on Fedora 13+
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Dec 2010 12:59:45 -0000

Hi everyone,

I'm about to update DTNPerf2, so I'm trying to compile the current  
DTN2 code from Mercurial, but it fails with the error:

gcc -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "dtnperf/dtnperf-server.o  
dtnperf/dtnperf-server.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE  
-D_FILE_OFFSET_BITS=64 -I.. -I..  
-I/home/piero/temp/DTN/DTN2/oasys/include  
-I/home/piero/temp/DTN/DTN2/oasys/include/oasys/ext -I../servlib    
-Wall -W -Wcast-align  -I../applib -c dtnperf/dtnperf-server.c -o  
dtnperf/dtnperf-server.o
dtnperf/dtnperf-server.c:36:22: fatal error: config.h: No such file or  
directory
compilation terminated.
make[1]: *** [dtnperf/dtnperf-server.o] Error 1
make[1]: Leaving directory `/home/piero/temp/DTN/DTN2/apps'
make: *** [apps] Error 2

I have verified that config.h exists in the proper directory, and  
tried to tweak the Makefile with little success. I also replicated  
this issue on three Fedora 13/14 machines.

Any suggestion?

Regards,
Piero





Received: from berkshire.webhosting.uk.com (berkshire.webhosting.uk.com [91.186.30.249]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBHCxcd7019502 for <dtn-users@maillists.intel-research.net>; Fri, 17 Dec 2010 04:59:39 -0800
Received: from localhost ([127.0.0.1]:40187) by berkshire.webhosting.uk.com with esmtp (Exim 4.69) (envelope-from <dtn@pieroland.net>) id 1PTZuL-00015x-9i for dtn-users@maillists.intel-research.net; Fri, 17 Dec 2010 12:59:37 +0000
Received: from 82.7.94.97 ([82.7.94.97]) by pieroland.net (Horde Framework) with HTTP; Fri, 17 Dec 2010 12:59:37 +0000
Message-ID: <20101217125937.21421nko9jf8kiis@pieroland.net>
Date: Fri, 17 Dec 2010 12:59:37 +0000
From: Piero Cornice <dtn@pieroland.net>
To: dtn-users@maillists.intel-research.net
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL> <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG>
In-Reply-To: <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.3.9)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - berkshire.webhosting.uk.com
X-AntiAbuse: Original Domain - maillists.intel-research.net
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - pieroland.net
Subject: [dtn-users] DTN2 compilation error on Fedora 13+
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Dec 2010 12:59:39 -0000

Hi everyone,

I'm about to update DTNPerf2, so I'm trying to compile the current  
DTN2 code from Mercurial, but it fails with the error:

gcc -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "dtnperf/dtnperf-server.o  
dtnperf/dtnperf-server.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE  
-D_FILE_OFFSET_BITS=64 -I.. -I..  
-I/home/piero/temp/DTN/DTN2/oasys/include  
-I/home/piero/temp/DTN/DTN2/oasys/include/oasys/ext -I../servlib    
-Wall -W -Wcast-align  -I../applib -c dtnperf/dtnperf-server.c -o  
dtnperf/dtnperf-server.o
dtnperf/dtnperf-server.c:36:22: fatal error: config.h: No such file or  
directory
compilation terminated.
make[1]: *** [dtnperf/dtnperf-server.o] Error 1
make[1]: Leaving directory `/home/piero/temp/DTN/DTN2/apps'
make: *** [apps] Error 2

I have verified that config.h exists in the proper directory, and  
tried to tweak the Makefile with little success. I also replicated  
this issue on three Fedora 13/14 machines.

Any suggestion?

Regards,
Piero





Received: from asmtpout027.mac.com (asmtpout027.mac.com [17.148.16.102]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGK4f5Z030496 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 12:04:41 -0800
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp027.mac.com (Oracle Communications Messaging Exchange Server 7u4-18.01 64bit (built Jul 15 2010)) with ESMTPSA id <0LDJ007N7EF3ZM40@asmtp027.mac.com> for dtn-users@maillists.intel-research.net; Thu, 16 Dec 2010 12:04:19 -0800 (PST)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-12-16_10:2010-12-16, 2010-12-16, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1012160140
From: Darren Long <darren.long@mac.com>
In-reply-to: <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com>
Date: Thu, 16 Dec 2010 20:04:11 +0000
Message-id: <16EE9235-16EC-4DFA-8803-20D092F49B2A@mac.com>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com>
To: dtn-users@maillists.intel-research.net
X-Mailer: Apple Mail (2.1082)
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 20:04:42 -0000

The application data unit size determines the initial size of the bundle.  It then undergoes proactive or reactive fragmentation  in zero or more places during delivery attempts.

If the 'large' bundle doesn't already exist, what is there to fragment? Who knows what 'large' is?

Darren

On 16 Dec 2010, at 19:52, Victor lyamtsev wrote:

> "Fragment offset: the offset from the
>     start of the original application data unit at which the bytes
>     comprising the payload of this bundle were located"
> That just doesn't make much sense to me. The implication is that you
> have to make one large
> bundle first, then fragment it into several smaller ones.
> 
> 
> On Thu, Dec 16, 2010 at 2:44 PM, Victor lyamtsev <vlyamtsev@gmail.com> wrote:
>> (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
>> ok, yes..
>> The last thing: fragment offset "offset (within the original
>> application data unit)"
>> Does that mean "off_t" value within original payload?
>> Thanks again,
>> -V
>> 
>> 
>> On Thu, Dec 16, 2010 at 2:26 PM, Burleigh, Scott C (313B)
>> <scott.c.burleigh@jpl.nasa.gov> wrote:
>>> The former.  It's really the application data unit that gets fragmented; instead of the entire ADU becoming the payload of a single bundle, each piece of the ADU becomes the payload of a different bundle.  Each such bundle has got the "bundle is fragment" flag set and is referred to as "a fragment" -- but is still a full-fledged bundle in every way.  (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
>>> 
>>> Scott
>>> 
>>> -----Original Message-----
>>> From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]
>>> Sent: Thursday, December 16, 2010 11:19 AM
>>> To: Stephen Farrell
>>> Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
>>> Subject: Re: [dtn-users] bundle fragmentation question
>>> 
>>> Confused again...
>>> If "bundle is fragment" bit is set in bundle flags, does is mean that
>>> one large payload is broken into the several bundle units? Or, does it
>>> mean that one bundle contains several payload blocks?
>>> Thanks again,
>>> -V
>>> 
>>> On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
>>> <stephen.farrell@cs.tcd.ie> wrote:
>>>> 
>>>> Thought that was it. Of course, "last" could be ambiguous here
>>>> so just in case...
>>>> 
>>>> The "last" bundle Scott and I described is the one with its
>>>> payload bytes originally at the end of the un-fragmented
>>>> bundle's payload.
>>>> 
>>>> That fragment may or may not be the last bundle to arrive (of
>>>> the entire set that make up the original un-fragmented payload).
>>>> 
>>>> S.
>>>> 
>>>> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>>>>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>>>> 
>>>>> Scott
>>>>> 
>>>>> -----Original Message-----
>>>>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>>>>> Sent: Sunday, December 12, 2010 10:54 AM
>>>>> To: Victor lyamtsev
>>>>> Cc: dtn-users@maillists.intel-research.net
>>>>> Subject: Re: [dtn-users] bundle fragmentation question
>>>>> 
>>>>> 
>>>>> Isn't it just in the range information?
>>>>> 
>>>>> S.
>>>>> 
>>>>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>>>>> Hi All,
>>>>>> Can someone clarify what should indicate last fragment if the large
>>>>>> message is fragmented into the several bundles?
>>>>>> It's not clear from RFC5050, there's last block flag but it seems to
>>>>>> applicable to the last block in the same bundle, not to the last
>>>>>> bundle in the bundle sequence. Please, let me know...
>>>>>> Thanks,
>>>>>> -V
>>>>>> _______________________________________________
>>>>>> dtn-users mailing list
>>>>>> dtn-users@maillists.intel-research.net
>>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>> 
>>>>> _______________________________________________
>>>>> dtn-users mailing list
>>>>> dtn-users@maillists.intel-research.net
>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>> 
>>>> 
>>> 
>> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGK4Txr030483 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 12:04:29 -0800
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id oBGK4U96017269 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 15:04:30 -0500
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id oBGK4UoL017261;  Thu, 16 Dec 2010 15:04:30 -0500
Received: from IMCMBX2.MITRE.ORG ([129.83.29.209]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Thu, 16 Dec 2010 15:04:29 -0500
From: "Scott, Keith L." <kscott@mitre.org>
To: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>, Victor lyamtsev <vlyamtsev@gmail.com>
Date: Thu, 16 Dec 2010 15:04:27 -0500
Thread-Topic: [dtn-users] bundle fragmentation question
Thread-Index: AcudWtdRpMRJavsYRBOGzfLGznSLPgAAD+/QAABHOCA=
Message-ID: <0111C34BD897FD41841D60396F2AD3D304DE92C479@IMCMBX2.MITRE.ORG>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL>
In-Reply-To: <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_001E_01CB9D32.8899FD70"
MIME-Version: 1.0
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 20:04:30 -0000

------=_NextPart_000_001E_01CB9D32.8899FD70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This is just the same thing as IP fragmentation.  If the application =
submits
an ADU that for some reason needs to / has to be split, BP may form =
multiple
fragments from it.  This can happen at the source or in the network.  If =
an
ADU needs to be fragmented, the fragment offset(s) in the fragments =
indicate
where in the original ADU the piece of the ADU contained in that =
particular
fragment starts.

		--keith

-----Original Message-----
From: dtn-users-bounces@maillists.intel-research.net
[mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of
Burleigh, Scott C (313B)
Sent: Thursday, December 16, 2010 3:01 PM
To: Victor lyamtsev
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question

I don't know how you get that implication from those words, Victor: they
don't say anything at all about making one large bundle from the =
original
ADU.

You can think of the fragment offset as an off_t, sure, though of course =
BP
is language-independent.

Another way to explaining what "fragment offset" means would be to say =
that
if the fragment offset of a given bundle is N then (a) the first N bytes =
of
the original application data unit are in the payloads of one or more =
other
bundles and (b) the first byte of the payload of this bundle is the =
(N+1)th
byte of the original application data unit.

Scott

-----Original Message-----
From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]=20
Sent: Thursday, December 16, 2010 11:53 AM
To: Burleigh, Scott C (313B)
Cc: Stephen Farrell; dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question

"Fragment offset: the offset from the
      start of the original application data unit at which the bytes
      comprising the payload of this bundle were located"
That just doesn't make much sense to me. The implication is that you
have to make one large
bundle first, then fragment it into several smaller ones.


On Thu, Dec 16, 2010 at 2:44 PM, Victor lyamtsev <vlyamtsev@gmail.com>
wrote:
> (This is essentially what the second paragraph of RFC5050 section 5.8
says.)
> ok, yes..
> The last thing: fragment offset "offset (within the original
> application data unit)"
> Does that mean "off_t" value within original payload?
> Thanks again,
> -V
>
>
> On Thu, Dec 16, 2010 at 2:26 PM, Burleigh, Scott C (313B)
> <scott.c.burleigh@jpl.nasa.gov> wrote:
>> The former. =A0It's really the application data unit that gets =
fragmented;
instead of the entire ADU becoming the payload of a single bundle, each
piece of the ADU becomes the payload of a different bundle. =A0Each such
bundle has got the "bundle is fragment" flag set and is referred to as =
"a
fragment" -- but is still a full-fledged bundle in every way. =A0(This =
is
essentially what the second paragraph of RFC5050 section 5.8 says.)
>>
>> Scott
>>
>> -----Original Message-----
>> From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]
>> Sent: Thursday, December 16, 2010 11:19 AM
>> To: Stephen Farrell
>> Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
>> Subject: Re: [dtn-users] bundle fragmentation question
>>
>> Confused again...
>> If "bundle is fragment" bit is set in bundle flags, does is mean that
>> one large payload is broken into the several bundle units? Or, does =
it
>> mean that one bundle contains several payload blocks?
>> Thanks again,
>> -V
>>
>> On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
>> <stephen.farrell@cs.tcd.ie> wrote:
>>>
>>> Thought that was it. Of course, "last" could be ambiguous here
>>> so just in case...
>>>
>>> The "last" bundle Scott and I described is the one with its
>>> payload bytes originally at the end of the un-fragmented
>>> bundle's payload.
>>>
>>> That fragment may or may not be the last bundle to arrive (of
>>> the entire set that make up the original un-fragmented payload).
>>>
>>> S.
>>>
>>> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>>>> Right, if (and only if) a bundle is a fragment, then its primary =
block
will contain fragment offset and total ADU length. =A0If the sum of the
fragment offset and the bundle's payload length is equal to the total =
ADU
length, then the bundle is the last fragment.
>>>>
>>>> Scott
>>>>
>>>> -----Original Message-----
>>>> From: dtn-users-bounces@maillists.intel-research.net
[mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of =
Stephen
Farrell
>>>> Sent: Sunday, December 12, 2010 10:54 AM
>>>> To: Victor lyamtsev
>>>> Cc: dtn-users@maillists.intel-research.net
>>>> Subject: Re: [dtn-users] bundle fragmentation question
>>>>
>>>>
>>>> Isn't it just in the range information?
>>>>
>>>> S.
>>>>
>>>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>>>> Hi All,
>>>>> Can someone clarify what should indicate last fragment if the =
large
>>>>> message is fragmented into the several bundles?
>>>>> It's not clear from RFC5050, there's last block flag but it seems =
to
>>>>> applicable to the last block in the same bundle, not to the last
>>>>> bundle in the bundle sequence. Please, let me know...
>>>>> Thanks,
>>>>> -V
>>>>> _______________________________________________
>>>>> dtn-users mailing list
>>>>> dtn-users@maillists.intel-research.net
>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>
>>>
>>
>

_______________________________________________
dtn-users mailing list
dtn-users@maillists.intel-research.net
http://maillists.intel-research.net/mailman/listinfo/dtn-users

------=_NextPart_000_001E_01CB9D32.8899FD70
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKtjCCA2Iw
ggJKoAMCAQICAjaOMA0GCSqGSIb3DQEBBQUAMF0xEjAQBgNVBAoTCW1pdHJlLm9yZzEeMBwGA1UE
CxMVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MScwJQYDVQQDEx5NSVRSRSBDb3Jwb3JhdGlvbiBQcmlt
YXJ5IENBLTEwHhcNMDkxMjA0MTIwNzE5WhcNMTEwNTI4MTIwNzE5WjBWMRIwEAYDVQQKEwltaXRy
ZS5vcmcxDzANBgNVBAsTBnBlb3BsZTEWMBQGCgmSJomT8ixkAQETBmtzY290dDEXMBUGA1UEAxMO
U2NvdHQgS2VpdGggTC4wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJQWehfO+W0A21I8sjg8
6n2E2JIs1nUbSYuSBTDUv2eUi2ubxA+ZcAFl7ThAsFwIKecWjKG1XkEoty0IYRavVwY/7iq93MuC
CKvKP9AhgzU0aENaPu/d7Ch6tDda1EfklYAVXTGmvIor8Q1mAlqAtT76xwscNEJkcPHA4myTUMJb
AgMBAAGjgbYwgbMwDgYDVR0PAQH/BAQDAgXgMB0GA1UdDgQWBBSu9OuFWRi/9KVTm3I4y3KXBakg
+jAfBgNVHSMEGDAWgBSHtA9IjWIzQsEtURpIHsKeuwqxrTBEBgNVHR8EPTA7MDmgN6A1hjNodHRw
Oi8vd3d3Lm1pdHJlLm9yZy90ZWNoL21paS9wa2kvY2ExX21pdHJlX29yZy5jcmwwGwYDVR0RBBQw
EoEQa3Njb3R0QG1pdHJlLm9yZzANBgkqhkiG9w0BAQUFAAOCAQEAWfSQ+S85S0IlonyNhXRT7/Zj
ms5MVzbH7fzU6gI7ByqamE/4X42/OoV39PRSt6mU12QJX7n9JdoqTVoj20UlL4OKwqaC/97kJSVY
+tbn/z3vdqz7VwkcrzPSL5yj8BbTle3NVVLmFuUHaLDI4Zow0sz9ce5dxi5DzhQ1/YR9u+QzcsA0
GppavJwOgvfa6qbOG6nopX/HN9RGb+yhZ6MdMLcRPg3XGs/7p/63ee2OYvNNFR8REb6zXSj4mzXs
1NMBmaAFRqNKLVZBQAFJW1Lc3/Fl/n5a1ZpyrX7Vj7Qx7k68m+XIh0YLiQTgQqH8Z47hmofEwsVb
2Qq0hhMgbwIFDjCCA2QwggJMoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwWjESMBAGA1UEChMJbWl0
cmUub3JnMR4wHAYDVQQLExVDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxJDAiBgNVBAMTG01JVFJFIENv
cnBvcmF0aW9uIFJvb3QgQ0EtMTAeFw0wNjA2MDEwNDAwMDBaFw0xODA2MDEwNDAwMDBaMFoxEjAQ
BgNVBAoTCW1pdHJlLm9yZzEeMBwGA1UECxMVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MSQwIgYDVQQD
ExtNSVRSRSBDb3Jwb3JhdGlvbiBSb290IENBLTEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQCva1qWPZiEJv5vMtCbjt0cTu0Nbn15Q1cKqQBXKi8VSH9zZPmPxfWizJJ7JSqFJ5/sLUz3
NsnUVjpLYBdFcxNXnOLjXtmDPFOewm5T98NZc9wRRCiDzt4f8qsHFI19ShPiK3cN5UqtJf+i66QV
LA1S6CNL6o2eGAsAl5WnxwOh2BfcWU5fNlHDVc9KKAlDDWpHjC2LLHAUbLP4ZzMIJKcLgLKFMtgM
2AEfaSHzmi7WUdUHRCtCblrF7qzPsy/jBLFrr8VcX+mb7saq95pEOilgcix0/naW7kJfM5ph7UBB
+S1O/OhH+ZjQ4MjWnwE8A/YDrQx1OVLAOi29Bsho/l8lAgMBAAGjNTAzMBIGA1UdEwEB/wQIMAYB
Af8CAQMwHQYDVR0OBBYEFMdwUQDYTf7kAdRolsU9n5qX/nQvMA0GCSqGSIb3DQEBBQUAA4IBAQAa
+fVfCljimBlcfWwkfJXuXNKWun9xloFKjnq6SPGgAIKi5LUDil60a0NaNGoGSO3I1xzYt7ncayh2
1qXulcVTDFqubSJdv51aHTuJYcYUX72LN/gSq03UVLBCJzYm7ZLUlkb2YLo7xUeZ3coLFcT5AHR3
6kjG4cYHqXgH0liBl8jxpN0gwgaci4sgPLUj1w4t8zoKH+zxGFwXwTP/P+etQqiJZ5T00fLLm5kz
9mmnxxmmIvUGNdsCAhGhdnF24pcrR43LNgyOBJ9DPUHBNq3kUQRO48WBKxBxflOtKzsICx/HEtIA
BcZn7deADHcY9spULZfBnQYdEpyz5tgh7Y2qMIID5DCCAsygAwIBAgIBBTANBgkqhkiG9w0BAQUF
ADBaMRIwEAYDVQQKEwltaXRyZS5vcmcxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhvcml0eTEk
MCIGA1UEAxMbTUlUUkUgQ29ycG9yYXRpb24gUm9vdCBDQS0xMB4XDTA2MDYwMzE3MTMyMloXDTEy
MDYwMzE3MTMyMlowXTESMBAGA1UEChMJbWl0cmUub3JnMR4wHAYDVQQLExVDZXJ0aWZpY2F0ZSBB
dXRob3JpdHkxJzAlBgNVBAMTHk1JVFJFIENvcnBvcmF0aW9uIFByaW1hcnkgQ0EtMTCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMjwe1ZdEIKoELdLvENnbkbO3mVD54ZX5SjxTzFxhvoq
hqSJmLOp32xT7J9KvBapJRbJv1BFdiSUN3O0q8H66nvQqwm1RYe+tTsWSO351FolGrDT9iDRtfWg
H60PCKCbABLRsx3iGnEvjOQjeAtMn1AugqQWU3PWZXYy1Grbya+NOytYvu1p60bDFSoSAn4Jojv1
4lUfWHl8s3kahay8umLSQibiXdEEX8CrSkaXpOaFOuyM6+wpRw7TybO1Dk4zGAUtn0887QvsMDk6
evgN2WxMprkHAGUcJhpI1QXtkfDIl9ukdNiIoM/vdN2QC/+m6b8dA55K5UdlBa9SgRnwapkCAwEA
AaOBsTCBrjASBgNVHRMBAf8ECDAGAQH/AgECMA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUh7QP
SI1iM0LBLVEaSB7CnrsKsa0wHwYDVR0jBBgwFoAUx3BRANhN/uQB1GiWxT2fmpf+dC8wSAYDVR0f
BEEwPzA9oDugOYY3aHR0cDovL3d3dy5taXRyZS5vcmcvdGVjaC9taWkvcGtpL3Jvb3RjYTFfbWl0
cmVfb3JnLmNybDANBgkqhkiG9w0BAQUFAAOCAQEATW5u664p7N0iAj27Xl/akjdfkSQpaosf6cNy
AHu7utCytFfY1WfRNmvnNDGYkqI3XMFOa18SNjiNsMCH+sFQaO+oyDnPiIkEZQvlfGGrRpqIm6j/
/Fgz85bnf1kAM5I61Np7ofCnciRvp9ZB/+u+9i262tgiJPJrvBcqXmgeT9riCc3RPjxqPNmYslOv
NLpIifchelJhF7nIge+7RkAUcTJenj8yKwK0J3+PEpgYRQ+V2C62rnjohuxPgMw/fYoNTOlh3MVl
7adwyK1ahPw2a9eOjSWglqoPTaBNeHJqRJZZ6Vi7S55+VAWCfkAqM5m3tUiVzjsp2dFcTJxnYeza
oDGCAr0wggK5AgEBMGMwXTESMBAGA1UEChMJbWl0cmUub3JnMR4wHAYDVQQLExVDZXJ0aWZpY2F0
ZSBBdXRob3JpdHkxJzAlBgNVBAMTHk1JVFJFIENvcnBvcmF0aW9uIFByaW1hcnkgQ0EtMQICNo4w
CQYFKw4DAhoFAKCCAbAwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcN
MTAxMjE2MjAwNDI3WjAjBgkqhkiG9w0BCQQxFgQUeujC7sMFQVJ41F7J5m9xI7zlAoQwZwYJKoZI
hvcNAQkPMVowWDAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZIhvcNAwICAUAwBwYF
Kw4DAgcwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCgYIKoZIhvcNAgUwcgYJKwYBBAGCNxAEMWUw
YzBdMRIwEAYDVQQKEwltaXRyZS5vcmcxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhvcml0eTEn
MCUGA1UEAxMeTUlUUkUgQ29ycG9yYXRpb24gUHJpbWFyeSBDQS0xAgI2jjB0BgsqhkiG9w0BCRAC
CzFloGMwXTESMBAGA1UEChMJbWl0cmUub3JnMR4wHAYDVQQLExVDZXJ0aWZpY2F0ZSBBdXRob3Jp
dHkxJzAlBgNVBAMTHk1JVFJFIENvcnBvcmF0aW9uIFByaW1hcnkgQ0EtMQICNo4wDQYJKoZIhvcN
AQEBBQAEgYCJb33sIq0R67Gl5yy6DF7RxqMvOPr3pmpnCgNPOmLGXAAPIP0TRjNvw/8Axunvajqx
+wnOlN6gaNydn2Yh0SW7GBoHvCH4CLPTUXSxqvoB/9siKL6PDYgAhAJNmn+YweK+JYWLbnQXG+Ev
wSgVM2pjWRP/JSusWPP1o42Co0rokAAAAAAAAA==

------=_NextPart_000_001E_01CB9D32.8899FD70--


Received: from mail.jpl.nasa.gov (sentrion3.jpl.nasa.gov [128.149.139.109]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGK1Tl2030321 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 12:01:29 -0800
Received: from mail.jpl.nasa.gov (altvirehtstap01.jpl.nasa.gov [128.149.137.72]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id oBGK1Nmv029311 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL); Thu, 16 Dec 2010 12:01:24 -0800
Received: from ALTPHYEMBEVSP40.RES.AD.JPL ([128.149.137.86]) by ALTVIREHTSTAP01.RES.AD.JPL ([128.149.137.72]) with mapi; Thu, 16 Dec 2010 12:01:23 -0800
From: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
To: Victor lyamtsev <vlyamtsev@gmail.com>
Date: Thu, 16 Dec 2010 12:01:22 -0800
Thread-Topic: [dtn-users] bundle fragmentation question
Thread-Index: AcudWtdRpMRJavsYRBOGzfLGznSLPgAAD+/Q
Message-ID: <F25A909AA776104A92E2780BFCB3AEA8113DD989@ALTPHYEMBEVSP40.RES.AD.JPL>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com> <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com>
In-Reply-To: <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
X-Source-IP: altvirehtstap01.jpl.nasa.gov [128.149.137.72]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBGK1Tl2030321
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 20:01:29 -0000

I don't know how you get that implication from those words, Victor: they don't say anything at all about making one large bundle from the original ADU.

You can think of the fragment offset as an off_t, sure, though of course BP is language-independent.

Another way to explaining what "fragment offset" means would be to say that if the fragment offset of a given bundle is N then (a) the first N bytes of the original application data unit are in the payloads of one or more other bundles and (b) the first byte of the payload of this bundle is the (N+1)th byte of the original application data unit.

Scott

-----Original Message-----
From: Victor lyamtsev [mailto:vlyamtsev@gmail.com] 
Sent: Thursday, December 16, 2010 11:53 AM
To: Burleigh, Scott C (313B)
Cc: Stephen Farrell; dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question

"Fragment offset: the offset from the
      start of the original application data unit at which the bytes
      comprising the payload of this bundle were located"
That just doesn't make much sense to me. The implication is that you
have to make one large
bundle first, then fragment it into several smaller ones.


On Thu, Dec 16, 2010 at 2:44 PM, Victor lyamtsev <vlyamtsev@gmail.com> wrote:
> (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
> ok, yes..
> The last thing: fragment offset "offset (within the original
> application data unit)"
> Does that mean "off_t" value within original payload?
> Thanks again,
> -V
>
>
> On Thu, Dec 16, 2010 at 2:26 PM, Burleigh, Scott C (313B)
> <scott.c.burleigh@jpl.nasa.gov> wrote:
>> The former.  It's really the application data unit that gets fragmented; instead of the entire ADU becoming the payload of a single bundle, each piece of the ADU becomes the payload of a different bundle.  Each such bundle has got the "bundle is fragment" flag set and is referred to as "a fragment" -- but is still a full-fledged bundle in every way.  (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
>>
>> Scott
>>
>> -----Original Message-----
>> From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]
>> Sent: Thursday, December 16, 2010 11:19 AM
>> To: Stephen Farrell
>> Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
>> Subject: Re: [dtn-users] bundle fragmentation question
>>
>> Confused again...
>> If "bundle is fragment" bit is set in bundle flags, does is mean that
>> one large payload is broken into the several bundle units? Or, does it
>> mean that one bundle contains several payload blocks?
>> Thanks again,
>> -V
>>
>> On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
>> <stephen.farrell@cs.tcd.ie> wrote:
>>>
>>> Thought that was it. Of course, "last" could be ambiguous here
>>> so just in case...
>>>
>>> The "last" bundle Scott and I described is the one with its
>>> payload bytes originally at the end of the un-fragmented
>>> bundle's payload.
>>>
>>> That fragment may or may not be the last bundle to arrive (of
>>> the entire set that make up the original un-fragmented payload).
>>>
>>> S.
>>>
>>> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>>>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>>>
>>>> Scott
>>>>
>>>> -----Original Message-----
>>>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>>>> Sent: Sunday, December 12, 2010 10:54 AM
>>>> To: Victor lyamtsev
>>>> Cc: dtn-users@maillists.intel-research.net
>>>> Subject: Re: [dtn-users] bundle fragmentation question
>>>>
>>>>
>>>> Isn't it just in the range information?
>>>>
>>>> S.
>>>>
>>>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>>>> Hi All,
>>>>> Can someone clarify what should indicate last fragment if the large
>>>>> message is fragmented into the several bundles?
>>>>> It's not clear from RFC5050, there's last block flag but it seems to
>>>>> applicable to the last block in the same bundle, not to the last
>>>>> bundle in the bundle sequence. Please, let me know...
>>>>> Thanks,
>>>>> -V
>>>>> _______________________________________________
>>>>> dtn-users mailing list
>>>>> dtn-users@maillists.intel-research.net
>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>
>>>
>>
>



Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGJqvvp029804 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:52:57 -0800
Received: by gyg10 with SMTP id 10so1809571gyg.28 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:52:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.11.16 with SMTP id 16mr1528678ybk.272.1292529178046; Thu, 16 Dec 2010 11:52:58 -0800 (PST)
Received: by 10.150.96.13 with HTTP; Thu, 16 Dec 2010 11:52:58 -0800 (PST)
In-Reply-To: <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL> <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com>
Date: Thu, 16 Dec 2010 14:52:58 -0500
Message-ID: <AANLkTink5LB3b4-tekBwpi-R_Sdgimr=H540LA8sPdY8@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBGJqvvp029804
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 19:52:58 -0000

"Fragment offset: the offset from the
      start of the original application data unit at which the bytes
      comprising the payload of this bundle were located"
That just doesn't make much sense to me. The implication is that you
have to make one large
bundle first, then fragment it into several smaller ones.


On Thu, Dec 16, 2010 at 2:44 PM, Victor lyamtsev <vlyamtsev@gmail.com> wrote:
> (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
> ok, yes..
> The last thing: fragment offset "offset (within the original
> application data unit)"
> Does that mean "off_t" value within original payload?
> Thanks again,
> -V
>
>
> On Thu, Dec 16, 2010 at 2:26 PM, Burleigh, Scott C (313B)
> <scott.c.burleigh@jpl.nasa.gov> wrote:
>> The former.  It's really the application data unit that gets fragmented; instead of the entire ADU becoming the payload of a single bundle, each piece of the ADU becomes the payload of a different bundle.  Each such bundle has got the "bundle is fragment" flag set and is referred to as "a fragment" -- but is still a full-fledged bundle in every way.  (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
>>
>> Scott
>>
>> -----Original Message-----
>> From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]
>> Sent: Thursday, December 16, 2010 11:19 AM
>> To: Stephen Farrell
>> Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
>> Subject: Re: [dtn-users] bundle fragmentation question
>>
>> Confused again...
>> If "bundle is fragment" bit is set in bundle flags, does is mean that
>> one large payload is broken into the several bundle units? Or, does it
>> mean that one bundle contains several payload blocks?
>> Thanks again,
>> -V
>>
>> On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
>> <stephen.farrell@cs.tcd.ie> wrote:
>>>
>>> Thought that was it. Of course, "last" could be ambiguous here
>>> so just in case...
>>>
>>> The "last" bundle Scott and I described is the one with its
>>> payload bytes originally at the end of the un-fragmented
>>> bundle's payload.
>>>
>>> That fragment may or may not be the last bundle to arrive (of
>>> the entire set that make up the original un-fragmented payload).
>>>
>>> S.
>>>
>>> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>>>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>>>
>>>> Scott
>>>>
>>>> -----Original Message-----
>>>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>>>> Sent: Sunday, December 12, 2010 10:54 AM
>>>> To: Victor lyamtsev
>>>> Cc: dtn-users@maillists.intel-research.net
>>>> Subject: Re: [dtn-users] bundle fragmentation question
>>>>
>>>>
>>>> Isn't it just in the range information?
>>>>
>>>> S.
>>>>
>>>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>>>> Hi All,
>>>>> Can someone clarify what should indicate last fragment if the large
>>>>> message is fragmented into the several bundles?
>>>>> It's not clear from RFC5050, there's last block flag but it seems to
>>>>> applicable to the last block in the same bundle, not to the last
>>>>> bundle in the bundle sequence. Please, let me know...
>>>>> Thanks,
>>>>> -V
>>>>> _______________________________________________
>>>>> dtn-users mailing list
>>>>> dtn-users@maillists.intel-research.net
>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>
>>>
>>
>



Received: from mail-yi0-f41.google.com (mail-yi0-f41.google.com [209.85.218.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGJi24c029295 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:44:03 -0800
Received: by yia25 with SMTP id 25so18372yia.28 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:44:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.11.16 with SMTP id 16mr1513882ybk.272.1292528643447; Thu, 16 Dec 2010 11:44:03 -0800 (PST)
Received: by 10.150.96.13 with HTTP; Thu, 16 Dec 2010 11:44:03 -0800 (PST)
In-Reply-To: <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com> <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL>
Date: Thu, 16 Dec 2010 14:44:03 -0500
Message-ID: <AANLkTinz4BzhAo06ZPErNjnO7TiF3us6AvAT=1VbmS4Z@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBGJi24c029295
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 19:44:04 -0000

(This is essentially what the second paragraph of RFC5050 section 5.8 says.)
ok, yes..
The last thing: fragment offset "offset (within the original
application data unit)"
Does that mean "off_t" value within original payload?
Thanks again,
-V


On Thu, Dec 16, 2010 at 2:26 PM, Burleigh, Scott C (313B)
<scott.c.burleigh@jpl.nasa.gov> wrote:
> The former.  It's really the application data unit that gets fragmented; instead of the entire ADU becoming the payload of a single bundle, each piece of the ADU becomes the payload of a different bundle.  Each such bundle has got the "bundle is fragment" flag set and is referred to as "a fragment" -- but is still a full-fledged bundle in every way.  (This is essentially what the second paragraph of RFC5050 section 5.8 says.)
>
> Scott
>
> -----Original Message-----
> From: Victor lyamtsev [mailto:vlyamtsev@gmail.com]
> Sent: Thursday, December 16, 2010 11:19 AM
> To: Stephen Farrell
> Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
> Subject: Re: [dtn-users] bundle fragmentation question
>
> Confused again...
> If "bundle is fragment" bit is set in bundle flags, does is mean that
> one large payload is broken into the several bundle units? Or, does it
> mean that one bundle contains several payload blocks?
> Thanks again,
> -V
>
> On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
> <stephen.farrell@cs.tcd.ie> wrote:
>>
>> Thought that was it. Of course, "last" could be ambiguous here
>> so just in case...
>>
>> The "last" bundle Scott and I described is the one with its
>> payload bytes originally at the end of the un-fragmented
>> bundle's payload.
>>
>> That fragment may or may not be the last bundle to arrive (of
>> the entire set that make up the original un-fragmented payload).
>>
>> S.
>>
>> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>>
>>> Scott
>>>
>>> -----Original Message-----
>>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>>> Sent: Sunday, December 12, 2010 10:54 AM
>>> To: Victor lyamtsev
>>> Cc: dtn-users@maillists.intel-research.net
>>> Subject: Re: [dtn-users] bundle fragmentation question
>>>
>>>
>>> Isn't it just in the range information?
>>>
>>> S.
>>>
>>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>>> Hi All,
>>>> Can someone clarify what should indicate last fragment if the large
>>>> message is fragmented into the several bundles?
>>>> It's not clear from RFC5050, there's last block flag but it seems to
>>>> applicable to the last block in the same bundle, not to the last
>>>> bundle in the bundle sequence. Please, let me know...
>>>> Thanks,
>>>> -V
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>
>>> _______________________________________________
>>> dtn-users mailing list
>>> dtn-users@maillists.intel-research.net
>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>
>>
>



Received: from mail.jpl.nasa.gov (sentrion3.jpl.nasa.gov [128.149.139.109]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGJQutS028378 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:26:56 -0800
Received: from mail.jpl.nasa.gov (altvirehtstap02.jpl.nasa.gov [128.149.137.73]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id oBGJQpgb005021 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL); Thu, 16 Dec 2010 11:26:51 -0800
Received: from ALTPHYEMBEVSP40.RES.AD.JPL ([128.149.137.86]) by ALTVIREHTSTAP02.RES.AD.JPL ([128.149.137.73]) with mapi; Thu, 16 Dec 2010 11:26:50 -0800
From: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
To: Victor lyamtsev <vlyamtsev@gmail.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Date: Thu, 16 Dec 2010 11:26:50 -0800
Thread-Topic: [dtn-users] bundle fragmentation question
Thread-Index: AcudViX2vFOecN0+QhCM25XTkw2GcwAAEIvA
Message-ID: <F25A909AA776104A92E2780BFCB3AEA8113DD985@ALTPHYEMBEVSP40.RES.AD.JPL>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie> <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com>
In-Reply-To: <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
X-Source-IP: altvirehtstap02.jpl.nasa.gov [128.149.137.73]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBGJQutS028378
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 19:26:56 -0000

The former.  It's really the application data unit that gets fragmented; instead of the entire ADU becoming the payload of a single bundle, each piece of the ADU becomes the payload of a different bundle.  Each such bundle has got the "bundle is fragment" flag set and is referred to as "a fragment" -- but is still a full-fledged bundle in every way.  (This is essentially what the second paragraph of RFC5050 section 5.8 says.)

Scott

-----Original Message-----
From: Victor lyamtsev [mailto:vlyamtsev@gmail.com] 
Sent: Thursday, December 16, 2010 11:19 AM
To: Stephen Farrell
Cc: Burleigh, Scott C (313B); dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question

Confused again...
If "bundle is fragment" bit is set in bundle flags, does is mean that
one large payload is broken into the several bundle units? Or, does it
mean that one bundle contains several payload blocks?
Thanks again,
-V

On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
<stephen.farrell@cs.tcd.ie> wrote:
>
> Thought that was it. Of course, "last" could be ambiguous here
> so just in case...
>
> The "last" bundle Scott and I described is the one with its
> payload bytes originally at the end of the un-fragmented
> bundle's payload.
>
> That fragment may or may not be the last bundle to arrive (of
> the entire set that make up the original un-fragmented payload).
>
> S.
>
> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>
>> Scott
>>
>> -----Original Message-----
>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>> Sent: Sunday, December 12, 2010 10:54 AM
>> To: Victor lyamtsev
>> Cc: dtn-users@maillists.intel-research.net
>> Subject: Re: [dtn-users] bundle fragmentation question
>>
>>
>> Isn't it just in the range information?
>>
>> S.
>>
>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>> Hi All,
>>> Can someone clarify what should indicate last fragment if the large
>>> message is fragmented into the several bundles?
>>> It's not clear from RFC5050, there's last block flag but it seems to
>>> applicable to the last block in the same bundle, not to the last
>>> bundle in the bundle sequence. Please, let me know...
>>> Thanks,
>>> -V
>>> _______________________________________________
>>> dtn-users mailing list
>>> dtn-users@maillists.intel-research.net
>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
>



Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBGJJKfF027993 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:19:20 -0800
Received: by ywj3 with SMTP id 3so1810792ywj.28 for <dtn-users@maillists.intel-research.net>; Thu, 16 Dec 2010 11:19:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.11.16 with SMTP id 16mr1472537ybk.272.1292527160966; Thu, 16 Dec 2010 11:19:20 -0800 (PST)
Received: by 10.150.96.13 with HTTP; Thu, 16 Dec 2010 11:19:20 -0800 (PST)
In-Reply-To: <4D051FFA.3070808@cs.tcd.ie>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL> <4D051FFA.3070808@cs.tcd.ie>
Date: Thu, 16 Dec 2010 14:19:20 -0500
Message-ID: <AANLkTikWF3mCyYAc3fKHQZ3uQjuUu+0TH-VW54mKL5D0@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBGJJKfF027993
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>, "Burleigh, Scott C \(313B\)" <scott.c.burleigh@jpl.nasa.gov>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Dec 2010 19:19:21 -0000

Confused again...
If "bundle is fragment" bit is set in bundle flags, does is mean that
one large payload is broken into the several bundle units? Or, does it
mean that one bundle contains several payload blocks?
Thanks again,
-V

On Sun, Dec 12, 2010 at 2:18 PM, Stephen Farrell
<stephen.farrell@cs.tcd.ie> wrote:
>
> Thought that was it. Of course, "last" could be ambiguous here
> so just in case...
>
> The "last" bundle Scott and I described is the one with its
> payload bytes originally at the end of the un-fragmented
> bundle's payload.
>
> That fragment may or may not be the last bundle to arrive (of
> the entire set that make up the original un-fragmented payload).
>
> S.
>
> On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
>> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
>>
>> Scott
>>
>> -----Original Message-----
>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
>> Sent: Sunday, December 12, 2010 10:54 AM
>> To: Victor lyamtsev
>> Cc: dtn-users@maillists.intel-research.net
>> Subject: Re: [dtn-users] bundle fragmentation question
>>
>>
>> Isn't it just in the range information?
>>
>> S.
>>
>> On 11/12/10 17:08, Victor lyamtsev wrote:
>>> Hi All,
>>> Can someone clarify what should indicate last fragment if the large
>>> message is fragmented into the several bundles?
>>> It's not clear from RFC5050, there's last block flag but it seems to
>>> applicable to the last block in the same bundle, not to the last
>>> bundle in the bundle sequence. Please, let me know...
>>> Thanks,
>>> -V
>>> _______________________________________________
>>> dtn-users mailing list
>>> dtn-users@maillists.intel-research.net
>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
>



Received: from mail-bw0-f67.google.com (mail-bw0-f67.google.com [209.85.214.67]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBDJ2lPc024232 for <dtn-users@maillists.intel-research.net>; Mon, 13 Dec 2010 11:02:47 -0800
Received: by bwz3 with SMTP id 3so2483774bwz.10 for <dtn-users@maillists.intel-research.net>; Mon, 13 Dec 2010 11:02:49 -0800 (PST)
Received: by 10.204.152.148 with SMTP id g20mr1302455bkw.210.1292260566197; Mon, 13 Dec 2010 09:16:06 -0800 (PST)
Received: from MICROSOF-4E83A4 (254-44-124-91.pool.ukrtel.net [91.124.44.254]) by mx.google.com with ESMTPS id q18sm194903bka.15.2010.12.13.09.16.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 09:16:05 -0800 (PST)
Message-ID: <4d0654d5.1211cc0a.4d3c.19a2@mx.google.com>
From: "Vovan" <sasmekoll@gmail.com>
To: "dtn-users@maillists.intel-re" <dtn-users@maillists.intel-research.net>
Content-Type: multipart/alternative; charset="utf-8"; boundary="GYWpcQqZmntUQeZJ=_8dp0qtuJkb2vieHH"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Organization: Vovan
Date: Mon, 13 Dec 2010 05:49:20 +0300
Subject: [dtn-users] =?utf-8?b?0J3QvtCy0L7QtSDRgdC+0L7QsdGJ0LXQvdC40LU=?=
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 13 Dec 2010 19:02:48 -0000

This is a multi-part message in MIME format

--GYWpcQqZmntUQeZJ=_8dp0qtuJkb2vieHH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

http://samec.org.ua/

--GYWpcQqZmntUQeZJ=_8dp0qtuJkb2vieHH
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META content=3D"MSHTML 6.00.6000.20900" name=3DGENERATOR></HEAD>
<BODY><A href=3D"http://samec.org.ua/">http://samec.org.ua/</A></BODY>=
</HTML>

--GYWpcQqZmntUQeZJ=_8dp0qtuJkb2vieHH--



Received: from scss.tcd.ie (hermes.cs.tcd.ie [134.226.32.56]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBCJIKXC013035 for <dtn-users@maillists.intel-research.net>; Sun, 12 Dec 2010 11:18:20 -0800
Received: from localhost (localhost [127.0.0.1]) by hermes.scss.tcd.ie (Postfix) with ESMTP id 8005B3E4099; Sun, 12 Dec 2010 19:18:21 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from scss.tcd.ie ([127.0.0.1]) by localhost (scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id ANNonbpxHXjp; Sun, 12 Dec 2010 19:18:21 +0000 (GMT)
Received: from [10.87.48.5] (dsl-102-234.cust.imagine.ie [87.232.102.234]) by smtp.scss.tcd.ie (Postfix) with ESMTPSA id ABAA43E4098; Sun, 12 Dec 2010 19:18:20 +0000 (GMT)
Message-ID: <4D051FFA.3070808@cs.tcd.ie>
Date: Sun, 12 Dec 2010 19:18:18 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie> <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL>
In-Reply-To: <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>, Victor lyamtsev <vlyamtsev@gmail.com>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sun, 12 Dec 2010 19:18:21 -0000

Thought that was it. Of course, "last" could be ambiguous here
so just in case...

The "last" bundle Scott and I described is the one with its
payload bytes originally at the end of the un-fragmented
bundle's payload.

That fragment may or may not be the last bundle to arrive (of
the entire set that make up the original un-fragmented payload).

S.

On 12/12/10 19:09, Burleigh, Scott C (313B) wrote:
> Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.
> 
> Scott
> 
> -----Original Message-----
> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
> Sent: Sunday, December 12, 2010 10:54 AM
> To: Victor lyamtsev
> Cc: dtn-users@maillists.intel-research.net
> Subject: Re: [dtn-users] bundle fragmentation question
> 
> 
> Isn't it just in the range information?
> 
> S.
> 
> On 11/12/10 17:08, Victor lyamtsev wrote:
>> Hi All,
>> Can someone clarify what should indicate last fragment if the large 
>> message is fragmented into the several bundles?
>> It's not clear from RFC5050, there's last block flag but it seems to 
>> applicable to the last block in the same bundle, not to the last 
>> bundle in the bundle sequence. Please, let me know...
>> Thanks,
>> -V
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
> 


Received: from mail.jpl.nasa.gov (mailhost.jpl.nasa.gov [128.149.139.109]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBCJ9ZeA012539 for <dtn-users@maillists.intel-research.net>; Sun, 12 Dec 2010 11:09:35 -0800
Received: from mail.jpl.nasa.gov (altvirehtstap02.jpl.nasa.gov [128.149.137.73]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id oBCJ9U8g002994 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL); Sun, 12 Dec 2010 11:09:31 -0800
Received: from ALTPHYEMBEVSP40.RES.AD.JPL ([128.149.137.86]) by ALTVIREHTSTAP02.RES.AD.JPL ([128.149.137.73]) with mapi; Sun, 12 Dec 2010 11:09:23 -0800
From: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>, Victor lyamtsev <vlyamtsev@gmail.com>
Date: Sun, 12 Dec 2010 11:09:26 -0800
Thread-Topic: [dtn-users] bundle fragmentation question
Thread-Index: AcuaLpuZt4lymRouQ2WlRAKUGcEmYAAAMvdQ
Message-ID: <F25A909AA776104A92E2780BFCB3AEA8113DD677@ALTPHYEMBEVSP40.RES.AD.JPL>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com> <4D051A39.1000406@cs.tcd.ie>
In-Reply-To: <4D051A39.1000406@cs.tcd.ie>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-Source-IP: altvirehtstap02.jpl.nasa.gov [128.149.137.73]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id oBCJ9ZeA012539
Cc: "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sun, 12 Dec 2010 19:09:35 -0000

Right, if (and only if) a bundle is a fragment, then its primary block will contain fragment offset and total ADU length.  If the sum of the fragment offset and the bundle's payload length is equal to the total ADU length, then the bundle is the last fragment.

Scott

-----Original Message-----
From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
Sent: Sunday, December 12, 2010 10:54 AM
To: Victor lyamtsev
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question


Isn't it just in the range information?

S.

On 11/12/10 17:08, Victor lyamtsev wrote:
> Hi All,
> Can someone clarify what should indicate last fragment if the large 
> message is fragmented into the several bundles?
> It's not clear from RFC5050, there's last block flag but it seems to 
> applicable to the last block in the same bundle, not to the last 
> bundle in the bundle sequence. Please, let me know...
> Thanks,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
> 
_______________________________________________
dtn-users mailing list
dtn-users@maillists.intel-research.net
http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from scss.tcd.ie (hermes.cs.tcd.ie [134.226.32.56]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBCIrnnZ011672 for <dtn-users@maillists.intel-research.net>; Sun, 12 Dec 2010 10:53:49 -0800
Received: from localhost (localhost [127.0.0.1]) by hermes.scss.tcd.ie (Postfix) with ESMTP id A633F3E408C; Sun, 12 Dec 2010 18:53:47 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from scss.tcd.ie ([127.0.0.1]) by localhost (scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id UV8v7eqC7cmr; Sun, 12 Dec 2010 18:53:47 +0000 (GMT)
Received: from [10.87.48.5] (dsl-102-234.cust.imagine.ie [87.232.102.234]) by smtp.scss.tcd.ie (Postfix) with ESMTPSA id A9F2A3E4089; Sun, 12 Dec 2010 18:53:46 +0000 (GMT)
Message-ID: <4D051A39.1000406@cs.tcd.ie>
Date: Sun, 12 Dec 2010 18:53:45 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com>
In-Reply-To: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sun, 12 Dec 2010 18:53:50 -0000

Isn't it just in the range information?

S.

On 11/12/10 17:08, Victor lyamtsev wrote:
> Hi All,
> Can someone clarify what should indicate last fragment if the large
> message is fragmented into the several bundles?
> It's not clear from RFC5050, there's last block flag but it seems to
> applicable to the last block in the same bundle, not to the last
> bundle in the bundle sequence. Please, let me know...
> Thanks,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
> 


Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.161.174]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id oBBH8gIH029065 for <dtn-users@maillists.intel-research.net>; Sat, 11 Dec 2010 09:08:42 -0800
Received: by gxk3 with SMTP id 3so2635043gxk.33 for <dtn-users@maillists.intel-research.net>; Sat, 11 Dec 2010 09:08:43 -0800 (PST)
MIME-Version: 1.0
Received: by 10.151.42.18 with SMTP id u18mr3408854ybj.158.1292087323182; Sat, 11 Dec 2010 09:08:43 -0800 (PST)
Received: by 10.150.96.13 with HTTP; Sat, 11 Dec 2010 09:08:43 -0800 (PST)
Date: Sat, 11 Dec 2010 12:08:43 -0500
Message-ID: <AANLkTi=8qwXpQ7KdXgVo8dsfC14kW7GBm2uhXSgOAZnK@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] bundle fragmentation question
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sat, 11 Dec 2010 17:08:42 -0000

Hi All,
Can someone clarify what should indicate last fragment if the large
message is fragmented into the several bundles?
It's not clear from RFC5050, there's last block flag but it seems to
applicable to the last block in the same bundle, not to the last
bundle in the bundle sequence. Please, let me know...
Thanks,
-V

