Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 12:46:08 GMT
From:      yuri golovko <yuri.golovko78@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/183479: ipfw table contains duplicate entry.
Message-ID:  <201310301246.r9UCk8ER087764@oldred.freebsd.org>
Resent-Message-ID: <201310301250.r9UCo0jG093514@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310301246.r9UCk8ER087764>