Change fprobe-ulog to use the new vserver.h file.
authorsapanb <sapanb@8c455092-636d-4788-adf5-e71def0336e8>
Wed, 13 Jan 2010 04:05:25 +0000 (04:05 +0000)
committersapanb <sapanb@8c455092-636d-4788-adf5-e71def0336e8>
Wed, 13 Jan 2010 04:05:25 +0000 (04:05 +0000)
git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@16578 8c455092-636d-4788-adf5-e71def0336e8

src/fprobe-ulog.c
src/vserver.h

index c744c01..c8b5c25 100644 (file)
@@ -1159,8 +1159,8 @@ void *cap_thread()
                        flow->xid=0;
 
                        if (ulog_msg->mark > 0) {
-                               flow->xid = get_vhi_name(ulog_msg->mark);
-                               challenge = get_vhi_name(ulog_msg->mark);
+                /* flow->xid is really the slice id :-/ */
+                               flow->xid = xid_to_slice_id(ulog_msg->mark);
                        }
 
                        if (flow->xid < 1 || flow->xid!=challenge) 
index afeebf2..6037db3 100644 (file)
@@ -53,6 +53,8 @@ uint32_t xid_to_slice_id_slow(unsigned int xid) {
         fscanf(fp,"%u",&slice_id);
         set_hash_entry(xid, slice_id);
     }
+    else
+        slice_id = xid; // Let's leave some evidence behind, even if it's imperfect.
     fclose(fp);
     return slice_id;
 }