NetBSD Problem Report #30095
From taca@back-street.net Fri Apr 29 16:10:55 2005
Return-Path: <taca@back-street.net>
Received: from reef.back-street.net (usen-221x250x131x196.ap-US01.usen.ad.jp [221.250.131.196])
by narn.netbsd.org (Postfix) with ESMTP id 7417563B117
for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Apr 2005 16:10:54 +0000 (UTC)
Message-Id: <200504291610.j3TGArrm013384@reef.back-street.net>
Date: Sat, 30 Apr 2005 01:10:53 +0900 (JST)
From: Takahiro Kambe <taca@back-street.net>
Reply-To: taca@back-street.net
To: gnats-bugs@netbsd.org
Subject: <netinet/ipl.h> should be installed.
X-Send-Pr-Version: 3.95
>Number: 30095
>Category: bin
>Synopsis: <netinet/ipl.h> should be installed.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 29 16:11:00 +0000 2005
>Closed-Date: Sun May 01 15:05:02 +0000 2005
>Last-Modified: Sun May 01 15:05:02 +0000 2005
>Originator: Takahiro Kambe
>Release: NetBSD 3.99.3
>Organization:
Takahiro Kambe
>Environment:
System: NetBSD reef.back-street.net 3.99.3 NetBSD 3.99.3 (CF-R3E) #44: Wed Apr 20 10:55:53 JST 2005 taca@reef.back-street.net:/data/i386/obj/sys/arch/i386/compile/CF-R3E i386
Architecture: i386
Machine: i386
>Description:
Currently, IP Filter's ipl.h header file isn't installed under
/usr/include/netinet. It prevent to use of IP Filter's NAT related
system calls.
As I noted on bin/30093, ipnat(4) related system calls takes
"ipfobj" structure whose member "ipfo_rev" must be initialized
by IP Filter's version. For example,
/usr/src/dist/ipf/samples/proxy.c or ipnat(8) use IPFILTER_VERSION
to initialize "ipfo_rev".
Since IPFILTER_VERSION is only defined in ipl.h header file and
currently ipl.h isn't installed as system header, user's program
can't use ipnat(4) related system calls.
>How-To-Repeat:
Try to fix a sample code in bin/30093 using ipfobj structure.
>Fix:
Install ipl.h to /usr/include/netinet fix this problem.
And not only NetBSD current but 2.0 and 3.0 need to be fixed.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: martti@netbsd.org
State-Changed-When: Sun, 01 May 2005 15:05:02 +0000
State-Changed-Why:
Fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.