From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 30 12:50:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9C5D989F for ; Wed, 30 Oct 2013 12:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 621CA2E45 for ; Wed, 30 Oct 2013 12:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9UCo0I9093515 for ; Wed, 30 Oct 2013 12:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9UCo0jG093514; Wed, 30 Oct 2013 12:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 30 Oct 2013 12:50:00 GMT Resent-Message-Id: <201310301250.r9UCo0jG093514@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, yuri golovko 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 ESMTP id EEEA959D for ; Wed, 30 Oct 2013 12:46:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD5502E15 for ; Wed, 30 Oct 2013 12:46:08 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9UCk8wC087847 for ; Wed, 30 Oct 2013 12:46:08 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9UCk8ER087764; Wed, 30 Oct 2013 12:46:08 GMT (envelope-from nobody) Message-Id: <201310301246.r9UCk8ER087764@oldred.freebsd.org> Date: Wed, 30 Oct 2013 12:46:08 GMT From: yuri golovko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/183479: ipfw table contains duplicate entry. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 12:50:00 -0000 >Number: 183479 >Category: kern >Synopsis: ipfw table contains duplicate entry. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 30 12:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: yuri golovko >Release: 8.4-STABLE >Organization: >Environment: root@gate1:/usr/adm/nagios # uname -a FreeBSD gate1.xc 8.4-STABLE FreeBSD 8.4-STABLE #0 r251935M: Tue Jun 18 18:55:20 EEST 2013 root@gate3.xc:/usr/obj/usr/src/sys/gate amd64 >Description: root@gate1:/usr/adm/nagios # ipfw table 20 list | grep 192.168.179.220 192.168.179.220/32 0 192.168.179.220/32 0 root@gate1:/usr/adm/nagios # >How-To-Repeat: We use this function to add entry to ipfw table. But we can't repeat the problem on tests. int ipfw_add(char *ip,int table,int value) { ipfw_table_entry ent; ent.tbl = table; // table number inet_aton(ip,(struct in_addr*)&ent.addr); // ip address ent.masklen = 32; // ip mask CIDR ent.value = value; return do_cmd(IP_FW_TABLE_ADD, &ent, sizeof(ent)); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: