NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/53645: NPF: broken inference on ifaddrs()



>Number:         53645
>Category:       kern
>Synopsis:       NPF: broken inference on ifaddrs()
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 01 05:15:00 +0000 2018
>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:



Home | Main Index | Thread Index | Old Index