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

List:       ipsec-tools-devel
Subject:    [Ipsec-tools-devel] Small message alteration for Racoon.
From:       M E Andersson <debian () gisladisker ! se>
Date:       2011-02-23 10:56:20
Message-ID: 20110223105620.GA17744 () mea ! homelinux ! org
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hello there,

in debugging the functionality of Racoon for GNU/kFreeBSD
I repeatedly come across four particularly annoying messages,
which are preferably reconsidered. I include a patch against
present CVS. The changes are textual, except one promotion
from LLV_ERROR to LLV_DEBUG.

Best regards,
  Mats Erik Andersson, DM

["small_message_clean_up_for_racoon.diff" (text/x-diff)]

Index: src/racoon/isakmp.c
===================================================================
RCS file: /cvsroot/src/crypto/dist/ipsec-tools/src/racoon/isakmp.c,v
retrieving revision 1.67
diff -u -r1.67 isakmp.c
--- src/racoon/isakmp.c	2 Feb 2011 15:21:34 -0000	1.67
+++ src/racoon/isakmp.c	23 Feb 2011 10:41:04 -0000
@@ -3422,7 +3422,7 @@
 	dst = iph2->dst;
 
 	plog(LLV_INFO, LOCATION, NULL,
-		 "generated policy, deleting it.\n");
+		 "deleting a generated policy.\n");
 
 	memset(&spidx, 0, sizeof(spidx));
 	iph2->spidx_gen = (caddr_t )&spidx;
Index: src/racoon/pfkey.c
===================================================================
RCS file: /cvsroot/src/crypto/dist/ipsec-tools/src/racoon/pfkey.c,v
retrieving revision 1.54
diff -u -r1.54 pfkey.c
--- src/racoon/pfkey.c	12 Nov 2010 10:36:37 -0000	1.54
+++ src/racoon/pfkey.c	23 Feb 2011 10:41:05 -0000
@@ -231,7 +231,7 @@
 		}
 	}
 
-	plog(LLV_DEBUG, LOCATION, NULL, "get pfkey %s message\n",
+	plog(LLV_DEBUG, LOCATION, NULL, "got pfkey %s message\n",
 		s_pfkey_type(msg->sadb_msg_type));
 	plogdump(LLV_DEBUG2, msg, msg->sadb_msg_len << 3);
 
@@ -2344,8 +2344,8 @@
 
 	sp = getsp(&spidx);
 	if (sp == NULL) {
-		plog(LLV_ERROR, LOCATION, NULL,
-			"such policy does not already exist: \"%s\"\n",
+		plog(LLV_DEBUG, LOCATION, NULL,
+			"this policy did not exist for removal: \"%s\"\n",
 			spidx2str(&spidx));
 	} else {
 		/* preserve hints before deleting the SP */
@@ -3611,8 +3611,8 @@
 		break;
 	case IPSECDOI_PROTO_IPCOMP:
 		plog(LLV_DEBUG, LOCATION, NULL,
-			"compression algorithm can not be checked "
-			"because sadb message doesn't support it.\n");
+			"no check of compression algorithm; "
+			"not supported in sadb message.\n");
 		return 0;
 	default:
 		plog(LLV_ERROR, LOCATION, NULL,

["signature.asc" (application/pgp-signature)]
[Attachment #7 (--===============8325000412160925229==)]
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 

_______________________________________________
Ipsec-tools-devel mailing list
Ipsec-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipsec-tools-devel


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

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