[prev in list] [next in list] [prev in thread] [next in thread] 

List:       prelude-cvslog
Subject:    [prelude-cvslog] r4544 - trunk/libprelude/src
From:       noreply () prelude-ids ! org
Date:       2004-12-09 7:59:47
Message-ID: 20041209075947.7AFD23B41AC () mail ! prelude-ids ! org
[Download RAW message or body]

Author: yoann
Date: 2004-12-09 08:59:47 +0100 (Thu, 09 Dec 2004)
New Revision: 4544

Modified:
   trunk/libprelude/src/prelude-option-wide.c
Log:
Set HOP after the target_id list.



Modified: trunk/libprelude/src/prelude-option-wide.c
===================================================================
--- trunk/libprelude/src/prelude-option-wide.c	2004-12-09 07:59:11 UTC (rev 4543)
+++ trunk/libprelude/src/prelude-option-wide.c	2004-12-09 07:59:47 UTC (rev 4544)
@@ -407,8 +407,7 @@
          * the caller is supposed to provide a full path,
          * from him to the destination, to the original hop is 1.
          */
-        hop = htonl(1); 
-        prelude_msgbuf_set(msgbuf, PRELUDE_MSG_OPTION_HOP, sizeof(hop), &hop);
+        hop = htonl(1);
 
         for ( i = 0; i < size; i++ )
                 target_id[i] = prelude_hton64(target_id[i]);
@@ -416,7 +415,8 @@
         request_id = htonl(request_id);
         prelude_msgbuf_set(msgbuf, PRELUDE_MSG_OPTION_REQUEST_ID, sizeof(request_id), &request_id);
         prelude_msgbuf_set(msgbuf, PRELUDE_MSG_OPTION_TARGET_ID, i * sizeof(*target_id), target_id);
-
+        prelude_msgbuf_set(msgbuf, PRELUDE_MSG_OPTION_HOP, sizeof(hop), &hop);
+        
         return 0;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic