NetBSD Problem Report #53645
From www@NetBSD.org Mon Oct 1 05:13:47 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 077AA7A1F1
for <gnats-bugs@gnats.NetBSD.org>; Mon, 1 Oct 2018 05:13:47 +0000 (UTC)
Message-Id: <20181001051345.DB17C7A1F5@mollari.NetBSD.org>
Date: Mon, 1 Oct 2018 05:13:45 +0000 (UTC)
From: maxv@netbsd.org
Reply-To: maxv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: NPF: broken inference on ifaddrs()
X-Send-Pr-Version: www-1.0
>Number: 53645
>Category: kern
>Synopsis: NPF: broken inference on ifaddrs()
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 01 05:15:00 +0000 2018
>Closed-Date: Sat Jan 19 21:47:45 +0000 2019
>Last-Modified: Sat Jan 19 21:47:45 +0000 2019
>Originator: maxv
>Release: -current
>Organization:
>Environment:
not relevant
>Description:
There is a bug with inference on ifaddrs(). When a variable is used, the
inference doesn't work.
For example:
$var2 = ifaddrs(wm0)
# Works
pass in on ifaddrs(wm0) from $var2
# Doesn't work
pass in on $var2 from $var2
Both rules should resolve to 'pass in on wm0', but the second one doesn't
work.
If you pass inet4()/inet6() instead of ifaddrs(), it works.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sat, 19 Jan 2019 21:47:45 +0000
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.