Hi,

Just found that tag-mask action didn't work in flow-xlate and the problem 
was in lib/ftxlate.c function eval_tag_mask() which was cloned from 
eval_ip_privacy_mask but the masked flow fields wasnt changed ;-)

This patch is also available at http://wiki.version6.net/Patches page

---
Cougar
diff -urd flow-tools-0.67.orig/ChangeLog flow-tools-0.67.new/ChangeLog
--- flow-tools-0.67.orig/ChangeLog      2003-12-04 08:12:50.000000000 +0200
+++ flow-tools-0.67.new/ChangeLog       2004-10-15 11:36:57.420713415 +0300
@@ -1,3 +1,5 @@
+* flow-xlate: tag-mask fix - Cougar <[EMAIL PROTECTED]>
+
 * 12-4-2003 flow-tools 0.67 released. 
 
 * flow-export: pgsql support from [EMAIL PROTECTED]
diff -urd flow-tools-0.67.orig/lib/ftxlate.c flow-tools-0.67.new/lib/ftxlate.c
--- flow-tools-0.67.orig/lib/ftxlate.c  2003-11-25 07:41:33.000000000 +0200
+++ flow-tools-0.67.new/lib/ftxlate.c   2004-10-15 11:32:56.774017333 +0300
@@ -1155,8 +1155,8 @@
 
   ftxtm = ftxa->action;
 
-  *((u_int32*)(rec+(*fo).srcaddr)) &= ftxtm->src_mask;
-  *((u_int32*)(rec+(*fo).dstaddr)) &= ftxtm->dst_mask;
+  *((u_int32*)(rec+(*fo).src_tag)) &= ftxtm->src_mask;
+  *((u_int32*)(rec+(*fo).dst_tag)) &= ftxtm->dst_mask;
 
 } /*  eval_tag_mask */
 

Attachment: [EMAIL PROTECTED]
Description: application/loaf

_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to