NetBSD Problem Report #45750

From www@NetBSD.org  Tue Dec 27 21:06:51 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id C3C7E63DD64
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Dec 2011 21:06:51 +0000 (UTC)
Message-Id: <20111227210651.3AF8C63DD4A@www.NetBSD.org>
Date: Tue, 27 Dec 2011 21:06:51 +0000 (UTC)
From: alnsn@yandex.ru
Reply-To: alnsn@yandex.ru
To: gnats-bugs@NetBSD.org
Subject: Type of k in bpf_insn is bpf(9) is different from sys/net/bpf.h
X-Send-Pr-Version: www-1.0

>Number:         45750
>Category:       kern
>Synopsis:       Type of k in bpf_insn is bpf(9) is different from sys/net/bpf.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 27 21:10:00 +0000 2011
>Closed-Date:    Wed Dec 28 12:49:39 +0000 2011
>Last-Modified:  Wed Dec 28 12:49:39 +0000 2011
>Originator:     Alexander Nasonov
>Release:        amd64 current
>Organization:
home sweet home
>Environment:
doesn't matter
>Description:
k is int32_t in bpf(4) and uint32_t in sys/net/bpf.h
>How-To-Repeat:
man bpf and vim sys/net/bpf.h
>Fix:
Index: share/man/man4/bpf.4
===================================================================
RCS file: /cvsroot/src/share/man/man4/bpf.4,v
retrieving revision 1.46
diff -p -u -u -r1.46 bpf.4
--- share/man/man4/bpf.4	8 Jun 2010 04:11:06 -0000	1.46
+++ share/man/man4/bpf.4	27 Dec 2011 21:06:04 -0000
@@ -451,7 +451,7 @@ struct bpf_insn {
 	uint16_t code;
 	u_char 	jt;
 	u_char 	jf;
-	int32_t k;
+	uint32_t k;
 };
 .Ed
 .Pp

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45750 CVS commit: src/share/man/man4
Date: Tue, 27 Dec 2011 16:24:25 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Tue Dec 27 21:24:25 UTC 2011

 Modified Files:
 	src/share/man/man4: bpf.4

 Log Message:
 PR/45750: Alexander Nasonov: Type of k in bpf_insn is bpf(9) is different
 from sys/net/bpf.h


 To generate a diff of this commit:
 cvs rdiff -u -r1.46 -r1.47 src/share/man/man4/bpf.4

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 28 Dec 2011 12:49:39 +0000
State-Changed-Why:
Christos committed it, thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.