From nobody@FreeBSD.org  Tue Oct 13 08:54:41 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6311D106568D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Oct 2009 08:54:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5161E8FC24
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Oct 2009 08:54:41 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9D8seFQ076227
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Oct 2009 08:54:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9D8seXJ076225;
	Tue, 13 Oct 2009 08:54:40 GMT
	(envelope-from nobody)
Message-Id: <200910130854.n9D8seXJ076225@www.freebsd.org>
Date: Tue, 13 Oct 2009 08:54:40 GMT
From: Jens Kassel <jens.kassel@birdstep.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfilter ioctl SIOCDELST broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139565
>Category:       kern
>Synopsis:       [ipfilter] ipfilter ioctl SIOCDELST broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    cy
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 13 09:00:07 UTC 2009
>Closed-Date:    
>Last-Modified:  Wed Jul 03 05:22:21 UTC 2013
>Originator:     Jens Kassel
>Release:        FreeBSD 7.2 release
>Organization:
Birdstep
>Environment:
FreeBSD h167.servicefactory.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
ioctl SIOCDELST always return with error "no such process".
>How-To-Repeat:

>Fix:
Apply the following patch:

--- sys/contrib/ipfilter/netinet/ip_state.c 	2009-10-13 08:03:03.000000000 +0200
+++ sys/contrib/ipfilter/netinet/ip_state.c	2009-10-13 08:04:19.000000000 +0200
@@ -411,7 +411,7 @@
 		if ((sp->is_p == st.is_p) && (sp->is_v == st.is_v) &&
 		    !bcmp((caddr_t)&sp->is_src, (caddr_t)&st.is_src,
 			  sizeof(st.is_src)) &&
-		    !bcmp((caddr_t)&sp->is_dst, (caddr_t)&st.is_src,
+		    !bcmp((caddr_t)&sp->is_dst, (caddr_t)&st.is_dst,
 			  sizeof(st.is_dst)) &&
 		    !bcmp((caddr_t)&sp->is_ps, (caddr_t)&st.is_ps,
 			  sizeof(st.is_ps))) {


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Oct 15 01:00:16 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139565 
Responsible-Changed-From-To: freebsd-net->cy 
Responsible-Changed-By: cy 
Responsible-Changed-When: Wed Jul 3 05:22:06 UTC 2013 
Responsible-Changed-Why:  
Mine. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139565 
>Unformatted:
