From owner-cvs-all@FreeBSD.ORG Sun Apr 9 19:11:46 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05DA516A400; Sun, 9 Apr 2006 19:11:46 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C824543D46; Sun, 9 Apr 2006 19:11:45 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k39JBjiJ092326; Sun, 9 Apr 2006 19:11:45 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k39JBjWI092325; Sun, 9 Apr 2006 19:11:45 GMT (envelope-from pjd) Message-Id: <200604091911.k39JBjWI092325@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 9 Apr 2006 19:11:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netipsec ipsec.c ipsec.h xform_ah.c xform_esp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 19:11:46 -0000 pjd 2006-04-09 19:11:45 UTC FreeBSD src repository Modified files: sys/netipsec ipsec.c ipsec.h xform_ah.c xform_esp.c Log: Introduce two new sysctls: net.inet.ipsec.test_replay - When set to 1, IPsec will send packets with the same sequence number. This allows to verify if the other side has proper replay attacks detection. net.inet.ipsec.test_integrity - When set 1, IPsec will send packets with corrupted HMAC. This allows to verify if the other side properly detects modified packets. I used the first one to discover that we don't have proper replay attacks detection in ESP (in fast_ipsec(4)). Revision Changes Path 1.15 +15 -0 src/sys/netipsec/ipsec.c 1.10 +2 -0 src/sys/netipsec/ipsec.h 1.11 +15 -1 src/sys/netipsec/xform_ah.c 1.16 +22 -1 src/sys/netipsec/xform_esp.c