From nobody@FreeBSD.org  Sun Feb  9 00:14:14 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id DF8E1BEB
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Feb 2014 00:14:14 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id C93DF1C1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Feb 2014 00:14:14 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s190EEYa050452
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 9 Feb 2014 00:14:14 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s190EEJA050447;
	Sun, 9 Feb 2014 00:14:14 GMT
	(envelope-from nobody)
Message-Id: <201402090014.s190EEJA050447@cgiserv.freebsd.org>
Date: Sun, 9 Feb 2014 00:14:14 GMT
From: Marcin Mazur <willyvmm@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186570
>Category:       kern
>Synopsis:       [ipfw] ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    melifaro
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 09 00:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Apr 20 00:56:37 UTC 2014
>Originator:     Marcin Mazur
>Release:        9.2 RELEASE
>Organization:
>Environment:
FreeBSD browar.ITit.dk 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I just upgraded from 9.0 to 9.2, and lost contact to server, finally after investigation i found that ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic.

>How-To-Repeat:
ipfw table 4 add 1.2.3.4/24
ipfw table 4 list
1.2.3.0/24 0
ipfw table 4 add 1.2.3/24
ipfw table 4 list
::/0 0
1.2.3.0/24 0

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->melifaro 
Responsible-Changed-By: melifaro 
Responsible-Changed-When: Mon Feb 10 15:03:01 UTC 2014 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186570 

From: Mark Linimon <linimon@lonesome.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/186570: ipfw interprets incomplete (3 octets) ip in a table
 as an wildcard that match whole traffic.
Date: Mon, 24 Feb 2014 23:17:38 -0600

 ----- Forwarded message from "Alexander V. Chernikov" <melifaro@FreeBSD.org> -----
 
 Date: Mon, 10 Feb 2014 19:05:33 +0400
 From: "Alexander V. Chernikov" <melifaro@FreeBSD.org>
 To: melifaro@FreeBSD.org, melifaro@FreeBSD.org, freebsd-bugs@FreeBSD.org, melifaro@FreeBSD.org
 Subject: Re: kern/186570: ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole
 	traffic.
 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1
 
 This problem is already fixed in HEAD, see r258677.
 I'll try to merge this to 10/ and 9/ soon.
 
 ----- End forwarded message -----
>Unformatted:
